postgres

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConflict        = errors.New("entity already exists")
	ErrMalformedEntity = errors.New("malformed entity")
	ErrCreateEntity    = errors.New("failed to create entity")
	ErrNotFound        = errors.New("entity not found")
)

Functions

func Migration

func Migration() *migrate.MemoryMigrationSource

Migration of Certs service.

sql-migrate orders migrations lexicographically unless the id starts with a number, so the sequence is zero padded: without the padding "certs_10" would sort before "certs_2". Keep the same width when adding migrations, and never renumber an id that has already shipped.

func NewRepository

func NewRepository(db postgres.Database) certs.Repository

Types

This section is empty.

Jump to

Keyboard shortcuts

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