Documentation ¶
Index ¶
- func NewService() (service.Service, error)
- type Server
- func (s *Server) CloseSession(ctx context.Context, request *api.CloseSessionRequest) (*api.CloseSessionResponse, error)
- func (s *Server) KeepAlive(ctx context.Context, request *api.KeepAliveRequest) (*api.KeepAliveResponse, error)
- func (s *Server) OpenSession(ctx context.Context, request *api.OpenSessionRequest) (*api.OpenSessionResponse, error)
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct {
api.SessionServiceServer
}
Server is an implementation of SessionServiceServer for session management
func (*Server) CloseSession ¶
func (s *Server) CloseSession(ctx context.Context, request *api.CloseSessionRequest) (*api.CloseSessionResponse, error)
CloseSession closes a new redis session
func (*Server) KeepAlive ¶
func (s *Server) KeepAlive(ctx context.Context, request *api.KeepAliveRequest) (*api.KeepAliveResponse, error)
KeepAlive keeps a session alive
func (*Server) OpenSession ¶
func (s *Server) OpenSession(ctx context.Context, request *api.OpenSessionRequest) (*api.OpenSessionResponse, error)
OpenSession opens a new redis session
Click to show internal directories.
Click to hide internal directories.