postgres

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

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, log *slog.Logger) certs.Repository

NewRepository instantiates a PostgreSQL implementation of certs repository.

Types

type Cert

type Cert struct {
	ThingID string
	Serial  string
	Expire  time.Time
}

Cert holds info on expiration date for specific cert issued for specific Thing.

Jump to

Keyboard shortcuts

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