indexer

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2020 License: MIT Imports: 7 Imported by: 38

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client common.Client

func MakeClient

func MakeClient(address string, apiToken string) (c *Client, err error)

MakeClient is the factory for constructing an IndexerClient for a given endpoint.

func (*Client) HealthCheck

func (c *Client) HealthCheck() *HealthCheck

func (*Client) LookupAccountByID

func (c *Client) LookupAccountByID(account string) *LookupAccountByID

func (*Client) LookupAccountTransactions

func (c *Client) LookupAccountTransactions(account string) *LookupAccountTransactions

func (*Client) LookupAssetBalances

func (c *Client) LookupAssetBalances(index uint64) *LookupAssetBalances

func (*Client) LookupAssetByID

func (c *Client) LookupAssetByID(index uint64) *LookupAssetByID

func (*Client) LookupAssetTransactions

func (c *Client) LookupAssetTransactions(index uint64) *LookupAssetTransactions

func (*Client) LookupBlock

func (c *Client) LookupBlock(round uint64) *LookupBlock

func (*Client) SearchAccounts

func (c *Client) SearchAccounts() *SearchAccounts

func (*Client) SearchForAssets

func (c *Client) SearchForAssets() *SearchForAssets

func (*Client) SearchForTransactions

func (c *Client) SearchForTransactions() *SearchForTransactions

type HealthCheck

type HealthCheck struct {
	// contains filtered or unexported fields
}

func (*HealthCheck) Do

func (s *HealthCheck) Do(ctx context.Context, headers ...*common.Header) (healthCheck models.HealthCheckResponse, err error)

type LookupAccountByID

type LookupAccountByID struct {
	// contains filtered or unexported fields
}

func (*LookupAccountByID) Do

func (s *LookupAccountByID) Do(ctx context.Context, headers ...*common.Header) (validRound uint64, result models.Account, err error)

func (*LookupAccountByID) Round

func (s *LookupAccountByID) Round(round uint64) *LookupAccountByID

type LookupAccountTransactions

type LookupAccountTransactions struct {
	// contains filtered or unexported fields
}

func (*LookupAccountTransactions) AfterTime

func (*LookupAccountTransactions) AfterTimeString

func (s *LookupAccountTransactions) AfterTimeString(after string) *LookupAccountTransactions

func (*LookupAccountTransactions) AssetID

func (*LookupAccountTransactions) BeforeTime

func (*LookupAccountTransactions) BeforeTimeString

func (s *LookupAccountTransactions) BeforeTimeString(before string) *LookupAccountTransactions

func (*LookupAccountTransactions) CurrencyGreaterThan

func (s *LookupAccountTransactions) CurrencyGreaterThan(greaterThan uint64) *LookupAccountTransactions

func (*LookupAccountTransactions) CurrencyLessThan

func (s *LookupAccountTransactions) CurrencyLessThan(lessThan uint64) *LookupAccountTransactions

func (*LookupAccountTransactions) Do

func (s *LookupAccountTransactions) Do(ctx context.Context, headers ...*common.Header) (response models.TransactionsResponse, err error)

func (*LookupAccountTransactions) Limit

func (*LookupAccountTransactions) MaxRound

func (*LookupAccountTransactions) MinRound

func (*LookupAccountTransactions) NextToken

func (*LookupAccountTransactions) NotePrefix

func (s *LookupAccountTransactions) NotePrefix(prefix []byte) *LookupAccountTransactions

func (*LookupAccountTransactions) Round

func (*LookupAccountTransactions) SigType

func (*LookupAccountTransactions) TXID

func (*LookupAccountTransactions) TxType

type LookupAssetBalances

type LookupAssetBalances struct {
	// contains filtered or unexported fields
}

LookupAssetBalances is used to lookup asset balances

func (*LookupAssetBalances) CurrencyGreaterThan

func (s *LookupAssetBalances) CurrencyGreaterThan(greaterThan uint64) *LookupAssetBalances

func (*LookupAssetBalances) CurrencyLessThan

func (s *LookupAssetBalances) CurrencyLessThan(lessThan uint64) *LookupAssetBalances

func (*LookupAssetBalances) Do

func (s *LookupAssetBalances) Do(ctx context.Context, headers ...*common.Header) (response models.AssetBalancesResponse, err error)

func (*LookupAssetBalances) Limit

func (*LookupAssetBalances) NextToken

func (s *LookupAssetBalances) NextToken(nextToken string) *LookupAssetBalances

func (*LookupAssetBalances) Round

type LookupAssetByID

type LookupAssetByID struct {
	// contains filtered or unexported fields
}

func (*LookupAssetByID) Do

func (s *LookupAssetByID) Do(ctx context.Context, headers ...*common.Header) (validRound uint64, result models.Asset, err error)

type LookupAssetTransactions

type LookupAssetTransactions struct {
	// contains filtered or unexported fields
}

func (*LookupAssetTransactions) Address

func (*LookupAssetTransactions) AddressRole

func (*LookupAssetTransactions) AddressString

func (s *LookupAssetTransactions) AddressString(address string) *LookupAssetTransactions

func (*LookupAssetTransactions) AfterTime

func (*LookupAssetTransactions) AfterTimeString

func (s *LookupAssetTransactions) AfterTimeString(after string) *LookupAssetTransactions

func (*LookupAssetTransactions) BeforeTime

func (*LookupAssetTransactions) BeforeTimeString

func (s *LookupAssetTransactions) BeforeTimeString(before string) *LookupAssetTransactions

func (*LookupAssetTransactions) CurrencyGreaterThan

func (s *LookupAssetTransactions) CurrencyGreaterThan(greaterThan uint64) *LookupAssetTransactions

