Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for NewRandom (0.07 sec)

  1. internal/store/queuestore.go

    	return os.Remove(store.directory)
    }
    
    // PutMultiple - puts an item to the store.
    func (store *QueueStore[I]) PutMultiple(items []I) (Key, error) {
    	// Generate a new UUID for the key.
    	uid, err := uuid.NewRandom()
    	if err != nil {
    		return Key{}, err
    	}
    
    	store.Lock()
    	defer store.Unlock()
    	if uint64(len(store.entries)) >= store.entryLimit {
    		return Key{}, errLimitExceeded
    	}
    	key := Key{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  2. internal/event/target/nats.go

    	} else if n.Token != "" {
    		addressURL = scheme + "://" + n.Token + "@" + n.Address.String()
    	} else {
    		addressURL = scheme + "://" + n.Address.String()
    	}
    
    	u, err := uuid.NewRandom()
    	if err != nil {
    		return nil, err
    	}
    	clientID := u.String()
    
    	connOpts := []stan.Option{stan.NatsURL(addressURL)}
    	if n.Streaming.MaxPubAcksInflight > 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  3. cmd/bucket-lifecycle.go

    		Host:       globalLocalNodeName,
    	})
    
    	return nil
    }
    
    // generate an object name for transitioned object
    func genTransitionObjName(bucket string) (string, error) {
    	u, err := uuid.NewRandom()
    	if err != nil {
    		return "", err
    	}
    	us := u.String()
    	hash := xxh3.HashString(pathJoin(globalDeploymentID(), bucket))
    	obj := fmt.Sprintf("%s/%s/%s/%s", strconv.FormatUint(hash, 16), us[0:2], us[2:4], us)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Oct 23 15:35:37 UTC 2024
    - 33.7K bytes
    - Viewed (0)
Back to top