Documentation ¶
Index ¶
- Variables
- func OptionReadOnly() *optReadOnly
- func OptionResetDatabase() *optResetDatabase
- func OptionSchema(schema string) *optSchema
- type Client
- func (c *Client) Close()
- func (c *Client) Delete(key string) (string, error)
- func (c *Client) ForceWrite(key, value string) (string, error)
- func (c *Client) ListKeys() ([]string, error)
- func (c *Client) Read(key string) (string, error)
- func (c *Client) SchemaList() ([]string, error)
- func (c *Client) SchemaSet(schema string) error
- func (c *Client) Update(key, value string) (string, error)
- func (c *Client) Write(key, value string) (string, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrKeyNotFound = fmt.Errorf("Error: Key not found")
)
Functions ¶
func OptionReadOnly ¶
func OptionReadOnly() *optReadOnly
func OptionResetDatabase ¶
func OptionResetDatabase() *optResetDatabase
func OptionSchema ¶
func OptionSchema(schema string) *optSchema
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) SchemaList ¶
Click to show internal directories.
Click to hide internal directories.