Documentation ¶
Overview ¶
Package groupcachepb is a generated protocol buffer package.
It is generated from these files:
server/pkg/cache/groupcachepb/groupcache.proto
It has these top-level messages:
GetRequest GetResponse
Index ¶
- Variables
- func RegisterGroupCacheServer(s *grpc.Server, srv GroupCacheServer)
- type GetRequest
- func (*GetRequest) Descriptor() ([]byte, []int)
- func (m *GetRequest) GetGroup() string
- func (m *GetRequest) GetKey() string
- func (m *GetRequest) Marshal() (dAtA []byte, err error)
- func (m *GetRequest) MarshalTo(dAtA []byte) (int, error)
- func (*GetRequest) ProtoMessage()
- func (m *GetRequest) Reset()
- func (m *GetRequest) Size() (n int)
- func (m *GetRequest) String() string
- func (m *GetRequest) Unmarshal(dAtA []byte) error
- type GetResponse
- func (*GetResponse) Descriptor() ([]byte, []int)
- func (m *GetResponse) GetMinuteQps() float64
- func (m *GetResponse) GetValue() []byte
- func (m *GetResponse) Marshal() (dAtA []byte, err error)
- func (m *GetResponse) MarshalTo(dAtA []byte) (int, error)
- func (*GetResponse) ProtoMessage()
- func (m *GetResponse) Reset()
- func (m *GetResponse) Size() (n int)
- func (m *GetResponse) String() string
- func (m *GetResponse) Unmarshal(dAtA []byte) error
- type GroupCacheClient
- type GroupCacheServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthGroupcache = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGroupcache = fmt.Errorf("proto: integer overflow") )
Functions ¶
func RegisterGroupCacheServer ¶
func RegisterGroupCacheServer(s *grpc.Server, srv GroupCacheServer)
Types ¶
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:"-"` }
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) Marshal ¶ added in v1.5.0
func (m *GetRequest) Marshal() (dAtA []byte, err error)
func (*GetRequest) MarshalTo ¶ added in v1.5.0
func (m *GetRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) Reset ¶
func (m *GetRequest) Reset()
func (*GetRequest) Size ¶ added in v1.5.0
func (m *GetRequest) Size() (n int)
func (*GetRequest) String ¶
func (m *GetRequest) String() string
func (*GetRequest) Unmarshal ¶ added in v1.5.0
func (m *GetRequest) Unmarshal(dAtA []byte) error
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) Marshal ¶ added in v1.5.0
func (m *GetResponse) Marshal() (dAtA []byte, err error)
func (*GetResponse) MarshalTo ¶ added in v1.5.0
func (m *GetResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) Reset ¶
func (m *GetResponse) Reset()
func (*GetResponse) Size ¶ added in v1.5.0
func (m *GetResponse) Size() (n int)
func (*GetResponse) String ¶
func (m *GetResponse) String() string
func (*GetResponse) Unmarshal ¶ added in v1.5.0
func (m *GetResponse) Unmarshal(dAtA []byte) error
type GroupCacheClient ¶
type GroupCacheClient interface {
Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
}
func NewGroupCacheClient ¶
func NewGroupCacheClient(cc *grpc.ClientConn) GroupCacheClient
type GroupCacheServer ¶
type GroupCacheServer interface {
Get(context.Context, *GetRequest) (*GetResponse, error)
}
Click to show internal directories.
Click to hide internal directories.