Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool contains dockertest and redis connection pool
func (*Pool) GetContext ¶
GetContext gets a connection with redis
type Post ¶
type Post struct {
ID uint64 `redis:"id"`
Title string `redis:"title"`
Body string `redis:"body"`
UpdatedAt int64 `redis:"updated_at"`
}
Post is a test object
func (*Post) Deserialized ¶ added in v0.7.0
Deserialized implements the types.Model interface
func (*Post) GetDatabaseNo ¶ added in v0.7.11
func (*Post) GetKeySuffix ¶
GetKeySuffix implements the types.Model interface
func (*Post) GetScoreMap ¶
GetScoreMap implements the types.Model interface
func (*Post) Serialized ¶ added in v0.6.0
Serialized implements the types.Model interface
type Post_Serialized ¶ added in v0.7.0
type Post_Serialized struct {
ro.Model
ID uint64 `redis:"id"`
UserID uint64 `redis:"user_id"`
Title string `redis:"title"`
Body string `redis:"body"`
CreatedAt int64 `redis:"created_at"`
}
func (*Post_Serialized) Deserialized ¶ added in v0.7.0
func (p *Post_Serialized) Deserialized(b []byte)
func (*Post_Serialized) GetDatabaseNo ¶ added in v0.7.11
func (p *Post_Serialized) GetDatabaseNo() string
func (*Post_Serialized) GetKeySuffix ¶ added in v0.7.0
func (p *Post_Serialized) GetKeySuffix() string
func (*Post_Serialized) GetScoreMap ¶ added in v0.7.0
func (p *Post_Serialized) GetScoreMap() map[string]interface{}
func (*Post_Serialized) Serialized ¶ added in v0.7.0
func (p *Post_Serialized) Serialized() []byte
Click to show internal directories.
Click to hide internal directories.