storage

package
v0.0.0-...-131be4c Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrKeyNotFound = fmt.Errorf("key not found")

Functions

This section is empty.

Types

type Election

type Election struct {
	ID              string
	SigningKey      string
	VerificationKey string
	Deadline        time.Time
}

type Minter

type Minter struct {
	ID              string
	SigningKey      string
	VerificationKey string
}

type Storage

type Storage interface {
	StoreElection(*Election) error
	RetrieveElection(id string) (*Election, error)

	StoreMinter(*Minter) error
	RetrieveMinter(id string) (*Minter, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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