Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application interface { Current() Current Sub() SubApplications }
Application represents an identity application
type Builder ¶
type Builder interface { Create() Builder WithName(name string) Builder WithPassword(password string) Builder WithSeed(seed string) Builder Now() (Application, error) }
Builder represents the application builder
func NewBuilder ¶
func NewBuilder( minerApp miners.Application, accesBuilder access.Builder, listBuilder lists.Builder, storageBuilder storages.Builder, chainBuilder chains.Builder, identityRepository identities.Repository, identityService identities.Service, ) Builder
NewBuilder creates a new builder instance
type Current ¶
type Current interface { Update(update Update) error Retrieve() (identities.Identity, error) Delete() error }
Current represents the current application
type SubApplications ¶
type SubApplications interface { Access() access.Application List() lists.Application Storage() storages.Application Chain() chains.Application Miner() miners.Application }
SubApplications represents an identity's sub applications
type Update ¶
type Update interface { HasSeed() bool Seed() string HasName() bool Name() string HasPassword() bool Password() string HasRoot() bool Root() string }
Update represents an identity update
type UpdateAdapter ¶
type UpdateAdapter interface { URLValuesToUpdate(values url.Values) (Update, error) UpdateToURLValues(update Update) url.Values }
UpdateAdapter represents an update adapter
type UpdateBuilder ¶
type UpdateBuilder interface { Create() UpdateBuilder WithSeed(seed string) UpdateBuilder WithName(name string) UpdateBuilder WithPassword(password string) UpdateBuilder WithRoot(root string) UpdateBuilder Now() (Update, error) }
UpdateBuilder represents an update builder
func NewUpdateBuilder ¶
func NewUpdateBuilder() UpdateBuilder
NewUpdateBuilder creates a new update builder instance
Source Files
¶
Click to show internal directories.
Click to hide internal directories.