func (*LookupAssetTransactions) CurrencyLessThan

func (s *LookupAssetTransactions) CurrencyLessThan(lessThan uint64) *LookupAssetTransactions

func (*LookupAssetTransactions) Do

func (s *LookupAssetTransactions) Do(ctx context.Context, headers ...*common.Header) (response models.TransactionsResponse, err error)

func (*LookupAssetTransactions) ExcludeCloseTo

func (s *LookupAssetTransactions) ExcludeCloseTo(exclude bool) *LookupAssetTransactions

func (*LookupAssetTransactions) Limit

func (*LookupAssetTransactions) MaxRound

func (*LookupAssetTransactions) MinRound

func (*LookupAssetTransactions) NextToken

func (s *LookupAssetTransactions) NextToken(nextToken string) *LookupAssetTransactions

func (*LookupAssetTransactions) NotePrefix

func (s *LookupAssetTransactions) NotePrefix(prefix []byte) *LookupAssetTransactions

func (*LookupAssetTransactions) Round

func (*LookupAssetTransactions) SigType

func (*LookupAssetTransactions) TXID

func (*LookupAssetTransactions) TxType

type LookupBlock

type LookupBlock struct {
	// contains filtered or unexported fields
}

func (*LookupBlock) Do

func (s *LookupBlock) Do(ctx context.Context, headers ...*common.Header) (block models.Block, err error)

type SearchAccounts

type SearchAccounts struct {
	// contains filtered or unexported fields
}

func (*SearchAccounts) AfterAddress

func (s *SearchAccounts) AfterAddress(after string) *SearchAccounts

func (*SearchAccounts) AssetID

func (s *SearchAccounts) AssetID(assetID uint64) *SearchAccounts

func (*SearchAccounts) CurrencyGreaterThan

func (s *SearchAccounts) CurrencyGreaterThan(greaterThan uint64) *SearchAccounts

func (*SearchAccounts) CurrencyLessThan

func (s *SearchAccounts) CurrencyLessThan(lessThan uint64) *SearchAccounts

func (*SearchAccounts) Do

func (s *SearchAccounts) Do(ctx context.Context, headers ...*common.Header) (response models.AccountsResponse, err error)

func (*SearchAccounts) Limit

func (s *SearchAccounts) Limit(limit uint64) *SearchAccounts

func (*SearchAccounts) NextToken

func (s *SearchAccounts) NextToken(nextToken string) *SearchAccounts

func (*SearchAccounts) Round

func (s *SearchAccounts) Round(round uint64) *SearchAccounts

type SearchForAssets

type SearchForAssets struct {
	// contains filtered or unexported fields
}

func (*SearchForAssets) AssetID

func (s *SearchForAssets) AssetID(id uint64) *SearchForAssets

func (*SearchForAssets) Creator

func (s *SearchForAssets) Creator(creator string) *SearchForAssets

func (*SearchForAssets) Do

func (s *SearchForAssets) Do(ctx context.Context, headers ...*common.Header) (validRound uint64, result []models.Asset, err error)

func (*SearchForAssets) Limit

func (s *SearchForAssets) Limit(lim uint64) *SearchForAssets

func (*SearchForAssets) Name

func (s *SearchForAssets) Name(name string) *SearchForAssets

func (*SearchForAssets) NextToken

func (s *SearchForAssets) NextToken(nextToken string) *SearchForAssets

func (*SearchForAssets) Unit

func (s *SearchForAssets) Unit(unit string) *SearchForAssets

type SearchForTransactions

type SearchForTransactions struct {
	// contains filtered or unexported fields
}

func (*SearchForTransactions) Address

func (*SearchForTransactions) AddressRole

func (s *SearchForTransactions) AddressRole(role string) *SearchForTransactions

func (*SearchForTransactions) AddressString

func (s *SearchForTransactions) AddressString(address string) *SearchForTransactions

func (*SearchForTransactions) AfterTime

func (*SearchForTransactions) AfterTimeString

func (s *SearchForTransactions) AfterTimeString(after string) *SearchForTransactions

func (*SearchForTransactions) AssetID

func (*SearchForTransactions) BeforeTime

func (s *SearchForTransactions) BeforeTime(before time.Time) *SearchForTransactions

func (*SearchForTransactions) BeforeTimeString

func (s *SearchForTransactions) BeforeTimeString(before string) *SearchForTransactions

func (*SearchForTransactions) CurrencyGreaterThan

func (s *SearchForTransactions) CurrencyGreaterThan(greaterThan uint64) *SearchForTransactions

func (*SearchForTransactions) CurrencyLessThan

func (s *SearchForTransactions) CurrencyLessThan(lessThan uint64) *SearchForTransactions

func (*SearchForTransactions) Do

func (s *SearchForTransactions) Do(ctx context.Context, headers ...*common.Header) (response models.TransactionsResponse, err error)

func (*SearchForTransactions) ExcludeCloseTo

func (s *SearchForTransactions) ExcludeCloseTo(exclude bool) *SearchForTransactions

func (*SearchForTransactions) Limit

func (*SearchForTransactions) MaxRound

func (*SearchForTransactions) MinRound

func (*SearchForTransactions) NextToken

func (s *SearchForTransactions) NextToken(nextToken string) *SearchForTransactions

func (*SearchForTransactions) NotePrefix

func (s *SearchForTransactions) NotePrefix(prefix []byte) *SearchForTransactions

func (*SearchForTransactions) Round

func (*SearchForTransactions) SigType

func (s *SearchForTransactions) SigType(sigtype string) *SearchForTransactions

func (*SearchForTransactions) TXID

func (*SearchForTransactions) TxType

Jump to

Keyboard shortcuts

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