Documentation ¶
Index ¶
Constants ¶
View Source
const DriverNamePostgres = "postgres"
DriverNamePostgres holds driver name for PostgreSQL
Variables ¶
This section is empty.
Functions ¶
func PostgresDSNTests ¶
func PostgresDSNTests() string
PostgresDSNTests returns a postgresql DSN (DB access config string) for testing purposes
Types ¶
type Keeper ¶
type Keeper interface { Get(_type, data string) (*models.Param, error) Close() error // just for testing purposes }
Keeper provides storage abstraction
type Postgres ¶
type Postgres struct {
// contains filtered or unexported fields
}
Postgres implements Keeper for postgres
func NewPostgres ¶
func NewPostgres() Postgres
NewPostgres creates a new PostgreSQL-based storage via GORM and default/loaded DB settings
Click to show internal directories.
Click to hide internal directories.