Documentation
¶
Index ¶
- Constants
- Variables
- type Operation
- type Options
- type SimpleDb
- type SimpleDbClient
- func (client *SimpleDbClient) Close() error
- func (client *SimpleDbClient) Delete(ctx context.Context, key string) (string, error)
- func (client *SimpleDbClient) Get(ctx context.Context, key string) (string, error)
- func (client *SimpleDbClient) Put(ctx context.Context, key, value string) (string, error)
- func (client *SimpleDbClient) Reconnect() error
Constants ¶
View Source
const ( KEY_HEADER = "Key" LENGTH_HEADER = "Length" )
Variables ¶
View Source
var ErrServerClosed = errors.New("simple-db: Server closed")
View Source
var (
ErrTimeout = fmt.Errorf("request timed out")
)
Functions ¶
This section is empty.
Types ¶
type SimpleDb ¶
type SimpleDb struct {
// contains filtered or unexported fields
}
func NewSimpleDb ¶
func NewSimpleWithOptions ¶
type SimpleDbClient ¶
type SimpleDbClient struct {
// contains filtered or unexported fields
}
func NewSimpleDbClient ¶
func NewSimpleDbClient(address string) (*SimpleDbClient, error)
func (*SimpleDbClient) Close ¶
func (client *SimpleDbClient) Close() error
func (*SimpleDbClient) Reconnect ¶
func (client *SimpleDbClient) Reconnect() error
Click to show internal directories.
Click to hide internal directories.