Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 259 for init (0.56 sec)

  1. internal/event/target/kafka.go

    		if k.QueueDir == "" {
    			return errors.New("batch should be enabled only if queue dir is enabled")
    		}
    	}
    	return nil
    }
    
    // KafkaTarget - Kafka target.
    type KafkaTarget struct {
    	initOnce once.Init
    
    	id         event.TargetID
    	args       KafkaArgs
    	client     sarama.Client
    	producer   sarama.SyncProducer
    	config     *sarama.Config
    	store      store.Store[event.Event]
    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/event/target/nats.go

    	}
    
    	return stan.Connect(n.Streaming.ClusterID, clientID, connOpts...)
    }
    
    // NATSTarget - NATS target.
    type NATSTarget struct {
    	initOnce once.Init
    
    	id         event.TargetID
    	args       NATSArgs
    	natsConn   *nats.Conn
    	stanConn   stan.Conn
    	jstream    nats.JetStream
    	store      store.Store[event.Event]
    	loggerOnce logger.LogOnce
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Feb 27 18:11:55 GMT 2024
    - 12.8K bytes
    - Viewed (0)
  3. internal/logger/target/kafka/kafka.go

    	// to avoid missing events when the target is down.
    	store          store.Store[interface{}]
    	storeCtxCancel context.CancelFunc
    
    	initKafkaOnce      once.Init
    	initQueueStoreOnce once.Init
    
    	client   sarama.Client
    	producer sarama.SyncProducer
    	kconfig  Config
    	config   *sarama.Config
    }
    
    func (h *Target) validate() error {
    	if len(h.kconfig.Brokers) == 0 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 10.1K bytes
    - Viewed (1)
  4. cmd/xl-storage-disk-id-check.go

    	mu        sync.Mutex
    	init      sync.Once
    	lastMinuteLatency
    }
    
    func (e *lockedLastMinuteLatency) add(value time.Duration) {
    	e.addSize(value, 0)
    }
    
    // addSize will add a duration and size.
    func (e *lockedLastMinuteLatency) addSize(value time.Duration, sz int64) {
    	// alloc on every call, so we have a clean entry to swap in.
    	t := time.Now().Unix()
    	e.init.Do(func() {
    		e.cached.Store(&AccElem{})
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 33K bytes
    - Viewed (0)
  5. internal/jwt/parser.go

    	SigningMethodHS384 *SigningMethodHMAC
    	SigningMethodHS512 *SigningMethodHMAC
    )
    
    const base64BufferSize = 64 * humanize.KiByte
    
    var (
    	base64BufPool sync.Pool
    	hmacSigners   []*SigningMethodHMAC
    )
    
    func init() {
    	base64BufPool = sync.Pool{
    		New: func() interface{} {
    			buf := make([]byte, base64BufferSize)
    			return &buf
    		},
    	}
    
    	hmacSigners = []*SigningMethodHMAC{
    		{Name: "HS256", Hash: crypto.SHA256},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue May 09 07:53:08 GMT 2023
    - 13.9K bytes
    - Viewed (0)
  6. cmd/object-multipart-handlers.go

    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	_, isEncrypted := crypto.IsEncrypted(mi.UserDefined)
    
    	// Read compression metadata preserved in the init multipart for the decision.
    	_, isCompressed := mi.UserDefined[ReservedMetadataPrefix+"compression"]
    	// Compress only if the compression is enabled during initial multipart.
    	var idxCb func() []byte
    	if isCompressed {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 39K bytes
    - Viewed (0)
  7. internal/grid/muxclient.go

    }
    
    // roundtrip performs a roundtrip, returning the first response.
    // This cannot be used concurrently.
    func (m *muxClient) roundtrip(h HandlerID, req []byte) ([]byte, error) {
    	if m.init {
    		return nil, errors.New("mux client already used")
    	}
    	m.init = true
    	m.singleResp = true
    	msg := message{
    		Op:         OpRequest,
    		MuxID:      m.MuxID,
    		Handler:    h,
    		Flags:      m.BaseFlags | FlagEOF,
    		Payload:    req,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  8. cmd/metrics.go

    	cacheNamespace       = "cache"
    	s3Namespace          = "s3"
    	bucketNamespace      = "bucket"
    	minioNamespace       = "minio"
    	diskNamespace        = "disk"
    	interNodeNamespace   = "internode"
    )
    
    func init() {
    	prometheus.MustRegister(httpRequestsDuration)
    	prometheus.MustRegister(newMinioCollector())
    	prometheus.MustRegister(minioVersionInfo)
    }
    
    // newMinioCollector describes the collector
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 02 06:48:36 GMT 2024
    - 16.9K bytes
    - Viewed (0)
  9. cmd/globals.go

    	ConnClientWriteDeadline time.Duration
    
    	ShutdownTimeout     time.Duration
    	IdleTimeout         time.Duration
    	ReadHeaderTimeout   time.Duration
    	MaxIdleConnsPerHost int
    
    	SendBufSize, RecvBufSize int
    	CrossDomainXML           string
    	// The layout of disks as interpreted
    	Layout disksLayout
    }
    
    var (
    	// Global user opts context
    	globalServerCtxt serverCtxt
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 16.5K bytes
    - Viewed (0)
  10. internal/event/target/amqp.go

    		if !filepath.IsAbs(a.QueueDir) {
    			return errors.New("queueDir path should be absolute")
    		}
    	}
    
    	return nil
    }
    
    // AMQPTarget - AMQP target
    type AMQPTarget struct {
    	initOnce once.Init
    
    	id         event.TargetID
    	args       AMQPArgs
    	conn       *amqp091.Connection
    	connMutex  sync.Mutex
    	store      store.Store[event.Event]
    	loggerOnce logger.LogOnce
    
    	quitCh chan struct{}
    }
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Oct 07 15:07:38 GMT 2023
    - 10K bytes
    - Viewed (0)
Back to top