model

package
v0.0.0-...-8887655 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2020 License: ISC Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrKeyNotFound = errors.New("key not found in cache")

Functions

This section is empty.

Types

type Model

type Model interface {
	MigrateUp() error
	PutKey(ctx context.Context, key *PgpKey) error
	GetKey(ctx context.Context, keyID []byte) (*PgpKey, error)
}

func Connect

func Connect(ctx context.Context, driver, dsn string) (Model, error)

type PgpKey

type PgpKey struct {
	Fingerprint []byte
	KeyData     []byte
	Okay        bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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