application

package
v0.0.0-...-e95280a Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application interface {
	Identity() Identity
	Government() Government
}

Application represents the government application

type Government

type Government interface {
	List() ([]*uuid.UUID, error)
	Retrieve(id *uuid.UUID) (governments.Government, error)
	Proposition(id *uuid.UUID) Proposition
	Resolution(id *uuid.UUID) Resolution
}

Government represents the government application

type Identity

type Identity interface {
	List() ([]hash.Hash, error)
	Retrieve(hash hash.Hash) (shareholders.ShareHolder, error)
	Create(name string, seed string, password string) error
	Authenticate(name string, seed string, password string) authenticated.Application
}

Identity represents the identity application

type Proposition

type Proposition interface {
	List() ([]hash.Hash, error)
	Retrieve(hash hash.Hash) propositions.Proposition
}

Proposition represents the proposition application

type Resolution

type Resolution interface {
	List() ([]hash.Hash, error)
	Pending() ([]hash.Hash, error)
	Passed() ([]hash.Hash, error)
	Denied() ([]hash.Hash, error)
	Retrieve(hash hash.Hash) (resolutions.Resolution, error)
}

Resolution represents a resolution

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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