Documentation
¶
Index ¶
- func CmdRun(c *cli.Context) (err error)
- type Server
- func (s *Server) Delete(ctx context.Context, key *kvs.Key) (res *kvs.DeleteResponse, err error)
- func (s *Server) Get(ctx context.Context, key *kvs.Key) (res *kvs.Value, err error)
- func (s *Server) List(_ *kvs.ListRequest, server kvs.Kvs_ListServer) error
- func (s *Server) Put(ctx context.Context, entry *kvs.Entry) (res *kvs.PutResponse, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct { // Root is a path to the document root. Root string // Compress stored data. Compress bool // Logger is a logger object to output logging information. Logger *log.Logger }
Server defines a KVS server.
func (*Server) List ¶
func (s *Server) List(_ *kvs.ListRequest, server kvs.Kvs_ListServer) error
List lists up items stored in this KVS.
Click to show internal directories.
Click to hide internal directories.