Documentation ¶
Index ¶
Constants ¶
View Source
const LUA_SAVE string = `` /* 3173-byte string literal not displayed */
Variables ¶
View Source
var NoIDError error = errors.New(`model does not have an ohm:"id" tagged field`)
View Source
var NoStructError error = errors.New(`model is not a struct`)
View Source
var NonExportedAttrError error = errors.New(`can't put ohm tags in unexported fields`)
View Source
var NonStringIDError error = errors.New(`model's ohm:"id" field is not a string`)
Functions ¶
This section is empty.
Types ¶
type Connection ¶
func NewConnection ¶
func NewConnection(r ...*redis.Pool) (*Connection, error)
func NewConnectionWithPool ¶
func NewConnectionWithPool(pool *redis.Pool) *Connection
func (*Connection) Load ¶
func (c *Connection) Load(model interface{}) (err error)
func (*Connection) Save ¶
func (c *Connection) Save(model interface{}) error
Click to show internal directories.
Click to hide internal directories.