Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,378 for cyan (0.19 sec)

  1. internal/grid/handlers.go

    // An optional subroute can be given. Multiple entries are joined with '/'.
    func (h *StreamTypeHandler[Payload, Req, Resp]) RegisterNoPayload(m *Manager, handle func(ctx context.Context, in <-chan Req, out chan<- Resp) *RemoteErr, subroute ...string) error {
    	h.WithPayload = false
    	return h.register(m, func(ctx context.Context, p Payload, in <-chan Req, out chan<- Resp) *RemoteErr {
    		return handle(ctx, in, out)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 26.9K bytes
    - Viewed (0)
  2. internal/grid/muxserver.go

    	// Data inbound to the handler
    	var handlerIn chan []byte
    	if inboundCap > 0 {
    		m.inbound = make(chan []byte, inboundCap)
    		handlerIn = make(chan []byte, 1)
    		go func(inbound chan []byte) {
    			wg.Wait()
    			defer xioutil.SafeClose(handlerIn)
    			m.handleInbound(c, inbound, handlerIn)
    		}(m.inbound)
    	}
    	// Fill outbound block.
    	// Each token represents a message that can be sent to the client without blocking.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  3. cmd/service.go

    	globalServiceFreezeMu.Lock()
    	// Close when we reach 0
    	globalServiceFreezeCnt--
    	if globalServiceFreezeCnt <= 0 {
    		// Set to a nil channel.
    		var _ch chan struct{}
    		if val := globalServiceFreeze.Swap(_ch); val != nil {
    			if ch, ok := val.(chan struct{}); ok && ch != nil {
    				// Close previous non-nil channel.
    				xioutil.SafeClose(ch)
    			}
    		}
    		globalServiceFreezeCnt = 0 // Don't risk going negative.
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Feb 28 07:02:14 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  4. internal/grid/connection.go

    	if handler == nil {
    		return nil, ErrUnknownHandler
    	}
    
    	var requests chan []byte
    	var responses chan Response
    	if handler.InCapacity > 0 {
    		requests = make(chan []byte, handler.InCapacity)
    	}
    	if handler.OutCapacity > 0 {
    		responses = make(chan Response, handler.OutCapacity)
    	} else {
    		responses = make(chan Response, 1)
    	}
    
    	cl, err := c.newMuxClient(ctx)
    	if err != nil {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 42.6K bytes
    - Viewed (0)
  5. internal/grid/muxclient.go

    func (m *muxClient) handleTwowayResponses(responseCh chan<- Response, internalResp <-chan Response) {
    	defer m.parent.deleteMux(false, m.MuxID)
    	defer xioutil.SafeClose(responseCh)
    	for resp := range internalResp {
    		responseCh <- resp
    		m.send(message{Op: OpUnblockSrvMux, MuxID: m.MuxID})
    	}
    }
    
    func (m *muxClient) handleTwowayRequests(internalResp chan<- Response, requests <-chan []byte) {
    	var errState bool
    	if debugPrint {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  6. cmd/storage-rest-server.go

    // The returned function should always be called to release resources.
    // An optional error can be sent which will be picked as text only error,
    // without its original type by the receiver.
    // waitForHTTPStream should be used to the receiving side.
    func streamHTTPResponse(w http.ResponseWriter) *httpStreamResponse {
    	doneCh := make(chan error)
    	blockCh := make(chan []byte)
    	h := httpStreamResponse{done: doneCh, block: blockCh}
    	go func() {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 44.8K bytes
    - Viewed (0)
  7. internal/store/store.go

    type Key struct {
    	Name   string
    	IsLast bool
    }
    
    // replayItems - Reads the items from the store and replays.
    func replayItems[I any](store Store[I], doneCh <-chan struct{}, log logger, id string) <-chan Key {
    	keyCh := make(chan Key)
    
    	go func() {
    		defer xioutil.SafeClose(keyCh)
    
    		retryTicker := time.NewTicker(retryInterval)
    		defer retryTicker.Stop()
    
    		for {
    			names, err := store.List()
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Mar 25 16:44:20 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  8. cmd/erasure.go

    func (er erasureObjects) nsScanner(ctx context.Context, buckets []BucketInfo, wantCycle uint32, updates chan<- dataUsageCache, healScanMode madmin.HealScanMode) error {
    	if len(buckets) == 0 {
    		return nil
    	}
    
    	// Collect disks we can use.
    	disks, healing := er.getOnlineDisksWithHealing(false)
    	if len(disks) == 0 {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 16K bytes
    - Viewed (1)
  9. internal/bpool/bpool.go

    package bpool
    
    import "github.com/klauspost/reedsolomon"
    
    // BytePoolCap implements a leaky pool of []byte in the form of a bounded channel.
    type BytePoolCap struct {
    	c    chan []byte
    	w    int
    	wcap int
    }
    
    // NewBytePoolCap creates a new BytePool bounded to the given maxSize, with new
    // byte arrays sized based on width.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 16:44:59 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  10. cmd/handler-api.go

    	"github.com/minio/minio/internal/logger"
    	"github.com/minio/minio/internal/mcontext"
    )
    
    type apiConfig struct {
    	mu sync.RWMutex
    
    	requestsDeadline time.Duration
    	requestsPool     chan struct{}
    	clusterDeadline  time.Duration
    	listQuorum       string
    	corsAllowOrigins []string
    	// total drives per erasure set across pools.
    	totalDriveCount       int
    	replicationPriority   string
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 08 09:22:27 GMT 2024
    - 10K bytes
    - Viewed (0)
Back to top