Documentation ¶
Overview ¶
Package groupcachepb is a generated protocol buffer package.
It is generated from these files:
groupcache.proto
It has these top-level messages:
GetRequest GetResponse KeyValue GetBatchRequest GetBatchResponse PutRequest PutResponse PutBatchRequest PutBatchResponse Entries
Index ¶
- type Entries
- type GetBatchRequest
- type GetBatchResponse
- type GetRequest
- type GetResponse
- type KeyValue
- type PutBatchRequest
- func (*PutBatchRequest) Descriptor() ([]byte, []int)
- func (m *PutBatchRequest) GetGroup() string
- func (m *PutBatchRequest) GetKeys() []string
- func (m *PutBatchRequest) GetValues() [][]byte
- func (*PutBatchRequest) ProtoMessage()
- func (m *PutBatchRequest) Reset()
- func (m *PutBatchRequest) String() string
- type PutBatchResponse
- type PutRequest
- type PutResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entries ¶
type Entries struct { Keys []string `protobuf:"bytes,1,rep,name=keys" json:"keys,omitempty"` Values [][]byte `protobuf:"bytes,2,rep,name=values" json:"values,omitempty"` XXX_unrecognized []byte `json:"-"` }
packed values
func (*Entries) Descriptor ¶
func (*Entries) ProtoMessage ¶
func (*Entries) ProtoMessage()
type GetBatchRequest ¶
type GetBatchRequest struct { Group *string `protobuf:"bytes,1,req,name=group" json:"group,omitempty"` Kvs []*KeyValue `protobuf:"bytes,2,rep,name=kvs" json:"kvs,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*GetBatchRequest) Descriptor ¶
func (*GetBatchRequest) Descriptor() ([]byte, []int)
func (*GetBatchRequest) GetGroup ¶
func (m *GetBatchRequest) GetGroup() string
func (*GetBatchRequest) GetKvs ¶
func (m *GetBatchRequest) GetKvs() []*KeyValue
func (*GetBatchRequest) ProtoMessage ¶
func (*GetBatchRequest) ProtoMessage()
func (*GetBatchRequest) Reset ¶
func (m *GetBatchRequest) Reset()
func (*GetBatchRequest) String ¶
func (m *GetBatchRequest) String() string
type GetBatchResponse ¶
type GetBatchResponse struct { Kvs []*KeyValue `protobuf:"bytes,1,rep,name=kvs" json:"kvs,omitempty"` MinuteQps *float64 `protobuf:"fixed64,2,opt,name=minute_qps,json=minuteQps" json:"minute_qps,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*GetBatchResponse) Descriptor ¶
func (*GetBatchResponse) Descriptor() ([]byte, []int)
func (*GetBatchResponse) GetKvs ¶
func (m *GetBatchResponse) GetKvs() []*KeyValue
func (*GetBatchResponse) GetMinuteQps ¶
func (m *GetBatchResponse) GetMinuteQps() float64
func (*GetBatchResponse) ProtoMessage ¶
func (*GetBatchResponse) ProtoMessage()
func (*GetBatchResponse) Reset ¶
func (m *GetBatchResponse) Reset()
func (*GetBatchResponse) String ¶
func (m *GetBatchResponse) String() string
type GetRequest ¶
type GetRequest struct { Group *string `protobuf:"bytes,1,req,name=group" json:"group,omitempty"` Key *string `protobuf:"bytes,2,req,name=key" json:"key,omitempty"` XXX_unrecognized []byte `json:"-"` }
get
func (*GetRequest) Descriptor ¶
func (*GetRequest) Descriptor() ([]byte, []int)
func (*GetRequest) GetGroup ¶
func (m *GetRequest) GetGroup() string
func (*GetRequest) GetKey ¶
func (m *GetRequest) GetKey() string
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) Reset ¶
func (m *GetRequest) Reset()
func (*GetRequest) String ¶
func (m *GetRequest) String() string
type GetResponse ¶
type GetResponse struct { Value []byte `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"` MinuteQps *float64 `protobuf:"fixed64,2,opt,name=minute_qps,json=minuteQps" json:"minute_qps,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*GetResponse) Descriptor ¶
func (*GetResponse) Descriptor() ([]byte, []int)
func (*GetResponse) GetMinuteQps ¶
func (m *GetResponse) GetMinuteQps() float64
func (*GetResponse) GetValue ¶
func (m *GetResponse) GetValue() []byte
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) Reset ¶
func (m *GetResponse) Reset()
func (*GetResponse) String ¶
func (m *GetResponse) String() string
type KeyValue ¶
type KeyValue struct { Key *string `protobuf:"bytes,1,req,name=key" json:"key,omitempty"` Idx *int32 `protobuf:"varint,2,req,name=idx" json:"idx,omitempty"` Value []byte `protobuf:"bytes,3,opt,name=value" json:"value,omitempty"` Error *string `protobuf:"bytes,4,opt,name=error" json:"error,omitempty"` XXX_unrecognized []byte `json:"-"` }
batch get
func (*KeyValue) Descriptor ¶
func (*KeyValue) ProtoMessage ¶
func (*KeyValue) ProtoMessage()
type PutBatchRequest ¶
type PutBatchRequest struct { Group *string `protobuf:"bytes,1,req,name=group" json:"group,omitempty"` Keys []string `protobuf:"bytes,2,rep,name=keys" json:"keys,omitempty"` Values [][]byte `protobuf:"bytes,3,rep,name=values" json:"values,omitempty"` XXX_unrecognized []byte `json:"-"` }
batch put
func (*PutBatchRequest) Descriptor ¶
func (*PutBatchRequest) Descriptor() ([]byte, []int)
func (*PutBatchRequest) GetGroup ¶
func (m *PutBatchRequest) GetGroup() string
func (*PutBatchRequest) GetKeys ¶
func (m *PutBatchRequest) GetKeys() []string
func (*PutBatchRequest) GetValues ¶
func (m *PutBatchRequest) GetValues() [][]byte
func (*PutBatchRequest) ProtoMessage ¶
func (*PutBatchRequest) ProtoMessage()
func (*PutBatchRequest) Reset ¶
func (m *PutBatchRequest) Reset()
func (*PutBatchRequest) String ¶
func (m *PutBatchRequest) String() string
type PutBatchResponse ¶
type PutBatchResponse struct { MinuteQps *float64 `protobuf:"fixed64,1,opt,name=minute_qps,json=minuteQps" json:"minute_qps,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*PutBatchResponse) Descriptor ¶
func (*PutBatchResponse) Descriptor() ([]byte, []int)
func (*PutBatchResponse) GetMinuteQps ¶
func (m *PutBatchResponse) GetMinuteQps() float64
func (*PutBatchResponse) ProtoMessage ¶
func (*PutBatchResponse) ProtoMessage()
func (*PutBatchResponse) Reset ¶
func (m *PutBatchResponse) Reset()
func (*PutBatchResponse) String ¶
func (m *PutBatchResponse) String() string
type PutRequest ¶
type PutRequest struct { Group *string `protobuf:"bytes,1,req,name=group" json:"group,omitempty"` Key *string `protobuf:"bytes,2,req,name=key" json:"key,omitempty"` Value []byte `protobuf:"bytes,3,req,name=value" json:"value,omitempty"` XXX_unrecognized []byte `json:"-"` }
put
func (*PutRequest) Descriptor ¶
func (*PutRequest) Descriptor() ([]byte, []int)
func (*PutRequest) GetGroup ¶
func (m *PutRequest) GetGroup() string
func (*PutRequest) GetKey ¶
func (m *PutRequest) GetKey() string
func (*PutRequest) GetValue ¶
func (m *PutRequest) GetValue() []byte
func (*PutRequest) ProtoMessage ¶
func (*PutRequest) ProtoMessage()
func (*PutRequest) Reset ¶
func (m *PutRequest) Reset()
func (*PutRequest) String ¶
func (m *PutRequest) String() string
type PutResponse ¶
type PutResponse struct { MinuteQps *float64 `protobuf:"fixed64,1,opt,name=minute_qps,json=minuteQps" json:"minute_qps,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*PutResponse) Descriptor ¶
func (*PutResponse) Descriptor() ([]byte, []int)
func (*PutResponse) GetMinuteQps ¶
func (m *PutResponse) GetMinuteQps() float64
func (*PutResponse) ProtoMessage ¶
func (*PutResponse) ProtoMessage()
func (*PutResponse) Reset ¶
func (m *PutResponse) Reset()
func (*PutResponse) String ¶
func (m *PutResponse) String() string
Click to show internal directories.
Click to hide internal directories.