Documentation ¶
Index ¶
- Constants
- 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) (*kvs.PutResponse, error)
Constants ¶
View Source
const DateFormat = "2006-01-02 15:04:05"
DateFormat defines a format to output logging information.
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 // Log is a writer to output logging information. Log io.Writer }
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.