Documentation
¶
Index ¶
- Variables
- func RegisterSessionServer(s grpc.ServiceRegistrar, srv SessionServer)
- type DeleteRequest
- type Empty
- type GetRequest
- type GetResponse
- type PutRequest
- type SessionClient
- type SessionServer
- type SettingRequest
- type UnimplementedSessionServer
- func (UnimplementedSessionServer) Close(context.Context, *Empty) (*Empty, error)
- func (UnimplementedSessionServer) Delete(context.Context, *DeleteRequest) (*Empty, error)
- func (UnimplementedSessionServer) Get(context.Context, *GetRequest) (*GetResponse, error)
- func (UnimplementedSessionServer) Init(context.Context, *SettingRequest) (*Empty, error)
- func (UnimplementedSessionServer) Put(context.Context, *PutRequest) (*Empty, error)
- type UnsafeSessionServer
Constants ¶
This section is empty.
Variables ¶
var File_proto_session_proto protoreflect.FileDescriptor
var Session_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.Session", HandlerType: (*SessionServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Init", Handler: _Session_Init_Handler, }, { MethodName: "Get", Handler: _Session_Get_Handler, }, { MethodName: "Put", Handler: _Session_Put_Handler, }, { MethodName: "Delete", Handler: _Session_Delete_Handler, }, { MethodName: "Close", Handler: _Session_Close_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/session.proto", }
Session_ServiceDesc is the grpc.ServiceDesc for Session service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSessionServer ¶
func RegisterSessionServer(s grpc.ServiceRegistrar, srv SessionServer)
Types ¶
type DeleteRequest ¶
type DeleteRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*DeleteRequest) Descriptor
deprecated
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) GetKey ¶
func (x *DeleteRequest) GetKey() string
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) ProtoReflect ¶
func (x *DeleteRequest) ProtoReflect() protoreflect.Message
func (*DeleteRequest) Reset ¶
func (x *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (x *DeleteRequest) String() string
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type GetRequest ¶
type GetRequest struct { Key string `protobuf:"bytes,1,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) 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 string `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() string
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 PutRequest ¶
type PutRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*PutRequest) Descriptor
deprecated
func (*PutRequest) Descriptor() ([]byte, []int)
Deprecated: Use PutRequest.ProtoReflect.Descriptor instead.
func (*PutRequest) GetKey ¶
func (x *PutRequest) GetKey() string
func (*PutRequest) GetValue ¶
func (x *PutRequest) GetValue() string
func (*PutRequest) ProtoMessage ¶
func (*PutRequest) ProtoMessage()
func (*PutRequest) ProtoReflect ¶
func (x *PutRequest) ProtoReflect() protoreflect.Message
func (*PutRequest) Reset ¶
func (x *PutRequest) Reset()
func (*PutRequest) String ¶
func (x *PutRequest) String() string
type SessionClient ¶
type SessionClient interface { Init(ctx context.Context, in *SettingRequest, opts ...grpc.CallOption) (*Empty, error) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) Put(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*Empty, error) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*Empty, error) Close(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) }
SessionClient is the client API for Session 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 NewSessionClient ¶
func NewSessionClient(cc grpc.ClientConnInterface) SessionClient
type SessionServer ¶
type SessionServer interface { Init(context.Context, *SettingRequest) (*Empty, error) Get(context.Context, *GetRequest) (*GetResponse, error) Put(context.Context, *PutRequest) (*Empty, error) Delete(context.Context, *DeleteRequest) (*Empty, error) Close(context.Context, *Empty) (*Empty, error) // contains filtered or unexported methods }
SessionServer is the server API for Session service. All implementations must embed UnimplementedSessionServer for forward compatibility
type SettingRequest ¶
type SettingRequest struct { Config []byte `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` // contains filtered or unexported fields }
func (*SettingRequest) Descriptor
deprecated
func (*SettingRequest) Descriptor() ([]byte, []int)
Deprecated: Use SettingRequest.ProtoReflect.Descriptor instead.
func (*SettingRequest) GetConfig ¶
func (x *SettingRequest) GetConfig() []byte
func (*SettingRequest) ProtoMessage ¶
func (*SettingRequest) ProtoMessage()
func (*SettingRequest) ProtoReflect ¶
func (x *SettingRequest) ProtoReflect() protoreflect.Message
func (*SettingRequest) Reset ¶
func (x *SettingRequest) Reset()
func (*SettingRequest) String ¶
func (x *SettingRequest) String() string
type UnimplementedSessionServer ¶
type UnimplementedSessionServer struct { }
UnimplementedSessionServer must be embedded to have forward compatible implementations.
func (UnimplementedSessionServer) Delete ¶
func (UnimplementedSessionServer) Delete(context.Context, *DeleteRequest) (*Empty, error)
func (UnimplementedSessionServer) Get ¶
func (UnimplementedSessionServer) Get(context.Context, *GetRequest) (*GetResponse, error)
func (UnimplementedSessionServer) Init ¶
func (UnimplementedSessionServer) Init(context.Context, *SettingRequest) (*Empty, error)
func (UnimplementedSessionServer) Put ¶
func (UnimplementedSessionServer) Put(context.Context, *PutRequest) (*Empty, error)
type UnsafeSessionServer ¶
type UnsafeSessionServer interface {
// contains filtered or unexported methods
}
UnsafeSessionServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SessionServer will result in compilation errors.