Versions in this module Expand all Collapse all v0 v0.0.1 Oct 16, 2020 Changes in this version + func Connect(cfg Config) (*sqlx.DB, error) + func NewGroupRepo(db Database) users.GroupRepository + func NewUserRepo(db Database) users.UserRepository + type Config struct + Host string + Name string + Pass string + Port string + SSLCert string + SSLKey string + SSLMode string + SSLRootCert string + User string + type Database interface + GetContext func(context.Context, interface{}, string, ...interface{}) error + NamedExecContext func(context.Context, string, interface{}) (sql.Result, error) + NamedQueryContext func(context.Context, string, interface{}) (*sqlx.Rows, error) + QueryRowxContext func(context.Context, string, ...interface{}) *sqlx.Row + func NewDatabase(db *sqlx.DB) Database