session_manager_pb

package
v0.0.0-...-34395f8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_session_manager_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use SessionID.ProtoReflect.Descriptor instead.

func (*SessionID) GetCode

func (x *SessionID) GetCode() string

func (*SessionID) ProtoMessage

func (*SessionID) ProtoMessage()

func (*SessionID) ProtoReflect

func (x *SessionID) ProtoReflect() protoreflect.Message

func (*SessionID) Reset

func (x *SessionID) Reset()

func (*SessionID) String

func (x *SessionID) String() string

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.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL