Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_session_manager_proto protoreflect.FileDescriptor
var SessionManager_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.SessionManager", HandlerType: (*SessionManagerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateSession", Handler: _SessionManager_CreateSession_Handler, }, { MethodName: "GetSession", Handler: _SessionManager_GetSession_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "session_manager.proto", }
SessionManager_ServiceDesc is the grpc.ServiceDesc for SessionManager service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSessionManagerServer ¶
func RegisterSessionManagerServer(s grpc.ServiceRegistrar, srv SessionManagerServer)
Types ¶
type SessionID ¶
type SessionID struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*SessionID) Descriptor
deprecated
func (*SessionID) ProtoMessage ¶
func (*SessionID) ProtoMessage()
func (*SessionID) ProtoReflect ¶
func (x *SessionID) ProtoReflect() protoreflect.Message
type SessionManagerClient ¶
type SessionManagerClient interface { CreateSession(ctx context.Context, in *core_pb.Token, opts ...grpc.CallOption) (*SessionID, error) GetSession(ctx context.Context, in *SessionID, opts ...grpc.CallOption) (*core_pb.Token, error) }
SessionManagerClient is the client API for SessionManager 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 NewSessionManagerClient ¶
func NewSessionManagerClient(cc grpc.ClientConnInterface) SessionManagerClient
type SessionManagerServer ¶
type SessionManagerServer interface { CreateSession(context.Context, *core_pb.Token) (*SessionID, error) GetSession(context.Context, *SessionID) (*core_pb.Token, error) // contains filtered or unexported methods }
SessionManagerServer is the server API for SessionManager service. All implementations must embed UnimplementedSessionManagerServer for forward compatibility
type UnimplementedSessionManagerServer ¶
type UnimplementedSessionManagerServer struct { }
UnimplementedSessionManagerServer must be embedded to have forward compatible implementations.
func (UnimplementedSessionManagerServer) CreateSession ¶
func (UnimplementedSessionManagerServer) GetSession ¶
type UnsafeSessionManagerServer ¶
type UnsafeSessionManagerServer interface {
// contains filtered or unexported methods
}
UnsafeSessionManagerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SessionManagerServer will result in compilation errors.