Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 1,179 for _func (0.02 sec)

  1. internal/logger/logger.go

    var (
    	quietFlag, jsonFlag, anonFlag bool
    	// Custom function to format error
    	errorFmtFunc func(string, error, bool) string
    )
    
    // EnableQuiet - turns quiet option on.
    func EnableQuiet() {
    	color.TurnOff() // no colored outputs necessary in quiet mode.
    	quietFlag = true
    }
    
    // EnableJSON - outputs logs in json format.
    func EnableJSON() {
    	color.TurnOff() // no colored outputs necessary in JSON mode.
    	jsonFlag = true
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 22 09:43:48 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  2. api/go1.5.txt

    pkg go/constant, func Int64Val(Value) (int64, bool)
    pkg go/constant, func MakeBool(bool) Value
    pkg go/constant, func MakeFloat64(float64) Value
    pkg go/constant, func MakeFromBytes([]uint8) Value
    pkg go/constant, func MakeFromLiteral(string, token.Token, uint) Value
    pkg go/constant, func MakeImag(Value) Value
    pkg go/constant, func MakeInt64(int64) Value
    pkg go/constant, func MakeString(string) Value
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jul 30 21:14:09 UTC 2015
    - 46.6K bytes
    - Viewed (0)
  3. src/archive/zip/register.go

    // The common methods [Store] and [Deflate] are built in.
    func RegisterCompressor(method uint16, comp Compressor) {
    	if _, dup := compressors.LoadOrStore(method, comp); dup {
    		panic("compressor already registered")
    	}
    }
    
    func compressor(method uint16) Compressor {
    	ci, ok := compressors.Load(method)
    	if !ok {
    		return nil
    	}
    	return ci.(Compressor)
    }
    
    func decompressor(method uint16) Decompressor {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Oct 13 18:36:46 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  4. internal/s3select/jstream/scratch.go

    	fill int
    }
    
    // reset scratch buffer
    func (s *scratch) reset() { s.fill = 0 }
    
    // bytes returns the written contents of scratch buffer
    func (s *scratch) bytes() []byte { return s.data[0:s.fill] }
    
    // grow scratch buffer
    func (s *scratch) grow() {
    	ndata := make([]byte, cap(s.data)*2)
    	copy(ndata, s.data)
    	s.data = ndata
    }
    
    // append single byte to scratch buffer
    func (s *scratch) add(c byte) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 758 bytes
    - Viewed (0)
  5. cmd/net_test.go

    			}
    			if !found {
    				t.Fatalf("host: expected = %v, got = %v", testCase.expectedIPList, ipList)
    			}
    		}
    	}
    }
    
    // Tests finalize api endpoints.
    func TestGetAPIEndpoints(t *testing.T) {
    	host, port := globalMinioHost, globalMinioPort
    	defer func() {
    		globalMinioHost, globalMinioPort = host, port
    	}()
    	testCases := []struct {
    		host, port     string
    		expectedResult string
    	}{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 19 08:43:09 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  6. internal/grid/msg.go

    		res = append(res, "SUB")
    	}
    	return "[" + strings.Join(res, ",") + "]"
    }
    
    // Set one or more flags on f.
    func (f *Flags) Set(flags Flags) {
    	*f |= flags
    }
    
    // Clear one or more flags on f.
    func (f *Flags) Clear(flags Flags) {
    	*f &^= flags
    }
    
    // parse an incoming message.
    func (m *message) parse(b []byte) (*subHandlerID, []byte, error) {
    	var sub *subHandlerID
    	if m.Payload == nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jul 25 21:07:21 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  7. chainable_api.go

    //	}
    //
    //	func OrderStatus(status []string) func (db *gorm.DB) *gorm.DB {
    //	    return func (db *gorm.DB) *gorm.DB {
    //	        return db.Scopes(AmountGreaterThan1000).Where("status in (?)", status)
    //	    }
    //	}
    //
    //	db.Scopes(AmountGreaterThan1000, OrderStatus([]string{"paid", "shipped"})).Find(&orders)
    func (db *DB) Scopes(funcs ...func(*DB) *DB) (tx *DB) {
    	tx = db.getInstance()
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  8. internal/event/targetidset.go

    // IsEmpty returns true if the set is empty.
    func (set TargetIDSet) IsEmpty() bool {
    	return len(set) != 0
    }
    
    // Clone - returns copy of this set.
    func (set TargetIDSet) Clone() TargetIDSet {
    	setCopy := NewTargetIDSet()
    	for k, v := range set {
    		setCopy[k] = v
    	}
    	return setCopy
    }
    
    // add - adds TargetID to the set.
    func (set TargetIDSet) add(targetID TargetID) {
    	set[targetID] = struct{}{}
    }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  9. internal/dsync/dsync-server_test.go

    	responseDelay int64
    }
    
    func (l *lockServer) setRefreshReply(refreshed bool) {
    	l.mutex.Lock()
    	defer l.mutex.Unlock()
    	l.lockNotFound = !refreshed
    }
    
    func (l *lockServer) setResponseDelay(responseDelay time.Duration) {
    	atomic.StoreInt64(&l.responseDelay, int64(responseDelay))
    }
    
    func (l *lockServer) Lock(args *LockArgs) (reply bool, err error) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jan 23 16:46:37 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  10. tests/create_test.go

    	for idx, user := range users2 {
    		CheckUser(t, user, *users[idx])
    	}
    }
    
    func TestPolymorphicHasOne(t *testing.T) {
    	t.Run("Struct", func(t *testing.T) {
    		pet := Pet{
    			Name: "PolymorphicHasOne",
    			Toy:  Toy{Name: "Toy-PolymorphicHasOne"},
    		}
    
    		if err := DB.Create(&pet).Error; err != nil {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Mar 19 03:50:28 UTC 2024
    - 26.4K bytes
    - Viewed (0)
Back to top