qe

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data = []byte

type Executor

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

func NewExecutor

func NewExecutor(network string, channel string, qsProvider queryservice.Provider) *Executor

func (*Executor) QuerySpentTokens

func (e *Executor) QuerySpentTokens(_ context.Context, namespace driver.Namespace, ids []*token.ID, meta []string) ([]bool, error)

func (*Executor) QueryStates

func (e *Executor) QueryStates(_ context.Context, namespace driver.Namespace, keys []string) ([]Data, error)

func (*Executor) QueryTokens

func (e *Executor) QueryTokens(_ context.Context, namespace driver.Namespace, ids []*token.ID) ([]TokenData, error)

type ExecutorProvider

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

ExecutorProvider looks up tokens by parsing the whole ledger instead of using the chaincode.

func NewExecutorProvider

func NewExecutorProvider(qsProvider queryservice.Provider) *ExecutorProvider

func (*ExecutorProvider) GetExecutor

func (p *ExecutorProvider) GetExecutor(network, channel string) (driver3.TokenQueryExecutor, error)

func (*ExecutorProvider) GetSpentExecutor

func (p *ExecutorProvider) GetSpentExecutor(network, channel string) (driver3.SpentTokenQueryExecutor, error)

func (*ExecutorProvider) GetStateExecutor

func (p *ExecutorProvider) GetStateExecutor(network, channel string) (QueryStatesExecutor, error)

type QueryStatesExecutor

type QueryStatesExecutor interface {
	QueryStates(_ context.Context, namespace driver.Namespace, keys []string) ([]Data, error)
}

type TokenData

type TokenData = []byte

Jump to

Keyboard shortcuts

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