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
Click to show internal directories.
Click to hide internal directories.