Documentation
¶
Index ¶
- type Config
- type Server
- func (s *Server) Add(ctx context.Context, req *grpcCache.KeyValueDurationRequest) (*emptypb.Empty, error)
- func (s *Server) Count(ctx context.Context, req *grpcCache.CountRequest) (*grpcCache.CountResponse, error)
- func (s *Server) Delete(ctx context.Context, req *grpcCache.KeyRequest) (*emptypb.Empty, error)
- func (s *Server) Get(ctx context.Context, req *grpcCache.KeyRequest) (*grpcCache.GetResponse, error)
- func (s *Server) Login(ctx context.Context, req *grpcCache.LoginRequest) (*grpcCache.LoginResponse, error)
- func (s *Server) Replace(ctx context.Context, req *grpcCache.KeyValueDurationRequest) (*emptypb.Empty, error)
- func (s *Server) RunServer()
- func (s *Server) Set(ctx context.Context, req *grpcCache.KeyValueDurationRequest) (*emptypb.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { grpcCache.CacheServiceServer Tokens *tokens.Tokens Cahce *cache.Cache Port string }
func NewWithConfig ¶
func (*Server) Count ¶
func (s *Server) Count(ctx context.Context, req *grpcCache.CountRequest) (*grpcCache.CountResponse, error)
func (*Server) Get ¶
func (s *Server) Get(ctx context.Context, req *grpcCache.KeyRequest) (*grpcCache.GetResponse, error)
func (*Server) Login ¶
func (s *Server) Login(ctx context.Context, req *grpcCache.LoginRequest) (*grpcCache.LoginResponse, error)
Click to show internal directories.
Click to hide internal directories.