Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for getMail (0.17 sec)

  1. internal/event/target/kafka.go

    	if key.IsLast || target.batch.IsFull() {
    		return target.commitBatch()
    	}
    	return nil
    }
    
    func (target *KafkaTarget) commitBatch() error {
    	keys, msgs, err := target.batch.GetAll()
    	if err != nil {
    		return err
    	}
    	if err = target.producer.SendMessages(msgs); err != nil {
    		if isKafkaConnErr(err) {
    			return store.ErrNotConnected
    		}
    		return err
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Feb 20 08:16:35 GMT 2024
    - 13K bytes
    - Viewed (0)
  2. internal/s3select/select.go

    	return start, end - start + 1, nil
    }
    
    // S3Select - filters the contents on a simple structured query language (SQL) statement. It
    // represents elements inside <SelectRequest/> in request XML specified in detail at
    // https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectSELECTContent.html.
    type S3Select struct {
    	XMLName        xml.Name            `xml:"SelectRequest"`
    	Expression     string              `xml:"Expression"`
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Nov 06 22:26:08 GMT 2023
    - 21K bytes
    - Viewed (0)
  3. cmd/erasure-server-pool.go

    	if err != nil {
    		return madmin.HealResultItem{}, err
    	}
    	ctx = lkctx.Context()
    	defer formatLock.Unlock(lkctx)
    
    	r := madmin.HealResultItem{
    		Type:   madmin.HealItemMetadata,
    		Detail: "disk-format",
    	}
    
    	var countNoHeal int
    	for _, pool := range z.serverPools {
    		result, err := pool.HealFormat(ctx, dryRun)
    		if err != nil && !errors.Is(err, errNoHealRequired) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  4. cmd/bucket-replication-stats.go

    		rs.Completed = true
    	case replication.Pending:
    		rs.Pending = true
    	case replication.Failed:
    		rs.Failed = true
    		rs.Err = err
    	}
    }
    
    // GetAll returns replication metrics for all buckets at once.
    func (r *ReplicationStats) GetAll() map[string]BucketReplicationStats {
    	if r == nil {
    		return map[string]BucketReplicationStats{}
    	}
    
    	r.RLock()
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  5. cmd/admin-heal-ops.go

    			apiErr.Code, apiErr.Description)
    	}
    )
    
    // healSequenceStatus - accumulated status of the heal sequence
    type healSequenceStatus struct {
    	// summary and detail for failures
    	Summary       healStatusSummary `json:"Summary"`
    	FailureDetail string            `json:"Detail,omitempty"`
    	StartTime     time.Time         `json:"StartTime"`
    
    	// settings for the heal sequence
    	HealSettings madmin.HealOpts `json:"Settings"`
    
    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)
  6. cmd/peer-rest-server.go

    func (s *peerRESTServer) GetAllBucketStatsHandler(mss *grid.MSS) (*BucketStatsMap, *grid.RemoteErr) {
    	replicationStats := globalReplicationStats.GetAll()
    	bucketStatsMap := make(map[string]BucketStats, len(replicationStats))
    	for k, v := range replicationStats {
    		bucketStatsMap[k] = BucketStats{
    			ReplicationStats: v,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 51.8K bytes
    - Viewed (0)
  7. internal/store/batch.go

    		return ErrBatchFull
    	}
    
    	if _, ok := b.items[key]; !ok {
    		b.keys = append(b.keys, key)
    	}
    	b.items[key] = item
    
    	return nil
    }
    
    // GetAll fetches the items and resets the batch
    // Returned items are not referenced by the batch
    func (b *Batch[K, T]) GetAll() (orderedKeys []K, orderedItems []T, err error) {
    	b.Lock()
    	defer b.Unlock()
    
    	orderedKeys = append([]K(nil), b.keys...)
    	for _, key := range orderedKeys {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Oct 07 15:07:38 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  8. internal/store/batch_test.go

    		t.Fatal("Expected batch.IsFull to be true but got false")
    	}
    	batchLen := batch.Len()
    	if batchLen != int(limit) {
    		t.Fatalf("expected batch length to be %v but got %v", limit, batchLen)
    	}
    	keys, items, err := batch.GetAll()
    	if err != nil {
    		t.Fatalf("unable to get the items from the batch; %v", err)
    	}
    	if len(items) != int(limit) {
    		t.Fatalf("Expected length of the batch items to be %v but got %v", limit, len(items))
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Oct 07 15:07:38 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  9. cmd/notification.go

    		if nErr.Err != nil {
    			peersLogOnceIf(logger.SetReqInfo(ctx, reqInfo), nErr.Err, nErr.Host.String())
    		}
    	}
    
    	replicationStatsList := globalReplicationStats.GetAll()
    	bucketStatsMap := BucketStatsMap{
    		Stats:     make(map[string]BucketStats, len(replicationStatsList)),
    		Timestamp: UTCNow(),
    	}
    	for k, replicationStats := range replicationStatsList {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 12 18:13:36 GMT 2024
    - 44.5K bytes
    - Viewed (0)
  10. internal/config/errors-utils.go

    type Err struct {
    	msg    string
    	detail string
    	action string
    	hint   string
    }
    
    // Clone returns a new Err struct with the same information
    func (u Err) Clone() Err {
    	return Err{
    		msg:    u.msg,
    		detail: u.detail,
    		action: u.action,
    		hint:   u.hint,
    	}
    }
    
    // Error returns the error message
    func (u Err) Error() string {
    	if u.detail == "" {
    		if u.msg != "" {
    			return u.msg
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 06 16:56:10 GMT 2023
    - 3.7K bytes
    - Viewed (0)
Back to top