Documentation
¶
Index ¶
- func RegisterSetType(v interface{})
- type Chest
- func (s *Chest) Get(req *Request, response *Response) error
- func (s *Chest) ListAppend(req *Request, response *Response) error
- func (s *Chest) Set(req *Request, response *Response) error
- func (s *Chest) SetAdd(req *Request, response *Response) error
- func (s *Chest) SetExists(req *Request, response *Response) error
- type Client
- func (c *Client) Close()
- func (c *Client) Get(key string) (interface{}, error)
- func (c *Client) ListAppend(key string, values ...interface{}) error
- func (c *Client) Set(key string, value interface{}) error
- func (c *Client) SetAdd(key string, value interface{}) error
- func (c *Client) SetExists(key string, value interface{}) bool
- type Request
- type RequestType
- type Response
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSetType ¶
func RegisterSetType(v interface{})
Types ¶
type Chest ¶
type Chest struct { Data map[string]interface{} // contains filtered or unexported fields }
type Client ¶
func (*Client) ListAppend ¶
type Request ¶
type Request struct { Type RequestType Key string Value interface{} }
type RequestType ¶
type RequestType uint8
var ( Set RequestType = 1 Get RequestType = 2 ListAppend RequestType = 3 SetAdd RequestType = 4 SetExists RequestType = 5 )
type Server ¶
func (*Server) SetErrorHandler ¶
Click to show internal directories.
Click to hide internal directories.