Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_groupcachepb_groupcache_proto protoreflect.FileDescriptor
var GroupCache_ServiceDesc = grpc.ServiceDesc{ ServiceName: "groupcachepb.GroupCache", HandlerType: (*GroupCacheServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Get", Handler: _GroupCache_Get_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "groupcachepb/groupcache.proto", }
GroupCache_ServiceDesc is the grpc.ServiceDesc for GroupCache service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterGroupCacheServer ¶
func RegisterGroupCacheServer(s grpc.ServiceRegistrar, srv GroupCacheServer)
Types ¶
type GetRequest ¶
type GetRequest struct { Group string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) GetGroup ¶
func (x *GetRequest) GetGroup() string
func (*GetRequest) GetKey ¶
func (x *GetRequest) GetKey() string
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
type GetResponse ¶
type GetResponse struct { Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*GetResponse) Descriptor
deprecated
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) GetValue ¶
func (x *GetResponse) GetValue() []byte
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) ProtoReflect ¶
func (x *GetResponse) ProtoReflect() protoreflect.Message
func (*GetResponse) Reset ¶
func (x *GetResponse) Reset()
func (*GetResponse) String ¶
func (x *GetResponse) String() string
type GroupCacheClient ¶
type GroupCacheClient interface {
Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
}
GroupCacheClient is the client API for GroupCache service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewGroupCacheClient ¶
func NewGroupCacheClient(cc grpc.ClientConnInterface) GroupCacheClient
type GroupCacheServer ¶
type GroupCacheServer interface { Get(context.Context, *GetRequest) (*GetResponse, error) // contains filtered or unexported methods }
GroupCacheServer is the server API for GroupCache service. All implementations must embed UnimplementedGroupCacheServer for forward compatibility
type UnimplementedGroupCacheServer ¶
type UnimplementedGroupCacheServer struct { }
UnimplementedGroupCacheServer must be embedded to have forward compatible implementations.
func (UnimplementedGroupCacheServer) Get ¶
func (UnimplementedGroupCacheServer) Get(context.Context, *GetRequest) (*GetResponse, error)
type UnsafeGroupCacheServer ¶
type UnsafeGroupCacheServer interface {
// contains filtered or unexported methods
}
UnsafeGroupCacheServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GroupCacheServer will result in compilation errors.