Documentation
¶
Index ¶
- Variables
- type BatchGetLatestValuesRequestByCustomID
- type BatchGetLatestValuesResultByCustomID
- type ContractReaderByIDs
- func (crByIds *ContractReaderByIDs) BatchGetLatestValues(ctx context.Context, request BatchGetLatestValuesRequestByCustomID) (BatchGetLatestValuesResultByCustomID, error)
- func (crByIds *ContractReaderByIDs) Bind(ctx context.Context, bindings map[string]types.BoundContract) error
- func (crByIds *ContractReaderByIDs) GetLatestValue(ctx context.Context, contractID, readName string, ...) error
- func (crByIds *ContractReaderByIDs) QueryKey(ctx context.Context, contractID string, filter query.KeyFilter, ...) ([]types.Sequence, error)
- func (crByIds *ContractReaderByIDs) Unbind(ctx context.Context, bindings map[string]types.BoundContract) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoBindings = errors.New("no bindings found")
)
Functions ¶
This section is empty.
Types ¶
type BatchGetLatestValuesRequestByCustomID ¶
type BatchGetLatestValuesRequestByCustomID map[string]types.ContractBatch
type BatchGetLatestValuesResultByCustomID ¶
type BatchGetLatestValuesResultByCustomID map[string]types.ContractBatchResults
type ContractReaderByIDs ¶
type ContractReaderByIDs struct {
// contains filtered or unexported fields
}
ContractReaderByIDs wraps types.ContractReader to allow the caller to set custom contractIDs with Bind.
func WrapContractReaderByIDs ¶
func WrapContractReaderByIDs(contractReader types.ContractReader) ContractReaderByIDs
WrapContractReaderByIDs returns types.ContractReader behind ContractReaderByIDs interface.
func (*ContractReaderByIDs) BatchGetLatestValues ¶
func (crByIds *ContractReaderByIDs) BatchGetLatestValues(ctx context.Context, request BatchGetLatestValuesRequestByCustomID) (BatchGetLatestValuesResultByCustomID, error)
func (*ContractReaderByIDs) Bind ¶
func (crByIds *ContractReaderByIDs) Bind(ctx context.Context, bindings map[string]types.BoundContract) error
Bind accepts a map of bound contracts where map keys are custom contractIDs which will be used by the wrapper to reference contracts.
func (*ContractReaderByIDs) GetLatestValue ¶
func (crByIds *ContractReaderByIDs) GetLatestValue(ctx context.Context, contractID, readName string, confidenceLevel primitives.ConfidenceLevel, params, returnVal any) error
func (*ContractReaderByIDs) Unbind ¶
func (crByIds *ContractReaderByIDs) Unbind(ctx context.Context, bindings map[string]types.BoundContract) error
Click to show internal directories.
Click to hide internal directories.