Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNil = errors.New("db.go: nil returned")
Functions ¶
func Bytes ¶
Copied from github.com/redigo/redis 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
Types ¶
type Database ¶
Define Database data as struct
func NewDatabase ¶
Create new database and return populated struct
func (Database) GetJsonData ¶
Get json data for key at path.
Returns marshalled json byte array so make sure to unmarshall externally into an appropriate struct.
Click to show internal directories.
Click to hide internal directories.