Documentation ¶
Overview ¶
Package gedis implements a client for Gedis (https://github.com/threefoldtech/digitalmeX/tree/master/docs/Gedis)
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Bytes is a helper that converts a command reply to a slice of bytes. If err // is not equal to nil, then Bytes returns nil, err. Otherwise Bytes converts // the reply to a slice of bytes as follows: // // Reply type Result // bulk string reply, nil // simple string []byte(reply), nil // nil nil, ErrNil // other nil, error Bytes = redis.Bytes // Bool is a helper that converts a command reply to a boolean. If err is not // equal to nil, then Bool returns false, err. Otherwise Bool converts the // reply to boolean as follows: // // Reply type Result // integer value != 0, nil // bulk string strconv.ParseBool(reply) // nil false, ErrNil // other false, error Bool = redis.Bool )
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct { Message string `json:"message,omitempty"` Level uint `json:"level,omitempty"` Context string `json:"context,omitempty"` Category string `json:"cat,omitempty"` }
Error is an error returned by a gedis server
type Gedis ¶
type Gedis struct {
// contains filtered or unexported fields
}
Gedis struct represent a client to a gedis server
func (*Gedis) Close ¶
Close closes all connection to the gedis server and stops the close the connection pool
Click to show internal directories.
Click to hide internal directories.