Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
PGConnStr string
)
nolint: gochecknoglobals
Functions ¶
func NewAdminStorage ¶
func NewAdminStorage(db *sql.DB) storage.AdminStorage
NewAdminStorage returns a storage.AdminStorage implementation.
func NewLogStorage ¶
func NewLogStorage(db *sql.DB, mf monitoring.MetricFactory) storage.LogStorage
NewLogStorage creates a storage.LogStorage instance for the specified PostgreSQL URL. It assumes storage.AdminStorage is backed by the same PostgreSQL database as well.
func NewPGProvider ¶ added in v1.0.0
func NewPGProvider(mf monitoring.MetricFactory) (storage.Provider, error)
NewPGProvider return new pg provider.
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.