infra

package
v0.0.0-...-8561c97 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConnectionPool *pgx.Pool

Functions

func CloseDatabase

func CloseDatabase()

func GetDatabase

func GetDatabase() *pgx.Pool

func InitDatabase

func InitDatabase(connectionString string, log *zap.Logger) error

Types

type GroupingDatasource

type GroupingDatasource struct {
	DB *pgx.Pool
}

func (*GroupingDatasource) AddGroup

func (g *GroupingDatasource) AddGroup(id string, value string) error

func (*GroupingDatasource) GetGroup

func (g *GroupingDatasource) GetGroup(id string) (*PersistedGroup, error)

type PersistedGroup

type PersistedGroup struct {
	Id    string
	Value string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL