db

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(ctx context.Context, pool *pgxpool.Pool, logger *slog.Logger) error

func NewPool

func NewPool(ctx context.Context, cfg config.DatabaseConfig, logger *slog.Logger) (*pgxpool.Pool, error)

Types

type PGCertStore added in v0.1.3

type PGCertStore struct {
	// contains filtered or unexported fields
}

PGCertStore implements autocert.Cache backed by Postgres.

func NewPGCertStore added in v0.1.3

func NewPGCertStore(pool *pgxpool.Pool) *PGCertStore

func (*PGCertStore) Delete added in v0.1.3

func (s *PGCertStore) Delete(ctx context.Context, key string) error

func (*PGCertStore) Get added in v0.1.3

func (s *PGCertStore) Get(ctx context.Context, key string) ([]byte, error)

func (*PGCertStore) Put added in v0.1.3

func (s *PGCertStore) Put(ctx context.Context, key string, data []byte) error

Jump to

Keyboard shortcuts

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