postgres

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 13 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, 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