multiapi

package
v0.0.0-...-51c274e Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisableMultiAPI

func DisableMultiAPI()

func MultiApiDisabled

func MultiApiDisabled() bool

func SetLog

func SetLog(logger *logging.Logger)

Types

type MultiAPI

type MultiAPI []endpointEntry

func New

func New(endpoints []string, timeout uint64) (MultiAPI, error)

func NewFromAPI

func NewFromAPI(api *API, endpoint string) (MultiAPI, error)

func (MultiAPI) AttachToTangle

func (mapi MultiAPI) AttachToTangle(args ...interface{}) ([]Trytes, error)

func (MultiAPI) CheckConsistency

func (mapi MultiAPI) CheckConsistency(args ...interface{}) (bool, string, error)

NOTE: CheckConsistency for MultiAPI has not variable arguments!!!!

func (MultiAPI) FindTransactions

func (mapi MultiAPI) FindTransactions(args ...interface{}) (Hashes, error)

func (MultiAPI) GetAPI

func (mapi MultiAPI) GetAPI() *API

func (MultiAPI) GetAPIEndpoint

func (mapi MultiAPI) GetAPIEndpoint() string

func (MultiAPI) GetBalances

func (mapi MultiAPI) GetBalances(args ...interface{}) (*Balances, error)

func (MultiAPI) GetLatestInclusion

func (mapi MultiAPI) GetLatestInclusion(args ...interface{}) ([]bool, error)

func (MultiAPI) GetTransactionsToApprove

func (mapi MultiAPI) GetTransactionsToApprove(args ...interface{}) (*TransactionsToApprove, error)

func (MultiAPI) GetTrytes

func (mapi MultiAPI) GetTrytes(args ...interface{}) ([]Trytes, error)

func (MultiAPI) StoreAndBroadcast

func (mapi MultiAPI) StoreAndBroadcast(args ...interface{}) ([]Trytes, error)

NOTE: StoreAndBroadcast for MultiAPI has different types of arguments!!!!

func (MultiAPI) WereAddressesSpentFrom

func (mapi MultiAPI) WereAddressesSpentFrom(args ...interface{}) ([]bool, error)

type MultiCallRet

type MultiCallRet struct {
	Endpoint string
	Duration time.Duration
	Info     string // used by CheckConsistency
}

Jump to

Keyboard shortcuts

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