Documentation
¶
Index ¶
- type Service
- func (s *Service) Del(ctx context.Context, req *dbs.DelRequest) (*dbs.DelResponse, error)
- func (s *Service) Get(ctx context.Context, req *dbs.GetRequest) (*dbs.GetResponse, error)
- func (s *Service) IsGrpcServerRunning() bool
- func (s *Service) Keys(ctx context.Context, req *dbs.KeysRequest) (*dbs.KeysResponse, error)
- func (s *Service) Put(ctx context.Context, req *dbs.PutRequest) (*dbs.PutResponse, error)
- func (s *Service) StartServer()
- func (s *Service) StopServer()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { dbs.FlyDBServiceServer Addr string // db server address // contains filtered or unexported fields }
Service is a grpc Service for db
func NewService ¶
NewService returns a new grpc Service
func (*Service) Del ¶
func (s *Service) Del(ctx context.Context, req *dbs.DelRequest) (*dbs.DelResponse, error)
Del is a grpc s for del
func (*Service) Get ¶
func (s *Service) Get(ctx context.Context, req *dbs.GetRequest) (*dbs.GetResponse, error)
Get is a grpc s for get
func (*Service) IsGrpcServerRunning ¶
IsGrpcServerRunning returns whether the grpc server is running
func (*Service) Keys ¶
func (s *Service) Keys(ctx context.Context, req *dbs.KeysRequest) (*dbs.KeysResponse, error)
Keys is a grpc s for keys
func (*Service) Put ¶
func (s *Service) Put(ctx context.Context, req *dbs.PutRequest) (*dbs.PutResponse, error)
Put is a grpc s for put
func (*Service) StopServer ¶
func (s *Service) StopServer()
Click to show internal directories.
Click to hide internal directories.