api

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResultsIterator

type ResultsIterator interface {
	Next() (*queryresult.KV, error)
	HasNext() bool
	Close() error
}

ResultsIterator iterates through the results of a range query

type RetrieverProvider

type RetrieverProvider interface {
	GetStateRetriever() (StateRetriever, error)
}

RetrieverProvider returns a State Retriever

type StateRetriever

type StateRetriever interface {
	GetState(namespace, key string) ([]byte, error)
	GetStateByPartialCompositeKey(namespace, objectType string, attributes []string) (ResultsIterator, error)
	Done()
}

StateRetriever retrieves ledger state

type StateStore

type StateStore interface {
	StateRetriever
	PutState(namespace, key string, value []byte) error
	DelState(namespace, key string) error
}

StateStore extends the StateRetriever and adds functions to save ledger state

type StoreProvider

type StoreProvider interface {
	RetrieverProvider
	GetStore() (StateStore, error)
}

StoreProvider returns a State Store

Jump to

Keyboard shortcuts

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