Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 330 for interface (0.19 sec)

  1. cmd/storage-interface.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"context"
    	"io"
    	"time"
    
    	"github.com/minio/madmin-go/v3"
    )
    
    // StorageAPI interface.
    type StorageAPI interface {
    	// Stringified version of disk.
    	String() string
    
    	// Storage operations.
    
    	// Returns true if disk is online and its valid i.e valid format.json.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  2. cmd/object-api-interface.go

    func (o *ObjectOptions) SetEvalRetentionBypassFn(f EvalRetentionBypassFn) {
    	o.EvalRetentionBypassFn = f
    }
    
    // ObjectLayer implements primitives for object API layer.
    type ObjectLayer interface {
    	// Locking operations on object.
    	NewNSLock(bucket string, objects ...string) RWLocker
    
    	// Storage operations.
    	Shutdown(context.Context) error
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Apr 20 09:05:54 GMT 2024
    - 16.9K bytes
    - Viewed (0)
  3. cmd/object-api-interface_gen.go

    Klaus Post <******@****.***> 1709924898 +0100
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Mar 08 19:08:18 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  4. interfaces.go

    }
    
    type ParamsFilter interface {
    	ParamsFilter(ctx context.Context, sql string, params ...interface{}) (string, []interface{})
    }
    
    // ConnPool db conns pool interface
    type ConnPool interface {
    	PrepareContext(ctx context.Context, query string) (*sql.Stmt, error)
    	ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
    	QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Sat Aug 19 13:33:31 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  5. clause/expression_test.go

    		Vars:         []interface{}{sql.Named("name", "jinzhu")},
    		Result:       "name1 = ? AND name2 = ?",
    		ExpectedVars: []interface{}{"jinzhu", "jinzhu"},
    	}, {
    		SQL:          "name1 = @name AND name2 = @@name",
    		Vars:         []interface{}{map[string]interface{}{"name": "jinzhu"}},
    		Result:       "name1 = ? AND name2 = @@name",
    		ExpectedVars: []interface{}{"jinzhu"},
    	}, {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Aug 10 05:34:33 GMT 2023
    - 8.4K bytes
    - Viewed (0)
  6. schema/schema.go

    	Relationships             Relationships
    	CreateClauses             []clause.Interface
    	QueryClauses              []clause.Interface
    	UpdateClauses             []clause.Interface
    	DeleteClauses             []clause.Interface
    	BeforeCreate, AfterCreate bool
    	BeforeUpdate, AfterUpdate bool
    	BeforeDelete, AfterDelete bool
    	BeforeSave, AfterSave     bool
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Tue Oct 10 06:50:29 GMT 2023
    - 13.7K bytes
    - Viewed (0)
  7. association.go

    		Unscope:      true,
    	}
    }
    
    func (association *Association) Find(out interface{}, conds ...interface{}) error {
    	if association.Error == nil {
    		association.Error = association.buildCondition().Find(out, conds...).Error
    	}
    	return association.Error
    }
    
    func (association *Association) Append(values ...interface{}) error {
    	if association.Error == nil {
    		switch association.Relationship.Type {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu May 04 11:30:45 GMT 2023
    - 21.2K bytes
    - Viewed (0)
  8. utils/utils_test.go

    }
    
    func TestToStringKey(t *testing.T) {
    	cases := []struct {
    		values []interface{}
    		key    string
    	}{
    		{[]interface{}{"a"}, "a"},
    		{[]interface{}{1, 2, 3}, "1_2_3"},
    		{[]interface{}{1, nil, 3}, "1_nil_3"},
    		{[]interface{}{[]interface{}{1, 2, 3}}, "[1 2 3]"},
    		{[]interface{}{[]interface{}{"1", "2", "3"}}, "[1 2 3]"},
    		{[]interface{}{[]interface{}{"1", nil, "3"}}, "[1 <nil> 3]"},
    	}
    	for _, c := range cases {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Feb 19 03:42:25 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  9. schema/field.go

    		field.ValueOf = func(ctx context.Context, value reflect.Value) (interface{}, bool) {
    			fieldValue := reflect.Indirect(value).Field(fieldIndex)
    			return fieldValue.Interface(), fieldValue.IsZero()
    		}
    	default:
    		field.ValueOf = func(ctx context.Context, v reflect.Value) (interface{}, bool) {
    			v = reflect.Indirect(v)
    			for _, fieldIdx := range field.StructField.Index {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 32K bytes
    - Viewed (1)
  10. clause/locking_test.go

    )
    
    func TestLocking(t *testing.T) {
    	results := []struct {
    		Clauses []clause.Interface
    		Result  string
    		Vars    []interface{}
    	}{
    		{
    			[]clause.Interface{clause.Select{}, clause.From{}, clause.Locking{Strength: clause.LockingStrengthUpdate}},
    			"SELECT * FROM `users` FOR UPDATE", nil,
    		},
    		{
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Dec 15 08:32:56 GMT 2023
    - 1.2K bytes
    - Viewed (0)
Back to top