session

package
v0.0.0-...-bfc3bc0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService() (service.Service, error)

NewService returns a new Service

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

type Service

type Service struct {
	service.Service
}

Service is an implementation of map api service.

func (Service) Register

func (s Service) Register(r *grpc.Server)

Register registers the session service

Jump to

Keyboard shortcuts

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