database

package
v0.0.0-...-f24f028 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidServiceType = errors.New("invalid service type")

Functions

func Migrate

func Migrate(ctx context.Context, db *sql.DB, service Service, log *slog.Logger) error

func Open

func Open(uri string, opts ...cfg.Option[Config]) (*sql.DB, error)

func WithMaxConns

func WithMaxConns(open, idle int) cfg.Option[Config]

Types

type Config

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

type Service

type Service string
const (
	AuthzService Service = "authz"
	CAService    Service = "certificate_authority"
)

Jump to

Keyboard shortcuts

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