Documentation ¶
Index ¶
- func NewConnString(host, user, pass, dbname string, port int, kw KW) string
- func WrapLogrus(log *logrus.Logger) *logger
- type KW
- type Logger
- type Postgres
- func (p *Postgres) GetChatsRating() ([]model.ChatStatistics, error)
- func (p *Postgres) GetGlobalRating() ([]model.UserInChat, error)
- func (p *Postgres) GetRating(chatID int64) ([]model.UserInChat, error)
- func (p *Postgres) GetStatistics() (model.Statistics, error)
- func (p *Postgres) IncrementUserStats(chat model.Chat, givenUser ...model.UserInChat) error
- type Redis
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WrapLogrus ¶ added in v0.1.1
Types ¶
type Postgres ¶
type Postgres struct {
// contains filtered or unexported fields
}
func (*Postgres) GetChatsRating ¶ added in v0.1.1
func (p *Postgres) GetChatsRating() ([]model.ChatStatistics, error)
func (*Postgres) GetGlobalRating ¶
func (p *Postgres) GetGlobalRating() ([]model.UserInChat, error)
func (*Postgres) GetStatistics ¶
func (p *Postgres) GetStatistics() (model.Statistics, error)
func (*Postgres) IncrementUserStats ¶
type Redis ¶ added in v0.1.1
func (*Redis) LookupForMachine ¶ added in v0.1.1
LookupForMachine will take machine from Redis and unmarshal json to m argument
Click to show internal directories.
Click to hide internal directories.