Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 815 for struct (0.15 sec)

  1. cmd/site-replication-metrics.go

    	"github.com/minio/minio-go/v7"
    )
    
    //go:generate msgp -file $GOFILE
    
    // RStat has replication error stats
    type RStat struct {
    	Count int64 `json:"count"`
    	Bytes int64 `json:"bytes"`
    }
    
    // RTimedMetrics has replication error stats for various time windows
    type RTimedMetrics struct {
    	LastHour    ReplicationLastHour `json:"lastHour"`
    	SinceUptime RStat               `json:"sinceUptime"`
    	LastMinute  ReplicationLastMinute
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Feb 06 06:00:45 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  2. internal/grid/msg.go

    	Op() Op
    }
    
    type connectReq struct {
    	ID   [16]byte
    	Host string
    }
    
    func (connectReq) Op() Op {
    	return OpConnect
    }
    
    type connectResp struct {
    	ID             [16]byte
    	Accepted       bool
    	RejectedReason string
    }
    
    func (connectResp) Op() Op {
    	return OpConnectResponse
    }
    
    type muxConnectError struct {
    	Error string
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 28 19:22:29 GMT 2023
    - 7.3K bytes
    - Viewed (0)
  3. internal/config/policy/opa/config.go

    	// form http://localhost:8181/v1/data/httpapi/authz
    	type opaResultAllow struct {
    		Result struct {
    			Allow bool `json:"allow"`
    		} `json:"result"`
    	}
    
    	// Handle simpler OPA responses when OPA URL is of
    	// form http://localhost:8181/v1/data/httpapi/authz/allow
    	type opaResult struct {
    		Result bool `json:"result"`
    	}
    
    	respBody := bytes.NewReader(opaRespBytes)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Sep 14 21:50:16 GMT 2023
    - 5.2K bytes
    - Viewed (1)
  4. schema/serializer.go

    func init() {
    	RegisterSerializer("json", JSONSerializer{})
    	RegisterSerializer("unixtime", UnixSecondSerializer{})
    	RegisterSerializer("gob", GobSerializer{})
    }
    
    // Serializer field value serializer
    type serializer struct {
    	Field           *Field
    	Serializer      SerializerInterface
    	SerializeValuer SerializerValuerInterface
    	Destination     reflect.Value
    	Context         context.Context
    	value           interface{}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 18 08:28:46 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  5. cmd/tier-journal.go

    type tierDiskJournal struct {
    	sync.RWMutex
    	diskPath string
    	file     *os.File // active journal file
    }
    
    // TierJournal holds an in-memory and an on-disk delete journal of tiered content.
    type TierJournal struct {
    	*tierDiskJournal // for processing legacy journal entries
    	*tierMemJournal  // for processing new journal entries
    }
    
    type jentry struct {
    	ObjName   string `msg:"obj"`
    Go
    - Registered: Sun Feb 25 19:28:16 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  6. internal/event/target/kafka.go

    }
    
    // KafkaArgs - Kafka target arguments.
    type KafkaArgs struct {
    	Enable     bool        `json:"enable"`
    	Brokers    []xnet.Host `json:"brokers"`
    	Topic      string      `json:"topic"`
    	QueueDir   string      `json:"queueDir"`
    	QueueLimit uint64      `json:"queueLimit"`
    	Version    string      `json:"version"`
    	BatchSize  uint32      `json:"batchSize"`
    	TLS        struct {
    		Enable        bool               `json:"enable"`
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Feb 20 08:16:35 GMT 2024
    - 13K bytes
    - Viewed (0)
  7. schema/schema.go

    		return field
    	}
    	if field, ok := schema.FieldsByName[name]; ok {
    		return field
    	}
    	return nil
    }
    
    // LookUpFieldByBindName looks for the closest field in the embedded struct.
    //
    //	type Struct struct {
    //		Embedded struct {
    //			ID string // is selected by LookUpFieldByBindName([]string{"Embedded", "ID"}, "ID")
    //		}
    //		ID string // is selected by LookUpFieldByBindName([]string{"ID"}, "ID")
    //	}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Oct 10 06:50:29 GMT 2023
    - 13.7K bytes
    - Viewed (0)
  8. internal/grid/connection_test.go

    		localServer.Close()
    		remote.debugMsg(debugWaitForExit)
    		local.debugMsg(debugWaitForExit)
    	}()
    
    	cleanReqs := make(chan struct{})
    	gotCall := make(chan struct{})
    	defer close(cleanReqs)
    	// 1: Block forever
    	h1 := func(payload []byte) ([]byte, *RemoteErr) {
    		gotCall <- struct{}{}
    		<-cleanReqs
    		return nil, nil
    	}
    	// 2: Also block, but with streaming.
    	h2 := StreamHandler{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 6K bytes
    - Viewed (0)
  9. cni/pkg/nodeagent/ztunnelserver.go

    */
    
    type connMgr struct {
    	connectionSet map[*ZtunnelConnection]struct{}
    	latestConn    *ZtunnelConnection
    	mu            sync.Mutex
    }
    
    func (c *connMgr) addConn(conn *ZtunnelConnection) {
    	log.Debug("ztunnel connected")
    	c.mu.Lock()
    	defer c.mu.Unlock()
    	c.connectionSet[conn] = struct{}{}
    	c.latestConn = conn
    	ztunnelConnected.RecordInt(int64(len(c.connectionSet)))
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  10. utils/utils_test.go

    		if fields := strings.FieldsFunc(db, IsValidDBNameChar); len(fields) != 1 {
    			t.Fatalf("failed to parse db name %v", db)
    		}
    	}
    }
    
    func TestCheckTruth(t *testing.T) {
    	checkTruthTests := []struct {
    		v   string
    		out bool
    	}{
    		{"123", true},
    		{"true", true},
    		{"", false},
    		{"false", false},
    		{"False", false},
    		{"FALSE", false},
    		{"\u0046alse", false},
    	}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Feb 19 03:42:25 GMT 2024
    - 3.6K bytes
    - Viewed (0)
Back to top