Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for uniqBy (0.19 sec)

  1. doc/next/6-stdlib/2-unique.md

    ### New unique package
    
    The new [unique](/pkg/unique) package provides facilities for
    canonicalizing values (like "interning" or "hash-consing").
    
    Any value of comparable type may be canonicalized with the new
    `Make[T]` function, which produces a reference to a canonical copy of
    the value in the form of a `Handle[T]`.
    Two `Handle[T]` are equal if and only if the values used to produce the
    handles are equal, allowing programs to deduplicate values and reduce
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Apr 24 13:37:36 GMT 2024
    - 579 bytes
    - Viewed (0)
  2. migrator/migrator.go

    	unique, ok := columnType.Unique()
    	if !ok || field.PrimaryKey {
    		return nil // skip primary key
    	}
    	// By default, ColumnType's Unique is not affected by UniqueIndex, so we don't care about UniqueIndex.
    	return m.RunWithValue(value, func(stmt *gorm.Statement) error {
    		// We're currently only receiving boolean values on `Unique` tag,
    		// so the UniqueConstraint name is fixed
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Apr 26 07:15:49 GMT 2024
    - 29K bytes
    - Viewed (0)
  3. errors.go

    	// ErrPreloadNotAllowed preload is not allowed when count is used
    	ErrPreloadNotAllowed = errors.New("preload is not allowed when count is used")
    	// ErrDuplicatedKey occurs when there is a unique key constraint violation
    	ErrDuplicatedKey = errors.New("duplicated key not allowed")
    	// ErrForeignKeyViolated occurs when there is a foreign key constraint violation
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Apr 26 02:53:17 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  4. doc/go_spec.html

    Unification first compares the top-level structure of the LHS and RHS
    types.
    Both are arrays of the same length; they unify if the element types unify.
    Both element types are structs; they unify if they have
    the same number of fields with the same names and if the
    field types unify.
    The type argument for <code>P</code> is not known yet (there is no map entry),
    so unifying <code>P</code> with <code>string</code> adds
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 00:39:16 GMT 2024
    - 279.6K bytes
    - Viewed (0)
  5. cmd/globals.go

    	// global console system to send console logs to
    	// registered listeners
    	globalConsoleSys *HTTPConsoleLoggerSys
    
    	// All unique drives for this deployment
    	globalEndpoints EndpointServerPools
    	// All unique nodes for this deployment
    	globalNodes []Node
    
    	// The name of this local node, fetched from arguments
    	globalLocalNodeName    string
    	globalLocalNodeNameHex string
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 16.5K bytes
    - Viewed (0)
  6. cmd/erasure-multipart.go

    		ChecksumAlgo: userDefined[hash.MinIOMultipartChecksum],
    	}, nil
    }
    
    // NewMultipartUpload - initialize a new multipart upload, returns a
    // unique id. The unique id returned here is of UUID form, for each
    // subsequent request each UUID is unique.
    //
    // Implements S3 compatible initiate multipart API.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 43K bytes
    - Viewed (0)
  7. cmd/erasure-metadata.go

    func pickValidFileInfo(ctx context.Context, metaArr []FileInfo, modTime time.Time, etag string, quorum int) (FileInfo, error) {
    	return findFileInfoInQuorum(ctx, metaArr, modTime, etag, quorum)
    }
    
    // writeUniqueFileInfo - writes unique `xl.meta` content for each disk concurrently.
    func writeUniqueFileInfo(ctx context.Context, disks []StorageAPI, origbucket, bucket, prefix string, files []FileInfo, quorum int) ([]StorageAPI, error) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  8. cmd/bucket-handlers.go

    				continue
    			}
    
    			// No IPs seem to intersect, this means that bucket exists but has
    			// different IP addresses perhaps from a different deployment.
    			// bucket names are globally unique in federation at a given
    			// path prefix, name collision is not allowed. We simply log
    			// an error and continue.
    			bucketsInConflict.Add(bucket.Name)
    		}
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 16:27:27 GMT 2024
    - 61.6K bytes
    - Viewed (0)
  9. cmd/erasure-server-pool.go

    		Marker:      marker,
    		InclDeleted: true,
    		AskDisks:    globalAPIConfig.getListQuorum(),
    		Versioned:   true,
    	}
    
    	// Shortcut for APN/1.0 Veeam/1.0 Backup/10.0
    	// It requests unique blocks with a specific prefix.
    	// We skip scanning the parent directory for
    	// more objects matching the prefix.
    	ri := logger.GetReqInfo(ctx)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 80.1K bytes
    - Viewed (0)
  10. cmd/site-replication.go

    		currDeploymentIDsSet.Add(v.DeploymentID)
    	}
    	deploymentIDsSet := set.NewStringSet()
    	localHasBuckets := false
    	nonLocalPeerWithBuckets := ""
    	selfIdx := -1
    	for i, v := range sites {
    		// deploymentIDs must be unique
    		if deploymentIDsSet.Contains(v.DeploymentID) {
    			return madmin.ReplicateAddStatus{}, errSRDuplicateSites
    		}
    		deploymentIDsSet.Add(v.DeploymentID)
    
    		if v.self {
    			selfIdx = i
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 184.1K bytes
    - Viewed (1)
Back to top