factory

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAccountCreator

func NewAccountCreator() state.AccountFactory

NewAccountCreator creates an account creator

func NewPeerAccountCreator

func NewPeerAccountCreator() state.AccountFactory

NewPeerAccountCreator creates a peer account creator

Types

type AccountCreator

type AccountCreator struct {
}

AccountCreator has method to create a new account

func (*AccountCreator) CreateAccount

func (ac *AccountCreator) CreateAccount(address state.AddressContainer) (state.AccountHandler, error)

CreateAccount calls the new Account creator and returns the result

func (*AccountCreator) IsInterfaceNil

func (ac *AccountCreator) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

type PeerAccountCreator

type PeerAccountCreator struct {
}

PeerAccountCreator has a method to create a new peer account

func (*PeerAccountCreator) CreateAccount

func (pac *PeerAccountCreator) CreateAccount(address state.AddressContainer) (state.AccountHandler, error)

CreateAccount calls the new Account creator and returns the result

func (*PeerAccountCreator) IsInterfaceNil

func (pac *PeerAccountCreator) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

Jump to

Keyboard shortcuts

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