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 NewChannelRepository(db Database) things.ChannelRepository + func NewThingRepository(db Database) things.ThingRepository + type Config struct + Host string + Name string + Pass string + Port string + SSLCert string + SSLKey string + SSLMode string + SSLRootCert string + User string + type Database interface + BeginTxx func(context.Context, *sql.TxOptions) (*sqlx.Tx, error) + 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