identityrepo

package
v0.3.18 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const CName = "coordinator.identityrepo"

Variables

View Source
var (
	ErrInvalidIdentity  = errors.New("invalid identity")
	ErrInvalidSignature = errors.New("invalid signature")

	ErrThresholdReached = errors.New("threshold reached")
)

Functions

This section is empty.

Types

type Data

type Data struct {
	Data      []byte `bson:"data"`
	Signature []byte `bson:"signature"`
}

type Entry

type Entry struct {
	Id string `bson:"_id"`
	// kind -> data
	Data    map[string]Data `bson:"data"`
	Updated time.Time       `bson:"updated"`
}

type IdentityRepo

type IdentityRepo interface {
	app.Component
}

func New

func New() IdentityRepo

Jump to

Keyboard shortcuts

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