Documentation ¶
Index ¶
- Constants
- func CreateSchema(db *sql.DB)
- func CreateStorage(connectionString string, maxConn, idleConn int, maxConnLifetime time.Duration) (storage.Storage, error)
- func NewDBApplicationStorage(db *sql.DB, userManagement storage.UserManagement) (storage.ApplicationStorage, error)
- func NewDBDataStorage(db *sql.DB, userManagement storage.UserManagement) (storage.DataStorage, error)
- func NewDBDeviceStorage(db *sql.DB, userManagement storage.UserManagement) (storage.DeviceStorage, error)
- func NewDBGatewayStorage(db *sql.DB, userManagement storage.UserManagement) (storage.GatewayStorage, error)
- func NewDBKeySequenceStorage(db *sql.DB) (storage.KeySequenceStorage, error)
- func NewDBOutputStorage(db *sql.DB, userManagement storage.UserManagement) (storage.AppOutputStorage, error)
- func NewDBTokenStorage(db *sql.DB, userManagement storage.UserManagement) (storage.TokenStorage, error)
- func NewDBUserManagement(db *sql.DB) (storage.UserManagement, error)
- func SchemaCommandList() []string
Constants ¶
const DBSchema = `` /* 9921-byte string literal not displayed */
DBSchema contains the storage scheme for PostgreSQL
Variables ¶
This section is empty.
Functions ¶
func CreateStorage ¶
func CreateStorage(connectionString string, maxConn, idleConn int, maxConnLifetime time.Duration) (storage.Storage, error)
CreateStorage creates a new storage
func NewDBApplicationStorage ¶
func NewDBApplicationStorage(db *sql.DB, userManagement storage.UserManagement) (storage.ApplicationStorage, error)
NewDBApplicationStorage creates a new ApplicationStorage instance for PostgreSQL backends
func NewDBDataStorage ¶
func NewDBDataStorage(db *sql.DB, userManagement storage.UserManagement) (storage.DataStorage, error)
NewDBDataStorage creates a new DataStorage instance.
func NewDBDeviceStorage ¶
func NewDBDeviceStorage(db *sql.DB, userManagement storage.UserManagement) (storage.DeviceStorage, error)
NewDBDeviceStorage returns a new PostgreSQL-backed device storage
func NewDBGatewayStorage ¶
func NewDBGatewayStorage(db *sql.DB, userManagement storage.UserManagement) (storage.GatewayStorage, error)
NewDBGatewayStorage returns a DB-backed GatewayStorage implementation.
func NewDBKeySequenceStorage ¶
func NewDBKeySequenceStorage(db *sql.DB) (storage.KeySequenceStorage, error)
NewDBKeySequenceStorage creates a new DB-backed KeySequenceStorage instance.
func NewDBOutputStorage ¶
func NewDBOutputStorage(db *sql.DB, userManagement storage.UserManagement) (storage.AppOutputStorage, error)
NewDBOutputStorage creates a new OutpubStorage instance backed by a database
func NewDBTokenStorage ¶
func NewDBTokenStorage(db *sql.DB, userManagement storage.UserManagement) (storage.TokenStorage, error)
NewDBTokenStorage creates a new database-backed token store
func NewDBUserManagement ¶
func NewDBUserManagement(db *sql.DB) (storage.UserManagement, error)
NewDBUserManagement creates a new database-backed UserManagement instance
func SchemaCommandList ¶
func SchemaCommandList() []string
SchemaCommandList returns a list of the DDL commands to create a schema.
Types ¶
This section is empty.