Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 144 for Message (0.18 sec)

  1. cmd/bootstrap-messages.go

    	}
    	bs.mu.RUnlock()
    
    	return traceInfo
    }
    
    func (bs *bootstrapTracer) Publish(ctx context.Context, trace *pubsub.PubSub[madmin.TraceInfo, madmin.TraceType]) {
    	for _, bsEvent := range bs.Events() {
    		if bsEvent.Message != "" {
    			select {
    			case <-ctx.Done():
    			default:
    				trace.Publish(bsEvent)
    			}
    		}
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Aug 23 10:07:06 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  2. internal/grid/msg_gen_test.go

    	}
    }
    
    func BenchmarkMarshalMsgmessage(b *testing.B) {
    	v := message{}
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		v.MarshalMsg(nil)
    	}
    }
    
    func BenchmarkAppendMsgmessage(b *testing.B) {
    	v := message{}
    	bts := make([]byte, 0, v.Msgsize())
    	bts, _ = v.MarshalMsg(bts[0:0])
    	b.SetBytes(int64(len(bts)))
    	b.ReportAllocs()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 10.8K bytes
    - Viewed (0)
  3. cmd/server-startup-msg_test.go

    	}
    	infoStorage.Backend.Type = madmin.Erasure
    
    	if msg := getStorageInfoMsg(infoStorage); !strings.Contains(msg, "7 Online, 1 Offline") {
    		t.Fatal("Unexpected storage info message, found:", msg)
    	}
    }
    
    // Tests stripping standard ports from apiEndpoints.
    func TestStripStandardPorts(t *testing.T) {
    	apiEndpoints := []string{"http://127.0.0.1:9000", "http://127.0.0.2:80", "https://127.0.0.3:443"}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 20 00:53:08 GMT 2023
    - 4K bytes
    - Viewed (0)
  4. cmd/object-api-datatypes_gen.go

    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    		(*z) = BackendType(zb0001)
    	}
    	o = bts
    	return
    }
    
    // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
    func (z BackendType) Msgsize() (s int) {
    	s = msgp.IntSize
    	return
    }
    
    // MarshalMsg implements msgp.Marshaler
    func (z *BucketInfo) MarshalMsg(b []byte) (o []byte, err error) {
    	o = msgp.Require(b, z.Msgsize())
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 08 19:08:18 GMT 2024
    - 69.8K bytes
    - Viewed (0)
  5. internal/logger/target/types/types.go

    )
    
    // TargetStats contains statistics for a target.
    type TargetStats struct {
    	// QueueLength is the queue length if any messages are queued.
    	QueueLength int
    
    	// TotalMessages is the total number of messages sent in the lifetime of the target
    	TotalMessages int64
    
    	// FailedMessages should log message count that failed to send.
    	FailedMessages int64
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Nov 10 18:20:21 GMT 2022
    - 1.4K bytes
    - Viewed (0)
  6. cmd/warm-backend-gcs.go

    		// have StatusCode to help to convert to object errors.
    		return err
    	}
    
    	if len(googleAPIErr.Errors) == 0 {
    		return err
    	}
    
    	reason := googleAPIErr.Errors[0].Reason
    	message := googleAPIErr.Errors[0].Message
    
    	switch reason {
    	case "required":
    		// Anonymous users does not have storage.xyz access to project 123.
    		fallthrough
    	case "keyInvalid":
    		fallthrough
    	case "forbidden":
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  7. cmd/object-api-interface_gen.go

    			if err != nil {
    				err = msgp.WrapError(err)
    				return
    			}
    		}
    	}
    	o = bts
    	return
    }
    
    // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
    func (z BucketOptions) Msgsize() (s int) {
    	s = 1 + 8 + msgp.BoolSize + 7 + msgp.BoolSize
    	return
    }
    
    // MarshalMsg implements msgp.Marshaler
    func (z ExpirationOptions) MarshalMsg(b []byte) (o []byte, err error) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 08 19:08:18 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  8. cmd/bucket-replication-utils_gen.go

    			if err != nil {
    				err = msgp.WrapError(err)
    				return
    			}
    		}
    	}
    	o = bts
    	return
    }
    
    // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
    func (z *BucketReplicationResyncStatus) Msgsize() (s int) {
    	s = 1 + 2 + msgp.IntSize + 4 + msgp.MapHeaderSize
    	if z.TargetsMap != nil {
    		for za0001, za0002 := range z.TargetsMap {
    			_ = za0002
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 21 17:21:35 GMT 2024
    - 61.1K bytes
    - Viewed (0)
  9. cmd/bucket-handlers_test.go

    		}
    		if errorResponse.Message != testCase.errorResponse.Message {
    			t.Errorf("Test %d: %s: Expected the error message to be `%s`, but instead found `%s`", i+1, instanceType, testCase.errorResponse.Message, errorResponse.Message)
    		}
    		if errorResponse.Code != testCase.errorResponse.Code {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 39.5K bytes
    - Viewed (2)
  10. internal/logger/logonce.go

    			// do not further recurse down, this
    			// is done to avoid any unnecessary
    			// latencies this might bring.
    			break
    		}
    	}
    	if uerr == nil {
    		leafErr = err
    	}
    	return leafErr
    }
    
    // One log message per error.
    func (l *logOnceType) logOnceIf(ctx context.Context, subsystem string, err error, id string, errKind ...interface{}) {
    	if err == nil {
    		return
    	}
    
    	nerr := unwrapErrs(err)
    	l.Lock()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 3.8K bytes
    - Viewed (0)
Back to top