query

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnmarshallFabtoken

func UnmarshallFabtoken(raw []byte) (*token2.Token, error)

func UnmarshallIssuedToken

func UnmarshallIssuedToken(raw []byte) (*token2.IssuedToken, error)

Types

type Engine

type Engine struct {
	Vault driver.Vault
	// contains filtered or unexported fields
}

func NewEngine

func NewEngine(vault driver.Vault, namespace string, cache cache) *Engine

func (*Engine) GetTokenInfoAndOutputs added in v0.3.0

func (e *Engine) GetTokenInfoAndOutputs(ids []*token.ID, callback driver2.QueryCallback2Func) error

func (*Engine) GetTokenInfos

func (e *Engine) GetTokenInfos(ids []*token.ID, callback driver2.QueryCallbackFunc) error

func (*Engine) GetTokenOutputs added in v0.3.0

func (e *Engine) GetTokenOutputs(ids []*token.ID, callback driver2.QueryCallbackFunc) error

func (*Engine) GetTokens

func (e *Engine) GetTokens(inputs ...*token.ID) ([]string, []*token.Token, error)

func (*Engine) IsMine

func (e *Engine) IsMine(id *token.ID) (bool, error)

func (*Engine) IsPending added in v0.3.0

func (e *Engine) IsPending(id *token.ID) (bool, error)

func (*Engine) ListAuditTokens

func (e *Engine) ListAuditTokens(ids ...*token.ID) ([]*token.Token, error)

func (*Engine) ListHistoryIssuedTokens

func (e *Engine) ListHistoryIssuedTokens() (*token.IssuedTokens, error)

func (*Engine) ListUnspentTokens

func (e *Engine) ListUnspentTokens() (*token.UnspentTokens, error)

func (*Engine) ListUnspentTokensBy

func (e *Engine) ListUnspentTokensBy(id, typ string) (*token.UnspentTokens, error)

func (*Engine) PublicParams

func (e *Engine) PublicParams() ([]byte, error)

func (*Engine) UnspentTokensIterator

func (e *Engine) UnspentTokensIterator() (driver2.UnspentTokensIterator, error)

func (*Engine) UnspentTokensIteratorBy

func (e *Engine) UnspentTokensIteratorBy(id, typ string) (driver2.UnspentTokensIterator, error)

UnspentTokensIteratorBy returns an iterator of unspent tokens owned by the passed id and whose type is the passed on. The token type can be empty. In that case, tokens of any type are returned.

func (*Engine) WhoDeletedTokens

func (e *Engine) WhoDeletedTokens(inputs ...*token.ID) ([]string, []bool, error)

type UnspentTokensIterator

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

func (*UnspentTokensIterator) Close

func (u *UnspentTokensIterator) Close()

func (*UnspentTokensIterator) Next

Jump to

Keyboard shortcuts

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