Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 184 for indexOf (0.14 sec)

  1. migrator/index.go

    import "database/sql"
    
    // Index implements gorm.Index interface
    type Index struct {
    	TableName       string
    	NameValue       string
    	ColumnList      []string
    	PrimaryKeyValue sql.NullBool
    	UniqueValue     sql.NullBool
    	OptionValue     string
    }
    
    // Table return the table name of the index.
    func (idx Index) Table() string {
    	return idx.TableName
    }
    
    // Name return the name of the index.
    func (idx Index) Name() string {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Apr 11 02:32:46 GMT 2023
    - 1023 bytes
    - Viewed (0)
  2. cmd/object-api-utils.go

    		}
    	}
    	partSkip = offset - skipLength
    
    	// Load index and skip more if feasible.
    	if partSkip > 0 && len(oi.Parts) > firstPartIdx && len(oi.Parts[firstPartIdx].Index) > 0 {
    		_, isEncrypted := crypto.IsEncrypted(oi.UserDefined)
    		if isEncrypted {
    			dec, err := decrypt(oi.Parts[firstPartIdx].Index)
    			if err == nil {
    				// Load Index
    				var idx s2.Index
    				_, err := idx.Load(s2.RestoreIndexHeaders(dec))
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 35.6K bytes
    - Viewed (1)
  3. cmd/admin-heal-ops.go

    	// map of heal path to heal sequence
    	healSeqMap map[string]*healSequence // Indexed by endpoint
    	// keep track of the healing status of disks in the memory
    	//   false: the disk needs to be healed but no healing routine is started
    	//    true: the disk is currently healing
    	healLocalDisks map[Endpoint]bool
    	healStatus     map[string]healingTracker // Indexed by disk ID
    }
    
    // newHealState - initialize global heal state management
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 25.1K bytes
    - Viewed (1)
  4. migrator/migrator.go

    	if stmt.TableExpr != nil {
    		return *stmt.TableExpr
    	}
    	return clause.Table{Name: stmt.Table}
    }
    
    // GetIndexes return Indexes []gorm.Index and execErr error
    func (m Migrator) GetIndexes(dst interface{}) ([]gorm.Index, error) {
    	return nil, errors.New("not support")
    }
    
    // GetTypeAliases return database type aliases
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 26 07:15:49 GMT 2024
    - 29K bytes
    - Viewed (0)
  5. cmd/endpoint-ellipses.go

    		return setCounts[i] < setCounts[j]
    	})
    
    	return setCounts
    }
    
    // getSetIndexes returns list of indexes which provides the set size
    // on each index, this function also determines the final set size
    // The final set size has the affinity towards choosing smaller
    // indexes (total sets)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  6. internal/event/target/elasticsearch.go

    func (c *esClientV7) updateEntry(ctx context.Context, index string, key string, eventData event.Event) error {
    	doc := map[string]interface{}{
    		"Records": []event.Event{eventData},
    	}
    	var buf bytes.Buffer
    	enc := json.NewEncoder(&buf)
    	err := enc.Encode(doc)
    	if err != nil {
    		return err
    	}
    	res, err := c.Index(
    		index,
    		&buf,
    		c.Index.WithDocumentID(key),
    		c.Index.WithContext(ctx),
    	)
    	if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 15K bytes
    - Viewed (0)
  7. internal/grid/debugmsg_string.go

    var _debugMsg_index = [...]uint8{0, 13, 29, 46, 62, 86, 112, 130, 151}
    
    func (i debugMsg) String() string {
    	if i < 0 || i >= debugMsg(len(_debugMsg_index)-1) {
    		return "debugMsg(" + strconv.FormatInt(int64(i), 10) + ")"
    	}
    	return _debugMsg_name[_debugMsg_index[i]:_debugMsg_index[i+1]]
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 09 16:43:38 GMT 2024
    - 993 bytes
    - Viewed (0)
  8. internal/bucket/lifecycle/action_string.go

    var _Action_index = [...]uint8{0, 10, 22, 41, 57, 80, 100, 127, 150, 182, 193}
    
    func (i Action) String() string {
    	if i < 0 || i >= Action(len(_Action_index)-1) {
    		return "Action(" + strconv.FormatInt(int64(i), 10) + ")"
    	}
    	return _Action_name[_Action_index[i]:_Action_index[i+1]]
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  9. cmd/erasure-metadata.go

    	// Start writing `xl.meta` to all disks in parallel.
    	for index := range disks {
    		index := index
    		g.Go(func() error {
    			if disks[index] == nil {
    				return errDiskNotFound
    			}
    			// Pick one FileInfo for a disk at index.
    			fi := files[index]
    			fi.Erasure.Index = index + 1
    			if fi.IsValid() {
    				return disks[index].WriteMetadata(ctx, origbucket, bucket, prefix, fi)
    			}
    			return errFileCorrupt
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  10. cmd/erasure-healing-common_test.go

    		return FileInfo{}, errErasureReadQuorum
    	}
    
    	// Iterate through all the modTimes and count the FileInfo(s) with latest time.
    	for index, t := range modTimes {
    		if partsMetadata[index].IsValid() && t.Equal(modTime) {
    			latestFileInfo = partsMetadata[index]
    			count++
    		}
    	}
    
    	if !latestFileInfo.IsValid() {
    		return FileInfo{}, errErasureReadQuorum
    	}
    
    	if count < latestFileInfo.Erasure.DataBlocks {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 23K bytes
    - Viewed (1)
Back to top