postgres

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package postgres contains repository implementations using PostgreSQL as the underlying database.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migration

func Migration() *migrate.MemoryMigrationSource

Migration of Certs service.

func NewRepository

func NewRepository(db postgres.Database) certs.Repository

NewRepository instantiates a PostgreSQL implementation of certs repository.

func PageQuery

func PageQuery(pm certs.PageMetadata) (string, error)

Types

type PageMetadata

type PageMetadata struct {
	Offset   uint64 `db:"offset,omitempty"`
	Limit    uint64 `db:"limit,omitempty"`
	ClientID string `db:"client_id,omitempty"`
}

Jump to

Keyboard shortcuts

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