Documentation
¶
Index ¶
- type Configuration
- type Configurations
- type DBWrapper
- func (w DBWrapper) Close()
- func (w DBWrapper) Exec(query string, args ...interface{}) (sql.Result, error)
- func (w DBWrapper) Query(query string, args ...interface{}) (IRows, error)
- func (w DBWrapper) QueryRow(query string, args ...interface{}) IRow
- func (w DBWrapper) SetMaxIdleConns(n int)
- func (w DBWrapper) SetMaxOpenConns(n int)
- type DbProvider
- type IDb
- type IRow
- type IRows
- type ISql
- type MemoryStore
- type RowWrapper
- type RowsWrapper
- type SQLWrapper
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
func (Configuration) StringifiedJSON ¶
func (rv Configuration) StringifiedJSON() (string, error)
type Configurations ¶ added in v0.0.80
type Configurations []Configuration
func (Configurations) Len ¶ added in v0.0.80
func (c Configurations) Len() int
func (Configurations) Less ¶ added in v0.0.80
func (c Configurations) Less(i, j int) bool
func (Configurations) StringifiedJSON ¶ added in v0.0.80
func (c Configurations) StringifiedJSON() (string, error)
func (Configurations) Swap ¶ added in v0.0.80
func (c Configurations) Swap(i, j int)
type DBWrapper ¶
type DBWrapper struct {
// contains filtered or unexported fields
}
func NewDbWrapper ¶
func (DBWrapper) SetMaxIdleConns ¶
func (DBWrapper) SetMaxOpenConns ¶
type DbProvider ¶
func NewConcreteDbProvider ¶
func NewConcreteDbProvider(sql ISql, config config.DBConfig) (DbProvider, error)
type MemoryStore ¶
type MemoryStore struct {
// contains filtered or unexported fields
}
func NewMemoryStore ¶
func NewMemoryStore() MemoryStore
func (MemoryStore) GetByID ¶
func (store MemoryStore) GetByID(id string) (Configuration, error)
func (MemoryStore) GetByName ¶
func (store MemoryStore) GetByName(name string) (Configurations, error)
type RowWrapper ¶
type RowWrapper struct {
// contains filtered or unexported fields
}
func NewRowWrapper ¶
func NewRowWrapper(row *sql.Row) RowWrapper
func (RowWrapper) Scan ¶
func (w RowWrapper) Scan(dest ...interface{}) error
type RowsWrapper ¶
type RowsWrapper struct {
// contains filtered or unexported fields
}
func NewRowsWrapper ¶
func NewRowsWrapper(rows *sql.Rows) RowsWrapper
func (RowsWrapper) Close ¶ added in v0.0.80
func (w RowsWrapper) Close() error
func (RowsWrapper) Next ¶
func (w RowsWrapper) Next() bool
func (RowsWrapper) Scan ¶ added in v0.0.80
func (w RowsWrapper) Scan(dest ...interface{}) error
type Store ¶
type Store interface { Put(key string, value string) (string, error) GetByName(name string) (Configurations, error) GetByID(id string) (Configuration, error) Delete(key string) (int, error) }
func CreateStore ¶
func CreateStore(config config.ServerConfig) (store Store, err error)
func NewMysqlStore ¶
func NewMysqlStore(dbProvider DbProvider) Store
func NewPostgresStore ¶
func NewPostgresStore(dbProvider DbProvider) Store
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter
|
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter |
Click to show internal directories.
Click to hide internal directories.