Documentation ¶
Index ¶
- type Server
- func (s *Server) CacheGet(_ context.Context, req *proto.CacheGetRequest) (*proto.CacheGetResponse, error)
- func (s *Server) CacheSet(_ context.Context, req *proto.CacheSetRequest) (*proto.Empty, error)
- func (s *Server) CounterGet(_ context.Context, req *proto.GetCounterRequest) (*proto.GetCounterResponse, error)
- func (s *Server) CounterIncrement(_ context.Context, req *proto.IncrementCounterRequest) (*proto.GetCounterResponse, error)
- func (s *Server) FlagGet(_ context.Context, req *proto.FlagGetRequest) (*proto.FlagResponse, error)
- func (s *Server) FlagSet(_ context.Context, req *proto.FlagSetRequest) (*proto.Empty, error)
- func (s *Server) KVDelete(_ context.Context, location *proto.Location) (*proto.Empty, error)
- func (s *Server) KVGet(_ context.Context, location *proto.Location) (*proto.GetResponse, error)
- func (s *Server) KVPut(_ context.Context, req *proto.PutRequest) (*proto.Empty, error)
- func (s *Server) SetAdd(_ context.Context, req *proto.ModifySetRequest) (*proto.SetResponse, error)
- func (s *Server) SetGet(_ context.Context, req *proto.GetSetRequest) (*proto.SetResponse, error)
- func (s *Server) SetRemove(_ context.Context, req *proto.ModifySetRequest) (*proto.SetResponse, error)
- func (s *Server) ShutDown() error
- func (s *Server) Start() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewGrpcServer ¶
func NewGrpcServer(cfg *purple.ServerConfig) (*Server, error)
func (*Server) CacheGet ¶
func (s *Server) CacheGet(_ context.Context, req *proto.CacheGetRequest) (*proto.CacheGetResponse, error)
Cache
func (*Server) CounterGet ¶ added in v0.1.6
func (s *Server) CounterGet(_ context.Context, req *proto.GetCounterRequest) (*proto.GetCounterResponse, error)
Counter
func (*Server) CounterIncrement ¶ added in v0.1.6
func (s *Server) CounterIncrement(_ context.Context, req *proto.IncrementCounterRequest) (*proto.GetCounterResponse, error)
func (*Server) FlagGet ¶
func (s *Server) FlagGet(_ context.Context, req *proto.FlagGetRequest) (*proto.FlagResponse, error)
Flag
func (*Server) SetAdd ¶
func (s *Server) SetAdd(_ context.Context, req *proto.ModifySetRequest) (*proto.SetResponse, error)
func (*Server) SetGet ¶
func (s *Server) SetGet(_ context.Context, req *proto.GetSetRequest) (*proto.SetResponse, error)
Sets
func (*Server) SetRemove ¶
func (s *Server) SetRemove(_ context.Context, req *proto.ModifySetRequest) (*proto.SetResponse, error)
Click to show internal directories.
Click to hide internal directories.