Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder interface { Create() Builder WithName(name string) Builder WithSeed(seed string) Builder WithConnections(connections Connections) Builder Now() (Identity, error) }
Builder represents an identity builder
type Connection ¶
type Connection interface { ID() *uuid.UUID Profile() Profile Connection() connections.Connection Server() servers.Server SigPK() signature.PrivateKey EncPK() encryption.PrivateKey }
Connection represents a connection
type ConnectionBuilder ¶
type ConnectionBuilder interface { Create() ConnectionBuilder WithID(id *uuid.UUID) ConnectionBuilder WithProfile(profile Profile) ConnectionBuilder WithConnection(conn connections.Connection) ConnectionBuilder WithServer(server servers.Server) ConnectionBuilder WithSignaturePK(sigPK signature.PrivateKey) ConnectionBuilder WithEncryptionPK(encPK encryption.PrivateKey) ConnectionBuilder Now() (Connection, error) }
ConnectionBuilder represenst a connection builder
func NewConnectionBuilder ¶
func NewConnectionBuilder(encBitrate int) ConnectionBuilder
NewConnectionBuilder creates a new connection builder
type Connections ¶
type Connections interface {
All() []Connection
}
Connections represents connections
type ConnectionsBuilder ¶
type ConnectionsBuilder interface { Create() ConnectionsBuilder WithConnections(connections []Connection) ConnectionsBuilder Now() (Connections, error) }
ConnectionsBuilder represents a connections builder
func NewConnectionsBuilder ¶
func NewConnectionsBuilder() ConnectionsBuilder
NewConnectionsBuilder creates a new connections builder
type Identity ¶
type Identity interface { Name() string Seed() string Connections() Connections }
Identity represents an identity
type ProfileBuilder ¶
type ProfileBuilder interface { Create() ProfileBuilder WithName(name string) ProfileBuilder WithRank(rank uint) ProfileBuilder Now() (Profile, error) }
ProfileBuilder represents a profile builder
func NewProfileBuilder ¶
func NewProfileBuilder() ProfileBuilder
NewProfileBuilder creates a new profile builder
type Repository ¶
type Repository interface { List() ([]string, error) Retrieve(name string, seed string, password string) (Identity, error) }
Repository represents an identity repository
type Service ¶
type Service interface { Insert(ins Identity, password string) error Update(origin Identity, updated Identity, password string) error UpdateWithPassword(origin Identity, updated Identity, originalPassword string, updatedPassword string) error Delete(ins Identity, password string) error }
Service represents a shareholders service
type ShareHolderBuilder ¶
type ShareHolderBuilder interface {}
ShareHolderBuilder represents a shareholder builder
func NewShareHolderBuilder ¶
func NewShareHolderBuilder() ShareHolderBuilder
NewShareHolderBuilder creates a new shareHolder builder instance
type ShareHoldersBuilder ¶
type ShareHoldersBuilder interface {}
ShareHoldersBuilder represents a shareholders builder
func NewShareHoldersBuilder ¶
func NewShareHoldersBuilder() ShareHoldersBuilder
NewShareHoldersBuilder creates a new shareHolders builder instance