app_keyproofs

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoFingerprint = errors.New("fingerprint not found")

Functions

func NewKeyProofApp

func NewKeyProofApp(ctx context.Context, c cache.Cacher) *keyproofApp

Types

type Proof

type Proof struct {
	Fingerprint string
	Icon        string
	Service     string
	Name        string
	Verify      string
	Link        string
	Status      ProofStatus

	URI *url.URL
}

func (*Proof) Proof

func (p *Proof) Proof() *Proof

func (*Proof) Resolve

func (p *Proof) Resolve(ctx context.Context) error

type ProofKey

type ProofKey string

func (ProofKey) Key

func (k ProofKey) Key() interface{}

type ProofResolver

type ProofResolver interface {
	Resolve(context.Context) error
	Proof() *Proof
}

func NewProof

func NewProof(ctx context.Context, uri, fingerprint string) ProofResolver

type ProofStatus

type ProofStatus int
const (
	ProofChecking ProofStatus = iota
	ProofError
	ProofInvalid
	ProofVerified
)

func (ProofStatus) String

func (p ProofStatus) String() string

type Proofs

type Proofs map[string]*Proof

Jump to

Keyboard shortcuts

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