Documentation ¶
Index ¶
- Constants
- func EqualEvent(a, b Event) bool
- func EqualQuery(a, b Query) bool
- func EqualRecord(a, b Record) bool
- type AccountRecord
- func (v *AccountRecord) Copy() *AccountRecord
- func (v *AccountRecord) CopyAsInterface() interface{}
- func (v *AccountRecord) Equal(u *AccountRecord) bool
- func (v *AccountRecord) IsValid() error
- func (v *AccountRecord) MarshalBinary() ([]byte, error)
- func (v *AccountRecord) MarshalJSON() ([]byte, error)
- func (*AccountRecord) RecordType() RecordType
- func (v *AccountRecord) UnmarshalBinary(data []byte) error
- func (v *AccountRecord) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *AccountRecord) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *AccountRecord) UnmarshalJSON(data []byte) error
- type AnchorSearchQuery
- func (v *AnchorSearchQuery) Copy() *AnchorSearchQuery
- func (v *AnchorSearchQuery) CopyAsInterface() interface{}
- func (v *AnchorSearchQuery) Equal(u *AnchorSearchQuery) bool
- func (v *AnchorSearchQuery) IsValid() error
- func (v *AnchorSearchQuery) MarshalBinary() ([]byte, error)
- func (v *AnchorSearchQuery) MarshalJSON() ([]byte, error)
- func (*AnchorSearchQuery) QueryType() QueryType
- func (v *AnchorSearchQuery) UnmarshalBinary(data []byte) error
- func (v *AnchorSearchQuery) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *AnchorSearchQuery) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *AnchorSearchQuery) UnmarshalJSON(data []byte) error
- type BatchData
- type BlockEvent
- func (v *BlockEvent) Copy() *BlockEvent
- func (v *BlockEvent) CopyAsInterface() interface{}
- func (v *BlockEvent) Equal(u *BlockEvent) bool
- func (*BlockEvent) EventType() EventType
- func (v *BlockEvent) IsValid() error
- func (v *BlockEvent) MarshalBinary() ([]byte, error)
- func (v *BlockEvent) MarshalJSON() ([]byte, error)
- func (v *BlockEvent) UnmarshalBinary(data []byte) error
- func (v *BlockEvent) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *BlockEvent) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *BlockEvent) UnmarshalJSON(data []byte) error
- type BlockQuery
- func (v *BlockQuery) Copy() *BlockQuery
- func (v *BlockQuery) CopyAsInterface() interface{}
- func (v *BlockQuery) Equal(u *BlockQuery) bool
- func (q *BlockQuery) IsValid() error
- func (v *BlockQuery) MarshalBinary() ([]byte, error)
- func (v *BlockQuery) MarshalJSON() ([]byte, error)
- func (*BlockQuery) QueryType() QueryType
- func (v *BlockQuery) UnmarshalBinary(data []byte) error
- func (v *BlockQuery) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *BlockQuery) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *BlockQuery) UnmarshalJSON(data []byte) error
- type ChainEntryRecord
- func (v *ChainEntryRecord[T]) Copy() *ChainEntryRecord[T]
- func (v *ChainEntryRecord[T]) CopyAsInterface() interface{}
- func (v *ChainEntryRecord[T]) Equal(u *ChainEntryRecord[T]) bool
- func (v *ChainEntryRecord[T]) IsValid() error
- func (v *ChainEntryRecord[T]) MarshalBinary() ([]byte, error)
- func (v *ChainEntryRecord[T]) MarshalJSON() ([]byte, error)
- func (*ChainEntryRecord[T]) RecordType() RecordType
- func (v *ChainEntryRecord[T]) UnmarshalBinary(data []byte) error
- func (v *ChainEntryRecord[T]) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *ChainEntryRecord[T]) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *ChainEntryRecord[T]) UnmarshalJSON(data []byte) error
- type ChainQuery
- func (v *ChainQuery) Copy() *ChainQuery
- func (v *ChainQuery) CopyAsInterface() interface{}
- func (v *ChainQuery) Equal(u *ChainQuery) bool
- func (q *ChainQuery) IsValid() error
- func (v *ChainQuery) MarshalBinary() ([]byte, error)
- func (v *ChainQuery) MarshalJSON() ([]byte, error)
- func (*ChainQuery) QueryType() QueryType
- func (v *ChainQuery) UnmarshalBinary(data []byte) error
- func (v *ChainQuery) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *ChainQuery) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *ChainQuery) UnmarshalJSON(data []byte) error
- type ChainRecord
- func (v *ChainRecord) Copy() *ChainRecord
- func (v *ChainRecord) CopyAsInterface() interface{}
- func (v *ChainRecord) Equal(u *ChainRecord) bool
- func (v *ChainRecord) IsValid() error
- func (v *ChainRecord) MarshalBinary() ([]byte, error)
- func (v *ChainRecord) MarshalJSON() ([]byte, error)
- func (*ChainRecord) RecordType() RecordType
- func (v *ChainRecord) UnmarshalBinary(data []byte) error
- func (v *ChainRecord) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *ChainRecord) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *ChainRecord) UnmarshalJSON(data []byte) error
- type Collator
- type ConsensusPeerInfo
- func (v *ConsensusPeerInfo) Copy() *ConsensusPeerInfo
- func (v *ConsensusPeerInfo) CopyAsInterface() interface{}
- func (v *ConsensusPeerInfo) Equal(u *ConsensusPeerInfo) bool
- func (v *ConsensusPeerInfo) IsValid() error
- func (v *ConsensusPeerInfo) MarshalBinary() ([]byte, error)
- func (v *ConsensusPeerInfo) UnmarshalBinary(data []byte) error
- func (v *ConsensusPeerInfo) UnmarshalBinaryFrom(rd io.Reader) error
- type ConsensusService
- type ConsensusStatus
- func (v *ConsensusStatus) Copy() *ConsensusStatus
- func (v *ConsensusStatus) CopyAsInterface() interface{}
- func (v *ConsensusStatus) Equal(u *ConsensusStatus) bool
- func (v *ConsensusStatus) IsValid() error
- func (v *ConsensusStatus) MarshalBinary() ([]byte, error)
- func (v *ConsensusStatus) MarshalJSON() ([]byte, error)
- func (v *ConsensusStatus) UnmarshalBinary(data []byte) error
- func (v *ConsensusStatus) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *ConsensusStatus) UnmarshalJSON(data []byte) error
- type ConsensusStatusOptions
- func (v *ConsensusStatusOptions) Copy() *ConsensusStatusOptions
- func (v *ConsensusStatusOptions) CopyAsInterface() interface{}
- func (v *ConsensusStatusOptions) Equal(u *ConsensusStatusOptions) bool
- func (v *ConsensusStatusOptions) IsValid() error
- func (v *ConsensusStatusOptions) MarshalBinary() ([]byte, error)
- func (v *ConsensusStatusOptions) UnmarshalBinary(data []byte) error
- func (v *ConsensusStatusOptions) UnmarshalBinaryFrom(rd io.Reader) error
- type DataQuery
- func (v *DataQuery) Copy() *DataQuery
- func (v *DataQuery) CopyAsInterface() interface{}
- func (v *DataQuery) Equal(u *DataQuery) bool
- func (q *DataQuery) IsValid() error
- func (v *DataQuery) MarshalBinary() ([]byte, error)
- func (v *DataQuery) MarshalJSON() ([]byte, error)
- func (*DataQuery) QueryType() QueryType
- func (v *DataQuery) UnmarshalBinary(data []byte) error
- func (v *DataQuery) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *DataQuery) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *DataQuery) UnmarshalJSON(data []byte) error
- type DefaultQuery
- func (v *DefaultQuery) Copy() *DefaultQuery
- func (v *DefaultQuery) CopyAsInterface() interface{}
- func (v *DefaultQuery) Equal(u *DefaultQuery) bool
- func (v *DefaultQuery) IsValid() error
- func (v *DefaultQuery) MarshalBinary() ([]byte, error)
- func (v *DefaultQuery) MarshalJSON() ([]byte, error)
- func (*DefaultQuery) QueryType() QueryType
- func (v *DefaultQuery) UnmarshalBinary(data []byte) error
- func (v *DefaultQuery) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *DefaultQuery) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *DefaultQuery) UnmarshalJSON(data []byte) error
- type DelegateSearchQuery
- func (v *DelegateSearchQuery) Copy() *DelegateSearchQuery
- func (v *DelegateSearchQuery) CopyAsInterface() interface{}
- func (v *DelegateSearchQuery) Equal(u *DelegateSearchQuery) bool
- func (v *DelegateSearchQuery) IsValid() error
- func (v *DelegateSearchQuery) MarshalBinary() ([]byte, error)
- func (v *DelegateSearchQuery) MarshalJSON() ([]byte, error)
- func (*DelegateSearchQuery) QueryType() QueryType
- func (v *DelegateSearchQuery) UnmarshalBinary(data []byte) error
- func (v *DelegateSearchQuery) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *DelegateSearchQuery) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *DelegateSearchQuery) UnmarshalJSON(data []byte) error
- type DirectoryQuery
- func (v *DirectoryQuery) Copy() *DirectoryQuery
- func (v *DirectoryQuery) CopyAsInterface() interface{}
- func (v *DirectoryQuery) Equal(u *DirectoryQuery) bool
- func (v *DirectoryQuery) IsValid() error
- func (v *DirectoryQuery) MarshalBinary() ([]byte, error)
- func (v *DirectoryQuery) MarshalJSON() ([]byte, error)
- func (*DirectoryQuery) QueryType() QueryType
- func (v *DirectoryQuery) UnmarshalBinary(data []byte) error
- func (v *DirectoryQuery) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *DirectoryQuery) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *DirectoryQuery) UnmarshalJSON(data []byte) error
- type ErrorEvent
- func (v *ErrorEvent) Copy() *ErrorEvent
- func (v *ErrorEvent) CopyAsInterface() interface{}
- func (v *ErrorEvent) Equal(u *ErrorEvent) bool
- func (*ErrorEvent) EventType() EventType
- func (v *ErrorEvent) IsValid() error
- func (v *ErrorEvent) MarshalBinary() ([]byte, error)
- func (v *ErrorEvent) MarshalJSON() ([]byte, error)
- func (v *ErrorEvent) UnmarshalBinary(data []byte) error
- func (v *ErrorEvent) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *ErrorEvent) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *ErrorEvent) UnmarshalJSON(data []byte) error
- type Event
- type EventService
- type EventType
- type Faucet
- type FaucetOptions
- func (v *FaucetOptions) Copy() *FaucetOptions
- func (v *FaucetOptions) CopyAsInterface() interface{}
- func (v *FaucetOptions) Equal(u *FaucetOptions) bool
- func (v *FaucetOptions) IsValid() error
- func (v *FaucetOptions) MarshalBinary() ([]byte, error)
- func (v *FaucetOptions) UnmarshalBinary(data []byte) error
- func (v *FaucetOptions) UnmarshalBinaryFrom(rd io.Reader) error
- type FindServiceOptions
- func (v *FindServiceOptions) Copy() *FindServiceOptions
- func (v *FindServiceOptions) CopyAsInterface() interface{}
- func (v *FindServiceOptions) Equal(u *FindServiceOptions) bool
- func (v *FindServiceOptions) IsValid() error
- func (v *FindServiceOptions) MarshalBinary() ([]byte, error)
- func (v *FindServiceOptions) UnmarshalBinary(data []byte) error
- func (v *FindServiceOptions) UnmarshalBinaryFrom(rd io.Reader) error
- type FindServiceResult
- func (v *FindServiceResult) Copy() *FindServiceResult
- func (v *FindServiceResult) CopyAsInterface() interface{}
- func (v *FindServiceResult) Equal(u *FindServiceResult) bool
- func (v *FindServiceResult) IsValid() error
- func (v *FindServiceResult) MarshalBinary() ([]byte, error)
- func (v *FindServiceResult) MarshalJSON() ([]byte, error)
- func (v *FindServiceResult) UnmarshalBinary(data []byte) error
- func (v *FindServiceResult) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *FindServiceResult) UnmarshalJSON(data []byte) error
- type GlobalsEvent
- func (v *GlobalsEvent) Copy() *GlobalsEvent
- func (v *GlobalsEvent) CopyAsInterface() interface{}
- func (v *GlobalsEvent) Equal(u *GlobalsEvent) bool
- func (*GlobalsEvent) EventType() EventType
- func (v *GlobalsEvent) IsValid() error
- func (v *GlobalsEvent) MarshalBinary() ([]byte, error)
- func (v *GlobalsEvent) MarshalJSON() ([]byte, error)
- func (v *GlobalsEvent) UnmarshalBinary(data []byte) error
- func (v *GlobalsEvent) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *GlobalsEvent) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *GlobalsEvent) UnmarshalJSON(data []byte) error
- type IndexEntryRecord
- func (v *IndexEntryRecord) Copy() *IndexEntryRecord
- func (v *IndexEntryRecord) CopyAsInterface() interface{}
- func (v *IndexEntryRecord) Equal(u *IndexEntryRecord) bool
- func (v *IndexEntryRecord) IsValid() error
- func (v *IndexEntryRecord) MarshalBinary() ([]byte, error)
- func (v *IndexEntryRecord) MarshalJSON() ([]byte, error)
- func (*IndexEntryRecord) RecordType() RecordType
- func (v *IndexEntryRecord) UnmarshalBinary(data []byte) error
- func (v *IndexEntryRecord) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *IndexEntryRecord) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *IndexEntryRecord) UnmarshalJSON(data []byte) error
- type KeyRecord
- func (v *KeyRecord) Copy() *KeyRecord
- func (v *KeyRecord) CopyAsInterface() interface{}
- func (v *KeyRecord) Equal(u *KeyRecord) bool
- func (v *KeyRecord) IsValid() error
- func (v *KeyRecord) MarshalBinary() ([]byte, error)
- func (v *KeyRecord) MarshalJSON() ([]byte, error)
- func (*KeyRecord) RecordType() RecordType
- func (v *KeyRecord) UnmarshalBinary(data []byte) error
- func (v *KeyRecord) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *KeyRecord) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *KeyRecord) UnmarshalJSON(data []byte) error
- type LastBlock
- func (v *LastBlock) Copy() *LastBlock
- func (v *LastBlock) CopyAsInterface() interface{}
- func (v *LastBlock) Equal(u *LastBlock) bool
- func (v *LastBlock) IsValid() error
- func (v *LastBlock) MarshalBinary() ([]byte, error)
- func (v *LastBlock) MarshalJSON() ([]byte, error)
- func (v *LastBlock) UnmarshalBinary(data []byte) error
- func (v *LastBlock) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *LastBlock) UnmarshalJSON(data []byte) error
- type MajorBlockRecord
- func (v *MajorBlockRecord) Copy() *MajorBlockRecord
- func (v *MajorBlockRecord) CopyAsInterface() interface{}
- func (v *MajorBlockRecord) Equal(u *MajorBlockRecord) bool
- func (v *MajorBlockRecord) IsValid() error
- func (v *MajorBlockRecord) MarshalBinary() ([]byte, error)
- func (v *MajorBlockRecord) MarshalJSON() ([]byte, error)
- func (*MajorBlockRecord) RecordType() RecordType
- func (v *MajorBlockRecord) UnmarshalBinary(data []byte) error
- func (v *MajorBlockRecord) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *MajorBlockRecord) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *MajorBlockRecord) UnmarshalJSON(data []byte) error
- type MessageHashSearchQuery
- func (v *MessageHashSearchQuery) Copy() *MessageHashSearchQuery
- func (v *MessageHashSearchQuery) CopyAsInterface() interface{}
- func (v *MessageHashSearchQuery) Equal(u *MessageHashSearchQuery) bool
- func (v *MessageHashSearchQuery) IsValid() error
- func (v *MessageHashSearchQuery) MarshalBinary() ([]byte, error)
- func (v *MessageHashSearchQuery) MarshalJSON() ([]byte, error)
- func (*MessageHashSearchQuery) QueryType() QueryType
- func (v *MessageHashSearchQuery) UnmarshalBinary(data []byte) error
- func (v *MessageHashSearchQuery) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *MessageHashSearchQuery) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *MessageHashSearchQuery) UnmarshalJSON(data []byte) error
- type MessageRecord
- func (r *MessageRecord[T]) AsError() error
- func (v *MessageRecord[T]) Copy() *MessageRecord[T]
- func (v *MessageRecord[T]) CopyAsInterface() interface{}
- func (v *MessageRecord[T]) Equal(u *MessageRecord[T]) bool
- func (v *MessageRecord[T]) IsValid() error
- func (v *MessageRecord[T]) MarshalBinary() ([]byte, error)
- func (v *MessageRecord[T]) MarshalJSON() ([]byte, error)
- func (*MessageRecord[T]) RecordType() RecordType
- func (r *MessageRecord[T]) StatusNo() uint64
- func (v *MessageRecord[T]) UnmarshalBinary(data []byte) error
- func (v *MessageRecord[T]) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *MessageRecord[T]) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *MessageRecord[T]) UnmarshalJSON(data []byte) error
- type MessageRecordError
- type Metrics
- func (v *Metrics) Copy() *Metrics
- func (v *Metrics) CopyAsInterface() interface{}
- func (v *Metrics) Equal(u *Metrics) bool
- func (v *Metrics) IsValid() error
- func (v *Metrics) MarshalBinary() ([]byte, error)
- func (v *Metrics) UnmarshalBinary(data []byte) error
- func (v *Metrics) UnmarshalBinaryFrom(rd io.Reader) error
- type MetricsOptions
- func (v *MetricsOptions) Copy() *MetricsOptions
- func (v *MetricsOptions) CopyAsInterface() interface{}
- func (v *MetricsOptions) Equal(u *MetricsOptions) bool
- func (v *MetricsOptions) IsValid() error
- func (v *MetricsOptions) MarshalBinary() ([]byte, error)
- func (v *MetricsOptions) UnmarshalBinary(data []byte) error
- func (v *MetricsOptions) UnmarshalBinaryFrom(rd io.Reader) error
- type MetricsService
- type MinorBlockRecord
- func (v *MinorBlockRecord) Copy() *MinorBlockRecord
- func (v *MinorBlockRecord) CopyAsInterface() interface{}
- func (v *MinorBlockRecord) Equal(u *MinorBlockRecord) bool
- func (v *MinorBlockRecord) IsValid() error
- func (v *MinorBlockRecord) MarshalBinary() ([]byte, error)
- func (v *MinorBlockRecord) MarshalJSON() ([]byte, error)
- func (*MinorBlockRecord) RecordType() RecordType
- func (v *MinorBlockRecord) UnmarshalBinary(data []byte) error
- func (v *MinorBlockRecord) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *MinorBlockRecord) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *MinorBlockRecord) UnmarshalJSON(data []byte) error
- type NetworkService
- type NetworkStatus
- func (v *NetworkStatus) Copy() *NetworkStatus
- func (v *NetworkStatus) CopyAsInterface() interface{}
- func (v *NetworkStatus) Equal(u *NetworkStatus) bool
- func (v *NetworkStatus) IsValid() error
- func (v *NetworkStatus) MarshalBinary() ([]byte, error)
- func (v *NetworkStatus) UnmarshalBinary(data []byte) error
- func (v *NetworkStatus) UnmarshalBinaryFrom(rd io.Reader) error
- type NetworkStatusOptions
- func (v *NetworkStatusOptions) Copy() *NetworkStatusOptions
- func (v *NetworkStatusOptions) CopyAsInterface() interface{}
- func (v *NetworkStatusOptions) Equal(u *NetworkStatusOptions) bool
- func (v *NetworkStatusOptions) IsValid() error
- func (v *NetworkStatusOptions) MarshalBinary() ([]byte, error)
- func (v *NetworkStatusOptions) UnmarshalBinary(data []byte) error
- func (v *NetworkStatusOptions) UnmarshalBinaryFrom(rd io.Reader) error
- type NodeInfo
- func (v *NodeInfo) Copy() *NodeInfo
- func (v *NodeInfo) CopyAsInterface() interface{}
- func (v *NodeInfo) Equal(u *NodeInfo) bool
- func (v *NodeInfo) IsValid() error
- func (v *NodeInfo) MarshalBinary() ([]byte, error)
- func (v *NodeInfo) MarshalJSON() ([]byte, error)
- func (v *NodeInfo) UnmarshalBinary(data []byte) error
- func (v *NodeInfo) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *NodeInfo) UnmarshalJSON(data []byte) error
- type NodeInfoOptions
- func (v *NodeInfoOptions) Copy() *NodeInfoOptions
- func (v *NodeInfoOptions) CopyAsInterface() interface{}
- func (v *NodeInfoOptions) Equal(u *NodeInfoOptions) bool
- func (v *NodeInfoOptions) IsValid() error
- func (v *NodeInfoOptions) MarshalBinary() ([]byte, error)
- func (v *NodeInfoOptions) MarshalJSON() ([]byte, error)
- func (v *NodeInfoOptions) UnmarshalBinary(data []byte) error
- func (v *NodeInfoOptions) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *NodeInfoOptions) UnmarshalJSON(data []byte) error
- type NodeService
- type PendingQuery
- func (v *PendingQuery) Copy() *PendingQuery
- func (v *PendingQuery) CopyAsInterface() interface{}
- func (v *PendingQuery) Equal(u *PendingQuery) bool
- func (v *PendingQuery) IsValid() error
- func (v *PendingQuery) MarshalBinary() ([]byte, error)
- func (v *PendingQuery) MarshalJSON() ([]byte, error)
- func (*PendingQuery) QueryType() QueryType
- func (v *PendingQuery) UnmarshalBinary(data []byte) error
- func (v *PendingQuery) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *PendingQuery) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *PendingQuery) UnmarshalJSON(data []byte) error
- type PublicKeyHashSearchQuery
- func (v *PublicKeyHashSearchQuery) Copy() *PublicKeyHashSearchQuery
- func (v *PublicKeyHashSearchQuery) CopyAsInterface() interface{}
- func (v *PublicKeyHashSearchQuery) Equal(u *PublicKeyHashSearchQuery) bool
- func (v *PublicKeyHashSearchQuery) IsValid() error
- func (v *PublicKeyHashSearchQuery) MarshalBinary() ([]byte, error)
- func (v *PublicKeyHashSearchQuery) MarshalJSON() ([]byte, error)
- func (*PublicKeyHashSearchQuery) QueryType() QueryType
- func (v *PublicKeyHashSearchQuery) UnmarshalBinary(data []byte) error
- func (v *PublicKeyHashSearchQuery) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *PublicKeyHashSearchQuery) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *PublicKeyHashSearchQuery) UnmarshalJSON(data []byte) error
- type PublicKeySearchQuery
- func (v *PublicKeySearchQuery) Copy() *PublicKeySearchQuery
- func (v *PublicKeySearchQuery) CopyAsInterface() interface{}
- func (v *PublicKeySearchQuery) Equal(u *PublicKeySearchQuery) bool
- func (v *PublicKeySearchQuery) IsValid() error
- func (v *PublicKeySearchQuery) MarshalBinary() ([]byte, error)
- func (v *PublicKeySearchQuery) MarshalJSON() ([]byte, error)
- func (*PublicKeySearchQuery) QueryType() QueryType
- func (v *PublicKeySearchQuery) UnmarshalBinary(data []byte) error
- func (v *PublicKeySearchQuery) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *PublicKeySearchQuery) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *PublicKeySearchQuery) UnmarshalJSON(data []byte) error
- type Querier
- type Querier2
- func (q Querier2) QueryAccount(ctx context.Context, account *url.URL, query *DefaultQuery) (*AccountRecord, error)
- func (q Querier2) QueryAccountAs(ctx context.Context, account *url.URL, query *DefaultQuery, target any) (*AccountRecord, error)
- func (q Querier2) QueryAccountChains(ctx context.Context, scope *url.URL, query *ChainQuery) (*RecordRange[*ChainRecord], error)
- func (q Querier2) QueryChain(ctx context.Context, scope *url.URL, query *ChainQuery) (*ChainRecord, error)
- func (q Querier2) QueryChainEntries(ctx context.Context, scope *url.URL, query *ChainQuery) (*RecordRange[*ChainEntryRecord[Record]], error)
- func (q Querier2) QueryChainEntry(ctx context.Context, scope *url.URL, query *ChainQuery) (*ChainEntryRecord[Record], error)
- func (q Querier2) QueryDataEntries(ctx context.Context, scope *url.URL, query *DataQuery) (*RecordRange[*ChainEntryRecord[*MessageRecord[*messaging.TransactionMessage]]], ...)
- func (q Querier2) QueryDataEntry(ctx context.Context, scope *url.URL, query *DataQuery) (*ChainEntryRecord[*MessageRecord[*messaging.TransactionMessage]], error)
- func (q Querier2) QueryDirectory(ctx context.Context, scope *url.URL, query *DirectoryQuery) (*RecordRange[*AccountRecord], error)
- func (q Querier2) QueryDirectoryUrls(ctx context.Context, scope *url.URL, query *DirectoryQuery) (*RecordRange[*UrlRecord], error)
- func (q Querier2) QueryIndexChainEntries(ctx context.Context, scope *url.URL, query *ChainQuery) (*RecordRange[*ChainEntryRecord[*IndexEntryRecord]], error)
- func (q Querier2) QueryIndexChainEntry(ctx context.Context, scope *url.URL, query *ChainQuery) (*ChainEntryRecord[*IndexEntryRecord], error)
- func (q Querier2) QueryMainChainEntries(ctx context.Context, scope *url.URL, query *ChainQuery) (*RecordRange[*ChainEntryRecord[*MessageRecord[*messaging.TransactionMessage]]], ...)
- func (q Querier2) QueryMainChainEntry(ctx context.Context, scope *url.URL, query *ChainQuery) (*ChainEntryRecord[*MessageRecord[*messaging.TransactionMessage]], error)
- func (q Querier2) QueryMajorBlock(ctx context.Context, scope *url.URL, query *BlockQuery) (*MajorBlockRecord, error)
- func (q Querier2) QueryMajorBlocks(ctx context.Context, scope *url.URL, query *BlockQuery) (*RecordRange[*MajorBlockRecord], error)
- func (q Querier2) QueryMessage(ctx context.Context, txid *url.TxID, query *DefaultQuery) (*MessageRecord[messaging.Message], error)
- func (q Querier2) QueryMinorBlock(ctx context.Context, scope *url.URL, query *BlockQuery) (*MinorBlockRecord, error)
- func (q Querier2) QueryMinorBlocks(ctx context.Context, scope *url.URL, query *BlockQuery) (*RecordRange[*MinorBlockRecord], error)
- func (q Querier2) QueryPending(ctx context.Context, scope *url.URL, query *PendingQuery) (*RecordRange[*MessageRecord[*messaging.TransactionMessage]], error)
- func (q Querier2) QueryPendingIds(ctx context.Context, scope *url.URL, query *PendingQuery) (*RecordRange[*TxIDRecord], error)
- func (q Querier2) QuerySignature(ctx context.Context, txid *url.TxID, query *DefaultQuery) (*MessageRecord[*messaging.SignatureMessage], error)
- func (q Querier2) QuerySignatureChainEntries(ctx context.Context, scope *url.URL, query *ChainQuery) (*RecordRange[*ChainEntryRecord[*MessageRecord[messaging.Message]]], error)
- func (q Querier2) QuerySignatureChainEntry(ctx context.Context, scope *url.URL, query *ChainQuery) (*ChainEntryRecord[*MessageRecord[messaging.Message]], error)
- func (q Querier2) QueryTransaction(ctx context.Context, txid *url.TxID, query *DefaultQuery) (*MessageRecord[*messaging.TransactionMessage], error)
- func (q Querier2) QueryTransactionChains(ctx context.Context, scope *url.TxID, query *ChainQuery) (*RecordRange[*ChainEntryRecord[Record]], error)
- func (q Querier2) SearchForAnchor(ctx context.Context, scope *url.URL, search *AnchorSearchQuery) (*RecordRange[*ChainEntryRecord[Record]], error)
- func (q Querier2) SearchForDelegate(ctx context.Context, scope *url.URL, search *DelegateSearchQuery) (*RecordRange[*KeyRecord], error)
- func (q Querier2) SearchForMessage(ctx context.Context, hash [32]byte) (*RecordRange[*TxIDRecord], error)
- func (q Querier2) SearchForPublicKey(ctx context.Context, scope *url.URL, search *PublicKeySearchQuery) (*RecordRange[*KeyRecord], error)
- func (q Querier2) SearchForPublicKeyHash(ctx context.Context, scope *url.URL, search *PublicKeyHashSearchQuery) (*RecordRange[*KeyRecord], error)
- type Query
- type QueryType
- type RangeOptions
- func (v *RangeOptions) Copy() *RangeOptions
- func (v *RangeOptions) CopyAsInterface() interface{}
- func (v *RangeOptions) Equal(u *RangeOptions) bool
- func (v *RangeOptions) IsValid() error
- func (v *RangeOptions) MarshalBinary() ([]byte, error)
- func (v *RangeOptions) UnmarshalBinary(data []byte) error
- func (v *RangeOptions) UnmarshalBinaryFrom(rd io.Reader) error
- type Receipt
- func (v *Receipt) Copy() *Receipt
- func (v *Receipt) CopyAsInterface() interface{}
- func (v *Receipt) Equal(u *Receipt) bool
- func (v *Receipt) IsValid() error
- func (v *Receipt) MarshalBinary() ([]byte, error)
- func (v *Receipt) MarshalJSON() ([]byte, error)
- func (v *Receipt) UnmarshalBinary(data []byte) error
- func (v *Receipt) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *Receipt) UnmarshalJSON(data []byte) error
- type Record
- type RecordRange
- func (v *RecordRange[T]) Copy() *RecordRange[T]
- func (v *RecordRange[T]) CopyAsInterface() interface{}
- func (v *RecordRange[T]) Equal(u *RecordRange[T]) bool
- func (v *RecordRange[T]) IsValid() error
- func (v *RecordRange[T]) MarshalBinary() ([]byte, error)
- func (v *RecordRange[T]) MarshalJSON() ([]byte, error)
- func (*RecordRange[T]) RecordType() RecordType
- func (v *RecordRange[T]) UnmarshalBinary(data []byte) error
- func (v *RecordRange[T]) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *RecordRange[T]) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *RecordRange[T]) UnmarshalJSON(data []byte) error
- type RecordType
- type ServiceAddress
- func (s *ServiceAddress) Compare(r *ServiceAddress) int
- func (s *ServiceAddress) Copy() *ServiceAddress
- func (s *ServiceAddress) Equal(r *ServiceAddress) bool
- func (v *ServiceAddress) IsValid() error
- func (v *ServiceAddress) MarshalBinary() ([]byte, error)
- func (s *ServiceAddress) Multiaddr() multiaddr.Multiaddr
- func (s *ServiceAddress) MultiaddrFor(network string) (multiaddr.Multiaddr, error)
- func (s *ServiceAddress) String() string
- func (v *ServiceAddress) UnmarshalBinary(data []byte) error
- func (v *ServiceAddress) UnmarshalBinaryFrom(rd io.Reader) error
- type ServiceType
- func (s ServiceType) Address() *ServiceAddress
- func (s ServiceType) AddressFor(arg string) *ServiceAddress
- func (s ServiceType) AddressForUrl(u *url.URL) *ServiceAddress
- func (v ServiceType) GetEnumValue() uint64
- func (v ServiceType) MarshalJSON() ([]byte, error)
- func (v *ServiceType) SetEnumValue(id uint64) bool
- func (v ServiceType) String() string
- func (v *ServiceType) UnmarshalJSON(data []byte) error
- type SignatureSetRecord
- func (v *SignatureSetRecord) Copy() *SignatureSetRecord
- func (v *SignatureSetRecord) CopyAsInterface() interface{}
- func (v *SignatureSetRecord) Equal(u *SignatureSetRecord) bool
- func (v *SignatureSetRecord) IsValid() error
- func (v *SignatureSetRecord) MarshalBinary() ([]byte, error)
- func (v *SignatureSetRecord) MarshalJSON() ([]byte, error)
- func (*SignatureSetRecord) RecordType() RecordType
- func (v *SignatureSetRecord) UnmarshalBinary(data []byte) error
- func (v *SignatureSetRecord) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *SignatureSetRecord) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *SignatureSetRecord) UnmarshalJSON(data []byte) error
- type Submission
- func (v *Submission) Copy() *Submission
- func (v *Submission) CopyAsInterface() interface{}
- func (v *Submission) Equal(u *Submission) bool
- func (v *Submission) IsValid() error
- func (v *Submission) MarshalBinary() ([]byte, error)
- func (v *Submission) UnmarshalBinary(data []byte) error
- func (v *Submission) UnmarshalBinaryFrom(rd io.Reader) error
- type SubmitOptions
- func (v *SubmitOptions) Copy() *SubmitOptions
- func (v *SubmitOptions) CopyAsInterface() interface{}
- func (v *SubmitOptions) Equal(u *SubmitOptions) bool
- func (v *SubmitOptions) IsValid() error
- func (v *SubmitOptions) MarshalBinary() ([]byte, error)
- func (v *SubmitOptions) UnmarshalBinary(data []byte) error
- func (v *SubmitOptions) UnmarshalBinaryFrom(rd io.Reader) error
- type Submitter
- type SubscribeOptions
- func (v *SubscribeOptions) Copy() *SubscribeOptions
- func (v *SubscribeOptions) CopyAsInterface() interface{}
- func (v *SubscribeOptions) Equal(u *SubscribeOptions) bool
- func (v *SubscribeOptions) IsValid() error
- func (v *SubscribeOptions) MarshalBinary() ([]byte, error)
- func (v *SubscribeOptions) UnmarshalBinary(data []byte) error
- func (v *SubscribeOptions) UnmarshalBinaryFrom(rd io.Reader) error
- type TxIDRecord
- func (v *TxIDRecord) Copy() *TxIDRecord
- func (v *TxIDRecord) CopyAsInterface() interface{}
- func (v *TxIDRecord) Equal(u *TxIDRecord) bool
- func (v *TxIDRecord) IsValid() error
- func (v *TxIDRecord) MarshalBinary() ([]byte, error)
- func (v *TxIDRecord) MarshalJSON() ([]byte, error)
- func (*TxIDRecord) RecordType() RecordType
- func (v *TxIDRecord) UnmarshalBinary(data []byte) error
- func (v *TxIDRecord) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *TxIDRecord) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *TxIDRecord) UnmarshalJSON(data []byte) error
- type UrlRecord
- func (v *UrlRecord) Copy() *UrlRecord
- func (v *UrlRecord) CopyAsInterface() interface{}
- func (v *UrlRecord) Equal(u *UrlRecord) bool
- func (v *UrlRecord) IsValid() error
- func (v *UrlRecord) MarshalBinary() ([]byte, error)
- func (v *UrlRecord) MarshalJSON() ([]byte, error)
- func (*UrlRecord) RecordType() RecordType
- func (v *UrlRecord) UnmarshalBinary(data []byte) error
- func (v *UrlRecord) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *UrlRecord) UnmarshalFieldsFrom(reader *encoding.Reader) error
- func (v *UrlRecord) UnmarshalJSON(data []byte) error
- type ValidateOptions
- func (v *ValidateOptions) Copy() *ValidateOptions
- func (v *ValidateOptions) CopyAsInterface() interface{}
- func (v *ValidateOptions) Equal(u *ValidateOptions) bool
- func (v *ValidateOptions) IsValid() error
- func (v *ValidateOptions) MarshalBinary() ([]byte, error)
- func (v *ValidateOptions) UnmarshalBinary(data []byte) error
- func (v *ValidateOptions) UnmarshalBinaryFrom(rd io.Reader) error
- type Validator
Constants ¶
const N_ACC = "acc"
N_ACC is the multicodec name for the acc protocol.
const N_ACC_SVC = "acc-svc"
N_ACC_SVC is the multicodec name for the acc-svc protocol.
const P_ACC = 0x300000
P_ACC is the multicodec code for the acc protocol.
const P_ACC_SVC = 0x300001
P_ACC_SVC is the multicodec code for the acc-svc protocol.
Variables ¶
This section is empty.
Functions ¶
func EqualEvent ¶
EqualEvent is used to compare the values of the union
func EqualQuery ¶
EqualQuery is used to compare the values of the union
func EqualRecord ¶
EqualRecord is used to compare the values of the union
Types ¶
type AccountRecord ¶
type AccountRecord struct { Account protocol.Account `json:"account,omitempty" form:"account" query:"account" validate:"required"` Directory *RecordRange[*UrlRecord] `json:"directory,omitempty" form:"directory" query:"directory" validate:"required"` Pending *RecordRange[*TxIDRecord] `json:"pending,omitempty" form:"pending" query:"pending" validate:"required"` Receipt *Receipt `json:"receipt,omitempty" form:"receipt" query:"receipt" validate:"required"` // contains filtered or unexported fields }
func (*AccountRecord) Copy ¶
func (v *AccountRecord) Copy() *AccountRecord
func (*AccountRecord) CopyAsInterface ¶
func (v *AccountRecord) CopyAsInterface() interface{}
func (*AccountRecord) Equal ¶
func (v *AccountRecord) Equal(u *AccountRecord) bool
func (*AccountRecord) IsValid ¶
func (v *AccountRecord) IsValid() error
func (*AccountRecord) MarshalBinary ¶
func (v *AccountRecord) MarshalBinary() ([]byte, error)
func (*AccountRecord) MarshalJSON ¶
func (v *AccountRecord) MarshalJSON() ([]byte, error)
func (*AccountRecord) RecordType ¶
func (*AccountRecord) RecordType() RecordType
func (*AccountRecord) UnmarshalBinary ¶
func (v *AccountRecord) UnmarshalBinary(data []byte) error
func (*AccountRecord) UnmarshalBinaryFrom ¶
func (v *AccountRecord) UnmarshalBinaryFrom(rd io.Reader) error
func (*AccountRecord) UnmarshalFieldsFrom ¶
func (v *AccountRecord) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*AccountRecord) UnmarshalJSON ¶
func (v *AccountRecord) UnmarshalJSON(data []byte) error
type AnchorSearchQuery ¶
type AnchorSearchQuery struct { Anchor []byte `json:"anchor,omitempty" form:"anchor" query:"anchor" validate:"required"` IncludeReceipt bool `json:"includeReceipt,omitempty" form:"includeReceipt" query:"includeReceipt"` // contains filtered or unexported fields }
AnchorSearchQuery queries {account}#anchor/{hash}.
func (*AnchorSearchQuery) Copy ¶
func (v *AnchorSearchQuery) Copy() *AnchorSearchQuery
func (*AnchorSearchQuery) CopyAsInterface ¶
func (v *AnchorSearchQuery) CopyAsInterface() interface{}
func (*AnchorSearchQuery) Equal ¶
func (v *AnchorSearchQuery) Equal(u *AnchorSearchQuery) bool
func (*AnchorSearchQuery) IsValid ¶
func (v *AnchorSearchQuery) IsValid() error
func (*AnchorSearchQuery) MarshalBinary ¶
func (v *AnchorSearchQuery) MarshalBinary() ([]byte, error)
func (*AnchorSearchQuery) MarshalJSON ¶
func (v *AnchorSearchQuery) MarshalJSON() ([]byte, error)
func (*AnchorSearchQuery) QueryType ¶
func (*AnchorSearchQuery) QueryType() QueryType
func (*AnchorSearchQuery) UnmarshalBinary ¶
func (v *AnchorSearchQuery) UnmarshalBinary(data []byte) error
func (*AnchorSearchQuery) UnmarshalBinaryFrom ¶
func (v *AnchorSearchQuery) UnmarshalBinaryFrom(rd io.Reader) error
func (*AnchorSearchQuery) UnmarshalFieldsFrom ¶
func (v *AnchorSearchQuery) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*AnchorSearchQuery) UnmarshalJSON ¶
func (v *AnchorSearchQuery) UnmarshalJSON(data []byte) error
type BatchData ¶
type BatchData struct {
// contains filtered or unexported fields
}
func ContextWithBatchData ¶
ContextWithBatchData will return a context with batch data. If the incoming context already has batch data, ContextWithBatch returns the incoming context and a noop cancel function. If the incoming context does not have batch data, ContextWithBatch will create a new cancellable context with batch data.
func GetBatchData ¶
type BlockEvent ¶
type BlockEvent struct { Partition string `json:"partition,omitempty" form:"partition" query:"partition" validate:"required"` Index uint64 `json:"index,omitempty" form:"index" query:"index" validate:"required"` Time time.Time `json:"time,omitempty" form:"time" query:"time" validate:"required"` Major uint64 `json:"major,omitempty" form:"major" query:"major" validate:"required"` Entries []*ChainEntryRecord[Record] `json:"entries,omitempty" form:"entries" query:"entries" validate:"required"` // contains filtered or unexported fields }
func (*BlockEvent) Copy ¶
func (v *BlockEvent) Copy() *BlockEvent
func (*BlockEvent) CopyAsInterface ¶
func (v *BlockEvent) CopyAsInterface() interface{}
func (*BlockEvent) Equal ¶
func (v *BlockEvent) Equal(u *BlockEvent) bool
func (*BlockEvent) EventType ¶
func (*BlockEvent) EventType() EventType
func (*BlockEvent) IsValid ¶
func (v *BlockEvent) IsValid() error
func (*BlockEvent) MarshalBinary ¶
func (v *BlockEvent) MarshalBinary() ([]byte, error)
func (*BlockEvent) MarshalJSON ¶
func (v *BlockEvent) MarshalJSON() ([]byte, error)
func (*BlockEvent) UnmarshalBinary ¶
func (v *BlockEvent) UnmarshalBinary(data []byte) error
func (*BlockEvent) UnmarshalBinaryFrom ¶
func (v *BlockEvent) UnmarshalBinaryFrom(rd io.Reader) error
func (*BlockEvent) UnmarshalFieldsFrom ¶
func (v *BlockEvent) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*BlockEvent) UnmarshalJSON ¶
func (v *BlockEvent) UnmarshalJSON(data []byte) error
type BlockQuery ¶
type BlockQuery struct { Minor *uint64 `json:"minor,omitempty" form:"minor" query:"minor"` Major *uint64 `json:"major,omitempty" form:"major" query:"major"` MinorRange *RangeOptions `json:"minorRange,omitempty" form:"minorRange" query:"minorRange"` MajorRange *RangeOptions `json:"majorRange,omitempty" form:"majorRange" query:"majorRange"` EntryRange *RangeOptions `json:"entryRange,omitempty" form:"entryRange" query:"entryRange"` // OmitEmpty omits empty (unrecorded) blocks from the response. OmitEmpty bool `json:"omitEmpty,omitempty" form:"omitEmpty" query:"omitEmpty"` // contains filtered or unexported fields }
func (*BlockQuery) Copy ¶
func (v *BlockQuery) Copy() *BlockQuery
func (*BlockQuery) CopyAsInterface ¶
func (v *BlockQuery) CopyAsInterface() interface{}
func (*BlockQuery) Equal ¶
func (v *BlockQuery) Equal(u *BlockQuery) bool
func (*BlockQuery) IsValid ¶
func (q *BlockQuery) IsValid() error
func (*BlockQuery) MarshalBinary ¶
func (v *BlockQuery) MarshalBinary() ([]byte, error)
func (*BlockQuery) MarshalJSON ¶
func (v *BlockQuery) MarshalJSON() ([]byte, error)
func (*BlockQuery) QueryType ¶
func (*BlockQuery) QueryType() QueryType
func (*BlockQuery) UnmarshalBinary ¶
func (v *BlockQuery) UnmarshalBinary(data []byte) error
func (*BlockQuery) UnmarshalBinaryFrom ¶
func (v *BlockQuery) UnmarshalBinaryFrom(rd io.Reader) error
func (*BlockQuery) UnmarshalFieldsFrom ¶
func (v *BlockQuery) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*BlockQuery) UnmarshalJSON ¶
func (v *BlockQuery) UnmarshalJSON(data []byte) error
type ChainEntryRecord ¶
type ChainEntryRecord[T Record] struct { // Account is the account (omitted if unambiguous). Account *url.URL `json:"account,omitempty" form:"account" query:"account" validate:"required"` Name string `json:"name,omitempty" form:"name" query:"name" validate:"required"` Type merkle.ChainType `json:"type,omitempty" form:"type" query:"type" validate:"required"` Index uint64 `json:"index" form:"index" query:"index" validate:"required"` Entry [32]byte `json:"entry,omitempty" form:"entry" query:"entry" validate:"required"` Value T `json:"value,omitempty" form:"value" query:"value" validate:"required"` Receipt *Receipt `json:"receipt,omitempty" form:"receipt" query:"receipt" validate:"required"` State [][]byte `json:"state,omitempty" form:"state" query:"state" validate:"required"` // contains filtered or unexported fields }
func ChainEntryRecordAs ¶
func ChainEntryRecordAs[T2 Record, T1 Record](v *ChainEntryRecord[T1]) (*ChainEntryRecord[T2], error)
func ChainEntryRecordAsMessage ¶
func ChainEntryRecordAsMessage[T messaging.Message](r *ChainEntryRecord[Record]) (*ChainEntryRecord[*MessageRecord[T]], error)
func (*ChainEntryRecord[T]) Copy ¶
func (v *ChainEntryRecord[T]) Copy() *ChainEntryRecord[T]
func (*ChainEntryRecord[T]) CopyAsInterface ¶
func (v *ChainEntryRecord[T]) CopyAsInterface() interface{}
func (*ChainEntryRecord[T]) Equal ¶
func (v *ChainEntryRecord[T]) Equal(u *ChainEntryRecord[T]) bool
func (*ChainEntryRecord[T]) IsValid ¶
func (v *ChainEntryRecord[T]) IsValid() error
func (*ChainEntryRecord[T]) MarshalBinary ¶
func (v *ChainEntryRecord[T]) MarshalBinary() ([]byte, error)
func (*ChainEntryRecord[T]) MarshalJSON ¶
func (v *ChainEntryRecord[T]) MarshalJSON() ([]byte, error)
func (*ChainEntryRecord[T]) RecordType ¶
func (*ChainEntryRecord[T]) RecordType() RecordType
func (*ChainEntryRecord[T]) UnmarshalBinary ¶
func (v *ChainEntryRecord[T]) UnmarshalBinary(data []byte) error
func (*ChainEntryRecord[T]) UnmarshalBinaryFrom ¶
func (v *ChainEntryRecord[T]) UnmarshalBinaryFrom(rd io.Reader) error
func (*ChainEntryRecord[T]) UnmarshalFieldsFrom ¶
func (v *ChainEntryRecord[T]) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*ChainEntryRecord[T]) UnmarshalJSON ¶
func (v *ChainEntryRecord[T]) UnmarshalJSON(data []byte) error
type ChainQuery ¶
type ChainQuery struct { Name string `json:"name,omitempty" form:"name" query:"name"` Index *uint64 `json:"index,omitempty" form:"index" query:"index"` Entry []byte `json:"entry,omitempty" form:"entry" query:"entry"` Range *RangeOptions `json:"range,omitempty" form:"range" query:"range"` IncludeReceipt bool `json:"includeReceipt,omitempty" form:"includeReceipt" query:"includeReceipt"` // contains filtered or unexported fields }
func (*ChainQuery) Copy ¶
func (v *ChainQuery) Copy() *ChainQuery
func (*ChainQuery) CopyAsInterface ¶
func (v *ChainQuery) CopyAsInterface() interface{}
func (*ChainQuery) Equal ¶
func (v *ChainQuery) Equal(u *ChainQuery) bool
func (*ChainQuery) IsValid ¶
func (q *ChainQuery) IsValid() error
func (*ChainQuery) MarshalBinary ¶
func (v *ChainQuery) MarshalBinary() ([]byte, error)
func (*ChainQuery) MarshalJSON ¶
func (v *ChainQuery) MarshalJSON() ([]byte, error)
func (*ChainQuery) QueryType ¶
func (*ChainQuery) QueryType() QueryType
func (*ChainQuery) UnmarshalBinary ¶
func (v *ChainQuery) UnmarshalBinary(data []byte) error
func (*ChainQuery) UnmarshalBinaryFrom ¶
func (v *ChainQuery) UnmarshalBinaryFrom(rd io.Reader) error
func (*ChainQuery) UnmarshalFieldsFrom ¶
func (v *ChainQuery) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*ChainQuery) UnmarshalJSON ¶
func (v *ChainQuery) UnmarshalJSON(data []byte) error
type ChainRecord ¶
type ChainRecord struct { Name string `json:"name,omitempty" form:"name" query:"name" validate:"required"` Type merkle.ChainType `json:"type,omitempty" form:"type" query:"type" validate:"required"` Count uint64 `json:"count,omitempty" form:"count" query:"count" validate:"required"` State [][]byte `json:"state,omitempty" form:"state" query:"state" validate:"required"` // contains filtered or unexported fields }
func (*ChainRecord) Copy ¶
func (v *ChainRecord) Copy() *ChainRecord
func (*ChainRecord) CopyAsInterface ¶
func (v *ChainRecord) CopyAsInterface() interface{}
func (*ChainRecord) Equal ¶
func (v *ChainRecord) Equal(u *ChainRecord) bool
func (*ChainRecord) IsValid ¶
func (v *ChainRecord) IsValid() error
func (*ChainRecord) MarshalBinary ¶
func (v *ChainRecord) MarshalBinary() ([]byte, error)
func (*ChainRecord) MarshalJSON ¶
func (v *ChainRecord) MarshalJSON() ([]byte, error)
func (*ChainRecord) RecordType ¶
func (*ChainRecord) RecordType() RecordType
func (*ChainRecord) UnmarshalBinary ¶
func (v *ChainRecord) UnmarshalBinary(data []byte) error
func (*ChainRecord) UnmarshalBinaryFrom ¶
func (v *ChainRecord) UnmarshalBinaryFrom(rd io.Reader) error
func (*ChainRecord) UnmarshalFieldsFrom ¶
func (v *ChainRecord) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*ChainRecord) UnmarshalJSON ¶
func (v *ChainRecord) UnmarshalJSON(data []byte) error
type Collator ¶
type Collator struct { Querier Querier Network NetworkService }
Collator is a Querier implementation that can collate query responses from multiple networks.
type ConsensusPeerInfo ¶
type ConsensusPeerInfo struct { NodeID string `json:"nodeID,omitempty" form:"nodeID" query:"nodeID" validate:"required"` Host string `json:"host,omitempty" form:"host" query:"host" validate:"required"` Port uint64 `json:"port,omitempty" form:"port" query:"port" validate:"required"` // contains filtered or unexported fields }
func (*ConsensusPeerInfo) Copy ¶
func (v *ConsensusPeerInfo) Copy() *ConsensusPeerInfo
func (*ConsensusPeerInfo) CopyAsInterface ¶
func (v *ConsensusPeerInfo) CopyAsInterface() interface{}
func (*ConsensusPeerInfo) Equal ¶
func (v *ConsensusPeerInfo) Equal(u *ConsensusPeerInfo) bool
func (*ConsensusPeerInfo) IsValid ¶
func (v *ConsensusPeerInfo) IsValid() error
func (*ConsensusPeerInfo) MarshalBinary ¶
func (v *ConsensusPeerInfo) MarshalBinary() ([]byte, error)
func (*ConsensusPeerInfo) UnmarshalBinary ¶
func (v *ConsensusPeerInfo) UnmarshalBinary(data []byte) error
func (*ConsensusPeerInfo) UnmarshalBinaryFrom ¶
func (v *ConsensusPeerInfo) UnmarshalBinaryFrom(rd io.Reader) error
type ConsensusService ¶
type ConsensusService interface { // ConsensusStatus returns the status of the consensus node. ConsensusStatus(ctx context.Context, opts ConsensusStatusOptions) (*ConsensusStatus, error) }
type ConsensusStatus ¶
type ConsensusStatus struct { Ok bool `json:"ok,omitempty" form:"ok" query:"ok" validate:"required"` LastBlock *LastBlock `json:"lastBlock,omitempty" form:"lastBlock" query:"lastBlock" validate:"required"` Version string `json:"version,omitempty" form:"version" query:"version" validate:"required"` Commit string `json:"commit,omitempty" form:"commit" query:"commit" validate:"required"` NodeKeyHash [32]byte `json:"nodeKeyHash,omitempty" form:"nodeKeyHash" query:"nodeKeyHash" validate:"required"` ValidatorKeyHash [32]byte `json:"validatorKeyHash,omitempty" form:"validatorKeyHash" query:"validatorKeyHash" validate:"required"` PartitionID string `json:"partitionID,omitempty" form:"partitionID" query:"partitionID" validate:"required"` PartitionType protocol.PartitionType `json:"partitionType,omitempty" form:"partitionType" query:"partitionType" validate:"required"` Peers []*ConsensusPeerInfo `json:"peers,omitempty" form:"peers" query:"peers" validate:"required"` // contains filtered or unexported fields }
func (*ConsensusStatus) Copy ¶
func (v *ConsensusStatus) Copy() *ConsensusStatus
func (*ConsensusStatus) CopyAsInterface ¶
func (v *ConsensusStatus) CopyAsInterface() interface{}
func (*ConsensusStatus) Equal ¶
func (v *ConsensusStatus) Equal(u *ConsensusStatus) bool
func (*ConsensusStatus) IsValid ¶
func (v *ConsensusStatus) IsValid() error
func (*ConsensusStatus) MarshalBinary ¶
func (v *ConsensusStatus) MarshalBinary() ([]byte, error)
func (*ConsensusStatus) MarshalJSON ¶
func (v *ConsensusStatus) MarshalJSON() ([]byte, error)
func (*ConsensusStatus) UnmarshalBinary ¶
func (v *ConsensusStatus) UnmarshalBinary(data []byte) error
func (*ConsensusStatus) UnmarshalBinaryFrom ¶
func (v *ConsensusStatus) UnmarshalBinaryFrom(rd io.Reader) error
func (*ConsensusStatus) UnmarshalJSON ¶
func (v *ConsensusStatus) UnmarshalJSON(data []byte) error
type ConsensusStatusOptions ¶
type ConsensusStatusOptions struct { NodeID string `json:"nodeID,omitempty" form:"nodeID" query:"nodeID" validate:"required"` Partition string `json:"partition,omitempty" form:"partition" query:"partition" validate:"required"` // contains filtered or unexported fields }
func (*ConsensusStatusOptions) Copy ¶
func (v *ConsensusStatusOptions) Copy() *ConsensusStatusOptions
func (*ConsensusStatusOptions) CopyAsInterface ¶
func (v *ConsensusStatusOptions) CopyAsInterface() interface{}
func (*ConsensusStatusOptions) Equal ¶
func (v *ConsensusStatusOptions) Equal(u *ConsensusStatusOptions) bool
func (*ConsensusStatusOptions) IsValid ¶
func (v *ConsensusStatusOptions) IsValid() error
func (*ConsensusStatusOptions) MarshalBinary ¶
func (v *ConsensusStatusOptions) MarshalBinary() ([]byte, error)
func (*ConsensusStatusOptions) UnmarshalBinary ¶
func (v *ConsensusStatusOptions) UnmarshalBinary(data []byte) error
func (*ConsensusStatusOptions) UnmarshalBinaryFrom ¶
func (v *ConsensusStatusOptions) UnmarshalBinaryFrom(rd io.Reader) error
type DataQuery ¶
type DataQuery struct { Index *uint64 `json:"index,omitempty" form:"index" query:"index"` Entry []byte `json:"entry,omitempty" form:"entry" query:"entry"` Range *RangeOptions `json:"range,omitempty" form:"range" query:"range"` // contains filtered or unexported fields }
func (*DataQuery) CopyAsInterface ¶
func (v *DataQuery) CopyAsInterface() interface{}
func (*DataQuery) MarshalBinary ¶
func (*DataQuery) MarshalJSON ¶
func (*DataQuery) UnmarshalBinary ¶
func (*DataQuery) UnmarshalFieldsFrom ¶
func (*DataQuery) UnmarshalJSON ¶
type DefaultQuery ¶
type DefaultQuery struct { IncludeReceipt bool `json:"includeReceipt,omitempty" form:"includeReceipt" query:"includeReceipt"` // contains filtered or unexported fields }
func (*DefaultQuery) Copy ¶
func (v *DefaultQuery) Copy() *DefaultQuery
func (*DefaultQuery) CopyAsInterface ¶
func (v *DefaultQuery) CopyAsInterface() interface{}
func (*DefaultQuery) Equal ¶
func (v *DefaultQuery) Equal(u *DefaultQuery) bool
func (*DefaultQuery) IsValid ¶
func (v *DefaultQuery) IsValid() error
func (*DefaultQuery) MarshalBinary ¶
func (v *DefaultQuery) MarshalBinary() ([]byte, error)
func (*DefaultQuery) MarshalJSON ¶
func (v *DefaultQuery) MarshalJSON() ([]byte, error)
func (*DefaultQuery) QueryType ¶
func (*DefaultQuery) QueryType() QueryType
func (*DefaultQuery) UnmarshalBinary ¶
func (v *DefaultQuery) UnmarshalBinary(data []byte) error
func (*DefaultQuery) UnmarshalBinaryFrom ¶
func (v *DefaultQuery) UnmarshalBinaryFrom(rd io.Reader) error
func (*DefaultQuery) UnmarshalFieldsFrom ¶
func (v *DefaultQuery) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*DefaultQuery) UnmarshalJSON ¶
func (v *DefaultQuery) UnmarshalJSON(data []byte) error
type DelegateSearchQuery ¶
type DelegateSearchQuery struct { Delegate *url.URL `json:"delegate,omitempty" form:"delegate" query:"delegate" validate:"required"` // contains filtered or unexported fields }
func (*DelegateSearchQuery) Copy ¶
func (v *DelegateSearchQuery) Copy() *DelegateSearchQuery
func (*DelegateSearchQuery) CopyAsInterface ¶
func (v *DelegateSearchQuery) CopyAsInterface() interface{}
func (*DelegateSearchQuery) Equal ¶
func (v *DelegateSearchQuery) Equal(u *DelegateSearchQuery) bool
func (*DelegateSearchQuery) IsValid ¶
func (v *DelegateSearchQuery) IsValid() error
func (*DelegateSearchQuery) MarshalBinary ¶
func (v *DelegateSearchQuery) MarshalBinary() ([]byte, error)
func (*DelegateSearchQuery) MarshalJSON ¶
func (v *DelegateSearchQuery) MarshalJSON() ([]byte, error)
func (*DelegateSearchQuery) QueryType ¶
func (*DelegateSearchQuery) QueryType() QueryType
func (*DelegateSearchQuery) UnmarshalBinary ¶
func (v *DelegateSearchQuery) UnmarshalBinary(data []byte) error
func (*DelegateSearchQuery) UnmarshalBinaryFrom ¶
func (v *DelegateSearchQuery) UnmarshalBinaryFrom(rd io.Reader) error
func (*DelegateSearchQuery) UnmarshalFieldsFrom ¶
func (v *DelegateSearchQuery) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*DelegateSearchQuery) UnmarshalJSON ¶
func (v *DelegateSearchQuery) UnmarshalJSON(data []byte) error
type DirectoryQuery ¶
type DirectoryQuery struct { Range *RangeOptions `json:"range,omitempty" form:"range" query:"range" validate:"required"` // contains filtered or unexported fields }
func (*DirectoryQuery) Copy ¶
func (v *DirectoryQuery) Copy() *DirectoryQuery
func (*DirectoryQuery) CopyAsInterface ¶
func (v *DirectoryQuery) CopyAsInterface() interface{}
func (*DirectoryQuery) Equal ¶
func (v *DirectoryQuery) Equal(u *DirectoryQuery) bool
func (*DirectoryQuery) IsValid ¶
func (v *DirectoryQuery) IsValid() error
func (*DirectoryQuery) MarshalBinary ¶
func (v *DirectoryQuery) MarshalBinary() ([]byte, error)
func (*DirectoryQuery) MarshalJSON ¶
func (v *DirectoryQuery) MarshalJSON() ([]byte, error)
func (*DirectoryQuery) QueryType ¶
func (*DirectoryQuery) QueryType() QueryType
func (*DirectoryQuery) UnmarshalBinary ¶
func (v *DirectoryQuery) UnmarshalBinary(data []byte) error
func (*DirectoryQuery) UnmarshalBinaryFrom ¶
func (v *DirectoryQuery) UnmarshalBinaryFrom(rd io.Reader) error
func (*DirectoryQuery) UnmarshalFieldsFrom ¶
func (v *DirectoryQuery) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*DirectoryQuery) UnmarshalJSON ¶
func (v *DirectoryQuery) UnmarshalJSON(data []byte) error
type ErrorEvent ¶
type ErrorEvent struct { Err *errors2.Error `json:"err,omitempty" form:"err" query:"err" validate:"required"` // contains filtered or unexported fields }
func (*ErrorEvent) Copy ¶
func (v *ErrorEvent) Copy() *ErrorEvent
func (*ErrorEvent) CopyAsInterface ¶
func (v *ErrorEvent) CopyAsInterface() interface{}
func (*ErrorEvent) Equal ¶
func (v *ErrorEvent) Equal(u *ErrorEvent) bool
func (*ErrorEvent) EventType ¶
func (*ErrorEvent) EventType() EventType
func (*ErrorEvent) IsValid ¶
func (v *ErrorEvent) IsValid() error
func (*ErrorEvent) MarshalBinary ¶
func (v *ErrorEvent) MarshalBinary() ([]byte, error)
func (*ErrorEvent) MarshalJSON ¶
func (v *ErrorEvent) MarshalJSON() ([]byte, error)
func (*ErrorEvent) UnmarshalBinary ¶
func (v *ErrorEvent) UnmarshalBinary(data []byte) error
func (*ErrorEvent) UnmarshalBinaryFrom ¶
func (v *ErrorEvent) UnmarshalBinaryFrom(rd io.Reader) error
func (*ErrorEvent) UnmarshalFieldsFrom ¶
func (v *ErrorEvent) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*ErrorEvent) UnmarshalJSON ¶
func (v *ErrorEvent) UnmarshalJSON(data []byte) error
type Event ¶
type Event interface { encoding.UnionValue EventType() EventType }
Event is an event returned by EventService.
func UnmarshalEvent ¶
UnmarshalEvent unmarshals a Event.
func UnmarshalEventFrom ¶
UnmarshalEventFrom unmarshals a Event.
func UnmarshalEventJSON ¶
UnmarshalEventJson unmarshals a Event.
type EventService ¶
type EventService interface { // Subscribe subscribes to event notifications. The channel will be closed // once the context is canceled. Subscribe will leak goroutines if the // context is not canceled. Subscribe(ctx context.Context, opts SubscribeOptions) (<-chan Event, error) }
type EventType ¶
type EventType uint64
EventType is the type of an Event.
const EventTypeBlock EventType = 2
EventTypeBlock .
const EventTypeError EventType = 1
EventTypeError .
const EventTypeGlobals EventType = 3
EventTypeGlobals .
func EventTypeByName ¶
EventTypeByName returns the named Event Type.
func (EventType) GetEnumValue ¶
GetEnumValue returns the value of the Event Type
func (EventType) MarshalJSON ¶
MarshalJSON marshals the Event Type to JSON as a string.
func (*EventType) SetEnumValue ¶
SetEnumValue sets the value. SetEnumValue returns false if the value is invalid.
func (*EventType) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Event Type from JSON as a string.
type Faucet ¶
type Faucet interface {
Faucet(ctx context.Context, account *url.URL, opts FaucetOptions) (*Submission, error)
}
type FaucetOptions ¶
type FaucetOptions struct { Token *url.URL `json:"token,omitempty" form:"token" query:"token"` // contains filtered or unexported fields }
func (*FaucetOptions) Copy ¶
func (v *FaucetOptions) Copy() *FaucetOptions
func (*FaucetOptions) CopyAsInterface ¶
func (v *FaucetOptions) CopyAsInterface() interface{}
func (*FaucetOptions) Equal ¶
func (v *FaucetOptions) Equal(u *FaucetOptions) bool
func (*FaucetOptions) IsValid ¶
func (v *FaucetOptions) IsValid() error
func (*FaucetOptions) MarshalBinary ¶
func (v *FaucetOptions) MarshalBinary() ([]byte, error)
func (*FaucetOptions) UnmarshalBinary ¶
func (v *FaucetOptions) UnmarshalBinary(data []byte) error
func (*FaucetOptions) UnmarshalBinaryFrom ¶
func (v *FaucetOptions) UnmarshalBinaryFrom(rd io.Reader) error
type FindServiceOptions ¶
type FindServiceOptions struct { Network string `json:"network,omitempty" form:"network" query:"network" validate:"required"` Service *ServiceAddress `json:"service,omitempty" form:"service" query:"service" validate:"required"` // contains filtered or unexported fields }
func (*FindServiceOptions) Copy ¶
func (v *FindServiceOptions) Copy() *FindServiceOptions
func (*FindServiceOptions) CopyAsInterface ¶
func (v *FindServiceOptions) CopyAsInterface() interface{}
func (*FindServiceOptions) Equal ¶
func (v *FindServiceOptions) Equal(u *FindServiceOptions) bool
func (*FindServiceOptions) IsValid ¶
func (v *FindServiceOptions) IsValid() error
func (*FindServiceOptions) MarshalBinary ¶
func (v *FindServiceOptions) MarshalBinary() ([]byte, error)
func (*FindServiceOptions) UnmarshalBinary ¶
func (v *FindServiceOptions) UnmarshalBinary(data []byte) error
func (*FindServiceOptions) UnmarshalBinaryFrom ¶
func (v *FindServiceOptions) UnmarshalBinaryFrom(rd io.Reader) error
type FindServiceResult ¶
type FindServiceResult struct { PeerID p2p.PeerID `json:"peerID,omitempty" form:"peerID" query:"peerID" validate:"required"` // contains filtered or unexported fields }
func (*FindServiceResult) Copy ¶
func (v *FindServiceResult) Copy() *FindServiceResult
func (*FindServiceResult) CopyAsInterface ¶
func (v *FindServiceResult) CopyAsInterface() interface{}
func (*FindServiceResult) Equal ¶
func (v *FindServiceResult) Equal(u *FindServiceResult) bool
func (*FindServiceResult) IsValid ¶
func (v *FindServiceResult) IsValid() error
func (*FindServiceResult) MarshalBinary ¶
func (v *FindServiceResult) MarshalBinary() ([]byte, error)
func (*FindServiceResult) MarshalJSON ¶
func (v *FindServiceResult) MarshalJSON() ([]byte, error)
func (*FindServiceResult) UnmarshalBinary ¶
func (v *FindServiceResult) UnmarshalBinary(data []byte) error
func (*FindServiceResult) UnmarshalBinaryFrom ¶
func (v *FindServiceResult) UnmarshalBinaryFrom(rd io.Reader) error
func (*FindServiceResult) UnmarshalJSON ¶
func (v *FindServiceResult) UnmarshalJSON(data []byte) error
type GlobalsEvent ¶
type GlobalsEvent struct { Old *core.GlobalValues `json:"old,omitempty" form:"old" query:"old" validate:"required"` New *core.GlobalValues `json:"new,omitempty" form:"new" query:"new" validate:"required"` // contains filtered or unexported fields }
func (*GlobalsEvent) Copy ¶
func (v *GlobalsEvent) Copy() *GlobalsEvent
func (*GlobalsEvent) CopyAsInterface ¶
func (v *GlobalsEvent) CopyAsInterface() interface{}
func (*GlobalsEvent) Equal ¶
func (v *GlobalsEvent) Equal(u *GlobalsEvent) bool
func (*GlobalsEvent) EventType ¶
func (*GlobalsEvent) EventType() EventType
func (*GlobalsEvent) IsValid ¶
func (v *GlobalsEvent) IsValid() error
func (*GlobalsEvent) MarshalBinary ¶
func (v *GlobalsEvent) MarshalBinary() ([]byte, error)
func (*GlobalsEvent) MarshalJSON ¶
func (v *GlobalsEvent) MarshalJSON() ([]byte, error)
func (*GlobalsEvent) UnmarshalBinary ¶
func (v *GlobalsEvent) UnmarshalBinary(data []byte) error
func (*GlobalsEvent) UnmarshalBinaryFrom ¶
func (v *GlobalsEvent) UnmarshalBinaryFrom(rd io.Reader) error
func (*GlobalsEvent) UnmarshalFieldsFrom ¶
func (v *GlobalsEvent) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*GlobalsEvent) UnmarshalJSON ¶
func (v *GlobalsEvent) UnmarshalJSON(data []byte) error
type IndexEntryRecord ¶
type IndexEntryRecord struct { Value *protocol.IndexEntry `json:"value,omitempty" form:"value" query:"value" validate:"required"` // contains filtered or unexported fields }
func (*IndexEntryRecord) Copy ¶
func (v *IndexEntryRecord) Copy() *IndexEntryRecord
func (*IndexEntryRecord) CopyAsInterface ¶
func (v *IndexEntryRecord) CopyAsInterface() interface{}
func (*IndexEntryRecord) Equal ¶
func (v *IndexEntryRecord) Equal(u *IndexEntryRecord) bool
func (*IndexEntryRecord) IsValid ¶
func (v *IndexEntryRecord) IsValid() error
func (*IndexEntryRecord) MarshalBinary ¶
func (v *IndexEntryRecord) MarshalBinary() ([]byte, error)
func (*IndexEntryRecord) MarshalJSON ¶
func (v *IndexEntryRecord) MarshalJSON() ([]byte, error)
func (*IndexEntryRecord) RecordType ¶
func (*IndexEntryRecord) RecordType() RecordType
func (*IndexEntryRecord) UnmarshalBinary ¶
func (v *IndexEntryRecord) UnmarshalBinary(data []byte) error
func (*IndexEntryRecord) UnmarshalBinaryFrom ¶
func (v *IndexEntryRecord) UnmarshalBinaryFrom(rd io.Reader) error
func (*IndexEntryRecord) UnmarshalFieldsFrom ¶
func (v *IndexEntryRecord) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*IndexEntryRecord) UnmarshalJSON ¶
func (v *IndexEntryRecord) UnmarshalJSON(data []byte) error
type KeyRecord ¶
type KeyRecord struct { Authority *url.URL `json:"authority,omitempty" form:"authority" query:"authority" validate:"required"` Signer *url.URL `json:"signer,omitempty" form:"signer" query:"signer" validate:"required"` Version uint64 `json:"version,omitempty" form:"version" query:"version" validate:"required"` Index uint64 `json:"index,omitempty" form:"index" query:"index" validate:"required"` Entry *protocol.KeySpec `json:"entry,omitempty" form:"entry" query:"entry" validate:"required"` // contains filtered or unexported fields }
func (*KeyRecord) CopyAsInterface ¶
func (v *KeyRecord) CopyAsInterface() interface{}
func (*KeyRecord) MarshalBinary ¶
func (*KeyRecord) MarshalJSON ¶
func (*KeyRecord) RecordType ¶
func (*KeyRecord) RecordType() RecordType
func (*KeyRecord) UnmarshalBinary ¶
func (*KeyRecord) UnmarshalFieldsFrom ¶
func (*KeyRecord) UnmarshalJSON ¶
type LastBlock ¶
type LastBlock struct { Height int64 `json:"height,omitempty" form:"height" query:"height" validate:"required"` Time time.Time `json:"time,omitempty" form:"time" query:"time" validate:"required"` ChainRoot [32]byte `json:"chainRoot,omitempty" form:"chainRoot" query:"chainRoot" validate:"required"` StateRoot [32]byte `json:"stateRoot,omitempty" form:"stateRoot" query:"stateRoot" validate:"required"` DirectoryAnchorHeight uint64 `json:"directoryAnchorHeight,omitempty" form:"directoryAnchorHeight" query:"directoryAnchorHeight" validate:"required"` // contains filtered or unexported fields }
func (*LastBlock) CopyAsInterface ¶
func (v *LastBlock) CopyAsInterface() interface{}
func (*LastBlock) MarshalBinary ¶
func (*LastBlock) MarshalJSON ¶
func (*LastBlock) UnmarshalBinary ¶
func (*LastBlock) UnmarshalJSON ¶
type MajorBlockRecord ¶
type MajorBlockRecord struct { Index uint64 `json:"index,omitempty" form:"index" query:"index" validate:"required"` Time time.Time `json:"time,omitempty" form:"time" query:"time" validate:"required"` MinorBlocks *RecordRange[*MinorBlockRecord] `json:"minorBlocks,omitempty" form:"minorBlocks" query:"minorBlocks" validate:"required"` // contains filtered or unexported fields }
func (*MajorBlockRecord) Copy ¶
func (v *MajorBlockRecord) Copy() *MajorBlockRecord
func (*MajorBlockRecord) CopyAsInterface ¶
func (v *MajorBlockRecord) CopyAsInterface() interface{}
func (*MajorBlockRecord) Equal ¶
func (v *MajorBlockRecord) Equal(u *MajorBlockRecord) bool
func (*MajorBlockRecord) IsValid ¶
func (v *MajorBlockRecord) IsValid() error
func (*MajorBlockRecord) MarshalBinary ¶
func (v *MajorBlockRecord) MarshalBinary() ([]byte, error)
func (*MajorBlockRecord) MarshalJSON ¶
func (v *MajorBlockRecord) MarshalJSON() ([]byte, error)
func (*MajorBlockRecord) RecordType ¶
func (*MajorBlockRecord) RecordType() RecordType
func (*MajorBlockRecord) UnmarshalBinary ¶
func (v *MajorBlockRecord) UnmarshalBinary(data []byte) error
func (*MajorBlockRecord) UnmarshalBinaryFrom ¶
func (v *MajorBlockRecord) UnmarshalBinaryFrom(rd io.Reader) error
func (*MajorBlockRecord) UnmarshalFieldsFrom ¶
func (v *MajorBlockRecord) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*MajorBlockRecord) UnmarshalJSON ¶
func (v *MajorBlockRecord) UnmarshalJSON(data []byte) error
type MessageHashSearchQuery ¶
type MessageHashSearchQuery struct { Hash [32]byte `json:"hash,omitempty" form:"hash" query:"hash" validate:"required"` // contains filtered or unexported fields }
func (*MessageHashSearchQuery) Copy ¶
func (v *MessageHashSearchQuery) Copy() *MessageHashSearchQuery
func (*MessageHashSearchQuery) CopyAsInterface ¶
func (v *MessageHashSearchQuery) CopyAsInterface() interface{}
func (*MessageHashSearchQuery) Equal ¶
func (v *MessageHashSearchQuery) Equal(u *MessageHashSearchQuery) bool
func (*MessageHashSearchQuery) IsValid ¶
func (v *MessageHashSearchQuery) IsValid() error
func (*MessageHashSearchQuery) MarshalBinary ¶
func (v *MessageHashSearchQuery) MarshalBinary() ([]byte, error)
func (*MessageHashSearchQuery) MarshalJSON ¶
func (v *MessageHashSearchQuery) MarshalJSON() ([]byte, error)
func (*MessageHashSearchQuery) QueryType ¶
func (*MessageHashSearchQuery) QueryType() QueryType
func (*MessageHashSearchQuery) UnmarshalBinary ¶
func (v *MessageHashSearchQuery) UnmarshalBinary(data []byte) error
func (*MessageHashSearchQuery) UnmarshalBinaryFrom ¶
func (v *MessageHashSearchQuery) UnmarshalBinaryFrom(rd io.Reader) error
func (*MessageHashSearchQuery) UnmarshalFieldsFrom ¶
func (v *MessageHashSearchQuery) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*MessageHashSearchQuery) UnmarshalJSON ¶
func (v *MessageHashSearchQuery) UnmarshalJSON(data []byte) error
type MessageRecord ¶
type MessageRecord[T messaging.Message] struct { ID *url.TxID `json:"id,omitempty" form:"id" query:"id" validate:"required"` Message T `json:"message,omitempty" form:"message" query:"message" validate:"required"` Status errors2.Status `json:"status,omitempty" form:"status" query:"status" validate:"required"` Error *errors2.Error `json:"error,omitempty" form:"error" query:"error" validate:"required"` Result protocol.TransactionResult `json:"result,omitempty" form:"result" query:"result" validate:"required"` // Received is the block when the transaction was first received. Received uint64 `json:"received,omitempty" form:"received" query:"received" validate:"required"` Produced *RecordRange[*TxIDRecord] `json:"produced,omitempty" form:"produced" query:"produced" validate:"required"` Cause *RecordRange[*TxIDRecord] `json:"cause,omitempty" form:"cause" query:"cause" validate:"required"` Signatures *RecordRange[*SignatureSetRecord] `json:"signatures,omitempty" form:"signatures" query:"signatures" validate:"required"` Historical bool `json:"historical,omitempty" form:"historical" query:"historical" validate:"required"` Sequence *messaging.SequencedMessage `json:"sequence,omitempty" form:"sequence" query:"sequence"` SourceReceipt *merkle.Receipt `json:"sourceReceipt,omitempty" form:"sourceReceipt" query:"sourceReceipt" validate:"required"` // contains filtered or unexported fields }
func MessageRecordAs ¶
func MessageRecordAs[T2 messaging.Message, T1 messaging.Message](v *MessageRecord[T1]) (*MessageRecord[T2], error)
func (*MessageRecord[T]) AsError ¶
func (r *MessageRecord[T]) AsError() error
func (*MessageRecord[T]) Copy ¶
func (v *MessageRecord[T]) Copy() *MessageRecord[T]
func (*MessageRecord[T]) CopyAsInterface ¶
func (v *MessageRecord[T]) CopyAsInterface() interface{}
func (*MessageRecord[T]) Equal ¶
func (v *MessageRecord[T]) Equal(u *MessageRecord[T]) bool
func (*MessageRecord[T]) IsValid ¶
func (v *MessageRecord[T]) IsValid() error
func (*MessageRecord[T]) MarshalBinary ¶
func (v *MessageRecord[T]) MarshalBinary() ([]byte, error)
func (*MessageRecord[T]) MarshalJSON ¶
func (v *MessageRecord[T]) MarshalJSON() ([]byte, error)
func (*MessageRecord[T]) RecordType ¶
func (*MessageRecord[T]) RecordType() RecordType
func (*MessageRecord[T]) StatusNo ¶
func (r *MessageRecord[T]) StatusNo() uint64
func (*MessageRecord[T]) UnmarshalBinary ¶
func (v *MessageRecord[T]) UnmarshalBinary(data []byte) error
func (*MessageRecord[T]) UnmarshalBinaryFrom ¶
func (v *MessageRecord[T]) UnmarshalBinaryFrom(rd io.Reader) error
func (*MessageRecord[T]) UnmarshalFieldsFrom ¶
func (v *MessageRecord[T]) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*MessageRecord[T]) UnmarshalJSON ¶
func (v *MessageRecord[T]) UnmarshalJSON(data []byte) error
type MessageRecordError ¶
type MessageRecordError[T messaging.Message] struct { *MessageRecord[T] }
func (MessageRecordError[T]) Error ¶
func (r MessageRecordError[T]) Error() string
type Metrics ¶
type Metrics struct { TPS float64 `json:"tps" form:"tps" query:"tps" validate:"required"` // contains filtered or unexported fields }
func (*Metrics) CopyAsInterface ¶
func (v *Metrics) CopyAsInterface() interface{}
func (*Metrics) MarshalBinary ¶
func (*Metrics) UnmarshalBinary ¶
type MetricsOptions ¶
type MetricsOptions struct { Partition string `json:"partition,omitempty" form:"partition" query:"partition" validate:"required"` // Span sets the width of the window in blocks. Span uint64 `json:"span,omitempty" form:"span" query:"span"` // contains filtered or unexported fields }
func (*MetricsOptions) Copy ¶
func (v *MetricsOptions) Copy() *MetricsOptions
func (*MetricsOptions) CopyAsInterface ¶
func (v *MetricsOptions) CopyAsInterface() interface{}
func (*MetricsOptions) Equal ¶
func (v *MetricsOptions) Equal(u *MetricsOptions) bool
func (*MetricsOptions) IsValid ¶
func (v *MetricsOptions) IsValid() error
func (*MetricsOptions) MarshalBinary ¶
func (v *MetricsOptions) MarshalBinary() ([]byte, error)
func (*MetricsOptions) UnmarshalBinary ¶
func (v *MetricsOptions) UnmarshalBinary(data []byte) error
func (*MetricsOptions) UnmarshalBinaryFrom ¶
func (v *MetricsOptions) UnmarshalBinaryFrom(rd io.Reader) error
type MetricsService ¶
type MetricsService interface { // Metrics returns network metrics such as transactions per second. Metrics(ctx context.Context, opts MetricsOptions) (*Metrics, error) }
type MinorBlockRecord ¶
type MinorBlockRecord struct { Index uint64 `json:"index,omitempty" form:"index" query:"index" validate:"required"` Time *time.Time `json:"time,omitempty" form:"time" query:"time" validate:"required"` Source *url.URL `json:"source,omitempty" form:"source" query:"source" validate:"required"` Entries *RecordRange[*ChainEntryRecord[Record]] `json:"entries,omitempty" form:"entries" query:"entries" validate:"required"` Anchored *RecordRange[*MinorBlockRecord] `json:"anchored,omitempty" form:"anchored" query:"anchored" validate:"required"` // contains filtered or unexported fields }
func (*MinorBlockRecord) Copy ¶
func (v *MinorBlockRecord) Copy() *MinorBlockRecord
func (*MinorBlockRecord) CopyAsInterface ¶
func (v *MinorBlockRecord) CopyAsInterface() interface{}
func (*MinorBlockRecord) Equal ¶
func (v *MinorBlockRecord) Equal(u *MinorBlockRecord) bool
func (*MinorBlockRecord) IsValid ¶
func (v *MinorBlockRecord) IsValid() error
func (*MinorBlockRecord) MarshalBinary ¶
func (v *MinorBlockRecord) MarshalBinary() ([]byte, error)
func (*MinorBlockRecord) MarshalJSON ¶
func (v *MinorBlockRecord) MarshalJSON() ([]byte, error)
func (*MinorBlockRecord) RecordType ¶
func (*MinorBlockRecord) RecordType() RecordType
func (*MinorBlockRecord) UnmarshalBinary ¶
func (v *MinorBlockRecord) UnmarshalBinary(data []byte) error
func (*MinorBlockRecord) UnmarshalBinaryFrom ¶
func (v *MinorBlockRecord) UnmarshalBinaryFrom(rd io.Reader) error
func (*MinorBlockRecord) UnmarshalFieldsFrom ¶
func (v *MinorBlockRecord) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*MinorBlockRecord) UnmarshalJSON ¶
func (v *MinorBlockRecord) UnmarshalJSON(data []byte) error
type NetworkService ¶
type NetworkService interface { // NetworkService returns the status of the network. NetworkStatus(ctx context.Context, opts NetworkStatusOptions) (*NetworkStatus, error) }
type NetworkStatus ¶
type NetworkStatus struct { Oracle *protocol.AcmeOracle `json:"oracle,omitempty" form:"oracle" query:"oracle" validate:"required"` Globals *protocol.NetworkGlobals `json:"globals,omitempty" form:"globals" query:"globals" validate:"required"` Network *protocol.NetworkDefinition `json:"network,omitempty" form:"network" query:"network" validate:"required"` Routing *protocol.RoutingTable `json:"routing,omitempty" form:"routing" query:"routing" validate:"required"` // ExecutorVersion is the active executor version. ExecutorVersion protocol.ExecutorVersion `json:"executorVersion,omitempty" form:"executorVersion" query:"executorVersion"` // contains filtered or unexported fields }
func (*NetworkStatus) Copy ¶
func (v *NetworkStatus) Copy() *NetworkStatus
func (*NetworkStatus) CopyAsInterface ¶
func (v *NetworkStatus) CopyAsInterface() interface{}
func (*NetworkStatus) Equal ¶
func (v *NetworkStatus) Equal(u *NetworkStatus) bool
func (*NetworkStatus) IsValid ¶
func (v *NetworkStatus) IsValid() error
func (*NetworkStatus) MarshalBinary ¶
func (v *NetworkStatus) MarshalBinary() ([]byte, error)
func (*NetworkStatus) UnmarshalBinary ¶
func (v *NetworkStatus) UnmarshalBinary(data []byte) error
func (*NetworkStatus) UnmarshalBinaryFrom ¶
func (v *NetworkStatus) UnmarshalBinaryFrom(rd io.Reader) error
type NetworkStatusOptions ¶
type NetworkStatusOptions struct { Partition string `json:"partition,omitempty" form:"partition" query:"partition" validate:"required"` // contains filtered or unexported fields }
func (*NetworkStatusOptions) Copy ¶
func (v *NetworkStatusOptions) Copy() *NetworkStatusOptions
func (*NetworkStatusOptions) CopyAsInterface ¶
func (v *NetworkStatusOptions) CopyAsInterface() interface{}
func (*NetworkStatusOptions) Equal ¶
func (v *NetworkStatusOptions) Equal(u *NetworkStatusOptions) bool
func (*NetworkStatusOptions) IsValid ¶
func (v *NetworkStatusOptions) IsValid() error
func (*NetworkStatusOptions) MarshalBinary ¶
func (v *NetworkStatusOptions) MarshalBinary() ([]byte, error)
func (*NetworkStatusOptions) UnmarshalBinary ¶
func (v *NetworkStatusOptions) UnmarshalBinary(data []byte) error
func (*NetworkStatusOptions) UnmarshalBinaryFrom ¶
func (v *NetworkStatusOptions) UnmarshalBinaryFrom(rd io.Reader) error
type NodeInfo ¶
type NodeInfo struct { PeerID p2p.PeerID `json:"peerID,omitempty" form:"peerID" query:"peerID" validate:"required"` Network string `json:"network,omitempty" form:"network" query:"network" validate:"required"` Services []*ServiceAddress `json:"services,omitempty" form:"services" query:"services" validate:"required"` // contains filtered or unexported fields }
func (*NodeInfo) CopyAsInterface ¶
func (v *NodeInfo) CopyAsInterface() interface{}
func (*NodeInfo) MarshalBinary ¶
func (*NodeInfo) MarshalJSON ¶
func (*NodeInfo) UnmarshalBinary ¶
func (*NodeInfo) UnmarshalJSON ¶
type NodeInfoOptions ¶
type NodeInfoOptions struct { PeerID p2p.PeerID `json:"peerID,omitempty" form:"peerID" query:"peerID" validate:"required"` // contains filtered or unexported fields }
func (*NodeInfoOptions) Copy ¶
func (v *NodeInfoOptions) Copy() *NodeInfoOptions
func (*NodeInfoOptions) CopyAsInterface ¶
func (v *NodeInfoOptions) CopyAsInterface() interface{}
func (*NodeInfoOptions) Equal ¶
func (v *NodeInfoOptions) Equal(u *NodeInfoOptions) bool
func (*NodeInfoOptions) IsValid ¶
func (v *NodeInfoOptions) IsValid() error
func (*NodeInfoOptions) MarshalBinary ¶
func (v *NodeInfoOptions) MarshalBinary() ([]byte, error)
func (*NodeInfoOptions) MarshalJSON ¶
func (v *NodeInfoOptions) MarshalJSON() ([]byte, error)
func (*NodeInfoOptions) UnmarshalBinary ¶
func (v *NodeInfoOptions) UnmarshalBinary(data []byte) error
func (*NodeInfoOptions) UnmarshalBinaryFrom ¶
func (v *NodeInfoOptions) UnmarshalBinaryFrom(rd io.Reader) error
func (*NodeInfoOptions) UnmarshalJSON ¶
func (v *NodeInfoOptions) UnmarshalJSON(data []byte) error
type NodeService ¶
type NodeService interface { // NodeInfo returns information about the network node. NodeInfo(ctx context.Context, opts NodeInfoOptions) (*NodeInfo, error) // FindService searches for nodes that provide the given service. FindService(ctx context.Context, opts FindServiceOptions) ([]*FindServiceResult, error) }
type PendingQuery ¶
type PendingQuery struct { Range *RangeOptions `json:"range,omitempty" form:"range" query:"range" validate:"required"` // contains filtered or unexported fields }
func (*PendingQuery) Copy ¶
func (v *PendingQuery) Copy() *PendingQuery
func (*PendingQuery) CopyAsInterface ¶
func (v *PendingQuery) CopyAsInterface() interface{}
func (*PendingQuery) Equal ¶
func (v *PendingQuery) Equal(u *PendingQuery) bool
func (*PendingQuery) IsValid ¶
func (v *PendingQuery) IsValid() error
func (*PendingQuery) MarshalBinary ¶
func (v *PendingQuery) MarshalBinary() ([]byte, error)
func (*PendingQuery) MarshalJSON ¶
func (v *PendingQuery) MarshalJSON() ([]byte, error)
func (*PendingQuery) QueryType ¶
func (*PendingQuery) QueryType() QueryType
func (*PendingQuery) UnmarshalBinary ¶
func (v *PendingQuery) UnmarshalBinary(data []byte) error
func (*PendingQuery) UnmarshalBinaryFrom ¶
func (v *PendingQuery) UnmarshalBinaryFrom(rd io.Reader) error
func (*PendingQuery) UnmarshalFieldsFrom ¶
func (v *PendingQuery) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*PendingQuery) UnmarshalJSON ¶
func (v *PendingQuery) UnmarshalJSON(data []byte) error
type PublicKeyHashSearchQuery ¶
type PublicKeyHashSearchQuery struct { PublicKeyHash []byte `json:"publicKeyHash,omitempty" form:"publicKeyHash" query:"publicKeyHash" validate:"required"` // contains filtered or unexported fields }
func (*PublicKeyHashSearchQuery) Copy ¶
func (v *PublicKeyHashSearchQuery) Copy() *PublicKeyHashSearchQuery
func (*PublicKeyHashSearchQuery) CopyAsInterface ¶
func (v *PublicKeyHashSearchQuery) CopyAsInterface() interface{}
func (*PublicKeyHashSearchQuery) Equal ¶
func (v *PublicKeyHashSearchQuery) Equal(u *PublicKeyHashSearchQuery) bool
func (*PublicKeyHashSearchQuery) IsValid ¶
func (v *PublicKeyHashSearchQuery) IsValid() error
func (*PublicKeyHashSearchQuery) MarshalBinary ¶
func (v *PublicKeyHashSearchQuery) MarshalBinary() ([]byte, error)
func (*PublicKeyHashSearchQuery) MarshalJSON ¶
func (v *PublicKeyHashSearchQuery) MarshalJSON() ([]byte, error)
func (*PublicKeyHashSearchQuery) QueryType ¶
func (*PublicKeyHashSearchQuery) QueryType() QueryType
func (*PublicKeyHashSearchQuery) UnmarshalBinary ¶
func (v *PublicKeyHashSearchQuery) UnmarshalBinary(data []byte) error
func (*PublicKeyHashSearchQuery) UnmarshalBinaryFrom ¶
func (v *PublicKeyHashSearchQuery) UnmarshalBinaryFrom(rd io.Reader) error
func (*PublicKeyHashSearchQuery) UnmarshalFieldsFrom ¶
func (v *PublicKeyHashSearchQuery) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*PublicKeyHashSearchQuery) UnmarshalJSON ¶
func (v *PublicKeyHashSearchQuery) UnmarshalJSON(data []byte) error
type PublicKeySearchQuery ¶
type PublicKeySearchQuery struct { PublicKey []byte `json:"publicKey,omitempty" form:"publicKey" query:"publicKey" validate:"required"` Type protocol.SignatureType `json:"type,omitempty" form:"type" query:"type" validate:"required"` // contains filtered or unexported fields }
func (*PublicKeySearchQuery) Copy ¶
func (v *PublicKeySearchQuery) Copy() *PublicKeySearchQuery
func (*PublicKeySearchQuery) CopyAsInterface ¶
func (v *PublicKeySearchQuery) CopyAsInterface() interface{}
func (*PublicKeySearchQuery) Equal ¶
func (v *PublicKeySearchQuery) Equal(u *PublicKeySearchQuery) bool
func (*PublicKeySearchQuery) IsValid ¶
func (v *PublicKeySearchQuery) IsValid() error
func (*PublicKeySearchQuery) MarshalBinary ¶
func (v *PublicKeySearchQuery) MarshalBinary() ([]byte, error)
func (*PublicKeySearchQuery) MarshalJSON ¶
func (v *PublicKeySearchQuery) MarshalJSON() ([]byte, error)
func (*PublicKeySearchQuery) QueryType ¶
func (*PublicKeySearchQuery) QueryType() QueryType
func (*PublicKeySearchQuery) UnmarshalBinary ¶
func (v *PublicKeySearchQuery) UnmarshalBinary(data []byte) error
func (*PublicKeySearchQuery) UnmarshalBinaryFrom ¶
func (v *PublicKeySearchQuery) UnmarshalBinaryFrom(rd io.Reader) error
func (*PublicKeySearchQuery) UnmarshalFieldsFrom ¶
func (v *PublicKeySearchQuery) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*PublicKeySearchQuery) UnmarshalJSON ¶
func (v *PublicKeySearchQuery) UnmarshalJSON(data []byte) error
type Querier2 ¶
type Querier2 struct {
Querier
}
func (Querier2) QueryAccount ¶
func (q Querier2) QueryAccount(ctx context.Context, account *url.URL, query *DefaultQuery) (*AccountRecord, error)
func (Querier2) QueryAccountAs ¶
func (q Querier2) QueryAccountAs(ctx context.Context, account *url.URL, query *DefaultQuery, target any) (*AccountRecord, error)
func (Querier2) QueryAccountChains ¶
func (q Querier2) QueryAccountChains(ctx context.Context, scope *url.URL, query *ChainQuery) (*RecordRange[*ChainRecord], error)
func (Querier2) QueryChain ¶
func (q Querier2) QueryChain(ctx context.Context, scope *url.URL, query *ChainQuery) (*ChainRecord, error)
func (Querier2) QueryChainEntries ¶
func (q Querier2) QueryChainEntries(ctx context.Context, scope *url.URL, query *ChainQuery) (*RecordRange[*ChainEntryRecord[Record]], error)
func (Querier2) QueryChainEntry ¶
func (q Querier2) QueryChainEntry(ctx context.Context, scope *url.URL, query *ChainQuery) (*ChainEntryRecord[Record], error)
func (Querier2) QueryDataEntries ¶
func (q Querier2) QueryDataEntries(ctx context.Context, scope *url.URL, query *DataQuery) (*RecordRange[*ChainEntryRecord[*MessageRecord[*messaging.TransactionMessage]]], error)
func (Querier2) QueryDataEntry ¶
func (q Querier2) QueryDataEntry(ctx context.Context, scope *url.URL, query *DataQuery) (*ChainEntryRecord[*MessageRecord[*messaging.TransactionMessage]], error)
func (Querier2) QueryDirectory ¶
func (q Querier2) QueryDirectory(ctx context.Context, scope *url.URL, query *DirectoryQuery) (*RecordRange[*AccountRecord], error)
func (Querier2) QueryDirectoryUrls ¶
func (q Querier2) QueryDirectoryUrls(ctx context.Context, scope *url.URL, query *DirectoryQuery) (*RecordRange[*UrlRecord], error)
func (Querier2) QueryIndexChainEntries ¶
func (q Querier2) QueryIndexChainEntries(ctx context.Context, scope *url.URL, query *ChainQuery) (*RecordRange[*ChainEntryRecord[*IndexEntryRecord]], error)
func (Querier2) QueryIndexChainEntry ¶
func (q Querier2) QueryIndexChainEntry(ctx context.Context, scope *url.URL, query *ChainQuery) (*ChainEntryRecord[*IndexEntryRecord], error)
func (Querier2) QueryMainChainEntries ¶
func (q Querier2) QueryMainChainEntries(ctx context.Context, scope *url.URL, query *ChainQuery) (*RecordRange[*ChainEntryRecord[*MessageRecord[*messaging.TransactionMessage]]], error)
func (Querier2) QueryMainChainEntry ¶
func (q Querier2) QueryMainChainEntry(ctx context.Context, scope *url.URL, query *ChainQuery) (*ChainEntryRecord[*MessageRecord[*messaging.TransactionMessage]], error)
func (Querier2) QueryMajorBlock ¶
func (q Querier2) QueryMajorBlock(ctx context.Context, scope *url.URL, query *BlockQuery) (*MajorBlockRecord, error)
func (Querier2) QueryMajorBlocks ¶
func (q Querier2) QueryMajorBlocks(ctx context.Context, scope *url.URL, query *BlockQuery) (*RecordRange[*MajorBlockRecord], error)
func (Querier2) QueryMessage ¶
func (q Querier2) QueryMessage(ctx context.Context, txid *url.TxID, query *DefaultQuery) (*MessageRecord[messaging.Message], error)
func (Querier2) QueryMinorBlock ¶
func (q Querier2) QueryMinorBlock(ctx context.Context, scope *url.URL, query *BlockQuery) (*MinorBlockRecord, error)
func (Querier2) QueryMinorBlocks ¶
func (q Querier2) QueryMinorBlocks(ctx context.Context, scope *url.URL, query *BlockQuery) (*RecordRange[*MinorBlockRecord], error)
func (Querier2) QueryPending ¶
func (q Querier2) QueryPending(ctx context.Context, scope *url.URL, query *PendingQuery) (*RecordRange[*MessageRecord[*messaging.TransactionMessage]], error)
func (Querier2) QueryPendingIds ¶
func (q Querier2) QueryPendingIds(ctx context.Context, scope *url.URL, query *PendingQuery) (*RecordRange[*TxIDRecord], error)
func (Querier2) QuerySignature ¶
func (q Querier2) QuerySignature(ctx context.Context, txid *url.TxID, query *DefaultQuery) (*MessageRecord[*messaging.SignatureMessage], error)
func (Querier2) QuerySignatureChainEntries ¶
func (q Querier2) QuerySignatureChainEntries(ctx context.Context, scope *url.URL, query *ChainQuery) (*RecordRange[*ChainEntryRecord[*MessageRecord[messaging.Message]]], error)
func (Querier2) QuerySignatureChainEntry ¶
func (q Querier2) QuerySignatureChainEntry(ctx context.Context, scope *url.URL, query *ChainQuery) (*ChainEntryRecord[*MessageRecord[messaging.Message]], error)
func (Querier2) QueryTransaction ¶
func (q Querier2) QueryTransaction(ctx context.Context, txid *url.TxID, query *DefaultQuery) (*MessageRecord[*messaging.TransactionMessage], error)
func (Querier2) QueryTransactionChains ¶
func (q Querier2) QueryTransactionChains(ctx context.Context, scope *url.TxID, query *ChainQuery) (*RecordRange[*ChainEntryRecord[Record]], error)
func (Querier2) SearchForAnchor ¶
func (q Querier2) SearchForAnchor(ctx context.Context, scope *url.URL, search *AnchorSearchQuery) (*RecordRange[*ChainEntryRecord[Record]], error)
func (Querier2) SearchForDelegate ¶
func (q Querier2) SearchForDelegate(ctx context.Context, scope *url.URL, search *DelegateSearchQuery) (*RecordRange[*KeyRecord], error)
func (Querier2) SearchForMessage ¶
func (q Querier2) SearchForMessage(ctx context.Context, hash [32]byte) (*RecordRange[*TxIDRecord], error)
func (Querier2) SearchForPublicKey ¶
func (q Querier2) SearchForPublicKey(ctx context.Context, scope *url.URL, search *PublicKeySearchQuery) (*RecordRange[*KeyRecord], error)
func (Querier2) SearchForPublicKeyHash ¶
func (q Querier2) SearchForPublicKeyHash(ctx context.Context, scope *url.URL, search *PublicKeyHashSearchQuery) (*RecordRange[*KeyRecord], error)
type Query ¶
type Query interface { encoding.UnionValue QueryType() QueryType // IsValid validates the query. IsValid() error }
Query is an API query.
func UnmarshalQuery ¶
UnmarshalQuery unmarshals a Query.
func UnmarshalQueryFrom ¶
UnmarshalQueryFrom unmarshals a Query.
func UnmarshalQueryJSON ¶
UnmarshalQueryJson unmarshals a Query.
type QueryType ¶
type QueryType uint64
QueryType is the type of a Query.
const QueryTypeAnchorSearch QueryType = 16
QueryTypeAnchorSearch .
const QueryTypeBlock QueryType = 5
QueryTypeBlock .
const QueryTypeChain QueryType = 1
QueryTypeChain .
const QueryTypeData QueryType = 2
QueryTypeData .
const QueryTypeDefault QueryType = 0
QueryTypeDefault .
const QueryTypeDelegateSearch QueryType = 19
QueryTypeDelegateSearch .
const QueryTypeDirectory QueryType = 3
QueryTypeDirectory .
const QueryTypeMessageHashSearch QueryType = 20
QueryTypeMessageHashSearch .
const QueryTypePending QueryType = 4
QueryTypePending .
const QueryTypePublicKeyHashSearch QueryType = 18
QueryTypePublicKeyHashSearch .
const QueryTypePublicKeySearch QueryType = 17
QueryTypePublicKeySearch .
func QueryTypeByName ¶
QueryTypeByName returns the named Query Type.
func (QueryType) GetEnumValue ¶
GetEnumValue returns the value of the Query Type
func (QueryType) MarshalJSON ¶
MarshalJSON marshals the Query Type to JSON as a string.
func (*QueryType) SetEnumValue ¶
SetEnumValue sets the value. SetEnumValue returns false if the value is invalid.
func (*QueryType) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Query Type from JSON as a string.
type RangeOptions ¶
type RangeOptions struct { // Start is the starting index. Start uint64 `json:"start,omitempty" form:"start" query:"start"` // Count is the number of requested results. Count *uint64 `json:"count,omitempty" form:"count" query:"count"` // Expand requests expanded results. Expand *bool `json:"expand,omitempty" form:"expand" query:"expand"` FromEnd bool `json:"fromEnd,omitempty" form:"fromEnd" query:"fromEnd"` // contains filtered or unexported fields }
func (*RangeOptions) Copy ¶
func (v *RangeOptions) Copy() *RangeOptions
func (*RangeOptions) CopyAsInterface ¶
func (v *RangeOptions) CopyAsInterface() interface{}
func (*RangeOptions) Equal ¶
func (v *RangeOptions) Equal(u *RangeOptions) bool
func (*RangeOptions) IsValid ¶
func (v *RangeOptions) IsValid() error
func (*RangeOptions) MarshalBinary ¶
func (v *RangeOptions) MarshalBinary() ([]byte, error)
func (*RangeOptions) UnmarshalBinary ¶
func (v *RangeOptions) UnmarshalBinary(data []byte) error
func (*RangeOptions) UnmarshalBinaryFrom ¶
func (v *RangeOptions) UnmarshalBinaryFrom(rd io.Reader) error
type Receipt ¶
type Receipt struct { merkle.Receipt LocalBlock uint64 `json:"localBlock,omitempty" form:"localBlock" query:"localBlock" validate:"required"` LocalBlockTime time.Time `json:"localBlockTime,omitempty" form:"localBlockTime" query:"localBlockTime" validate:"required"` MajorBlock uint64 `json:"majorBlock,omitempty" form:"majorBlock" query:"majorBlock" validate:"required"` // contains filtered or unexported fields }
func (*Receipt) CopyAsInterface ¶
func (v *Receipt) CopyAsInterface() interface{}
func (*Receipt) MarshalBinary ¶
func (*Receipt) MarshalJSON ¶
func (*Receipt) UnmarshalBinary ¶
func (*Receipt) UnmarshalJSON ¶
type Record ¶
type Record interface { encoding.UnionValue RecordType() RecordType }
Record is a record returned by a Query.
func NewRecord ¶
func NewRecord(typ RecordType) (Record, error)
NewRecord creates a new Record for the specified RecordType.
func UnmarshalRecord ¶
UnmarshalRecord unmarshals a Record.
func UnmarshalRecordFrom ¶
UnmarshalRecordFrom unmarshals a Record.
func UnmarshalRecordJSON ¶
UnmarshalRecordJson unmarshals a Record.
type RecordRange ¶
type RecordRange[T Record] struct { Records []T `json:"records,omitempty" form:"records" query:"records" validate:"required"` Start uint64 `json:"start" form:"start" query:"start" validate:"required"` Total uint64 `json:"total" form:"total" query:"total" validate:"required"` // contains filtered or unexported fields }
func MakeRange ¶
func MakeRange[V any, U Record](values []V, start, count uint64, fn func(V) (U, error)) (*RecordRange[U], error)
MakeRange creates a record range with at most max elements of v (unless max is zero), transformed by fn. MakeRange only returns an error if fn returns an error.
MakeRange will not return an error as long as fn does not.
func MapRange ¶
func MapRange[U, V Record](r *RecordRange[V], fn func(V) (U, error)) (*RecordRange[U], error)
func RecordRangeAs ¶
func RecordRangeAs[T2 Record, T1 Record](v *RecordRange[T1]) (*RecordRange[T2], error)
func (*RecordRange[T]) Copy ¶
func (v *RecordRange[T]) Copy() *RecordRange[T]
func (*RecordRange[T]) CopyAsInterface ¶
func (v *RecordRange[T]) CopyAsInterface() interface{}
func (*RecordRange[T]) Equal ¶
func (v *RecordRange[T]) Equal(u *RecordRange[T]) bool
func (*RecordRange[T]) IsValid ¶
func (v *RecordRange[T]) IsValid() error
func (*RecordRange[T]) MarshalBinary ¶
func (v *RecordRange[T]) MarshalBinary() ([]byte, error)
func (*RecordRange[T]) MarshalJSON ¶
func (v *RecordRange[T]) MarshalJSON() ([]byte, error)
func (*RecordRange[T]) RecordType ¶
func (*RecordRange[T]) RecordType() RecordType
func (*RecordRange[T]) UnmarshalBinary ¶
func (v *RecordRange[T]) UnmarshalBinary(data []byte) error
func (*RecordRange[T]) UnmarshalBinaryFrom ¶
func (v *RecordRange[T]) UnmarshalBinaryFrom(rd io.Reader) error
func (*RecordRange[T]) UnmarshalFieldsFrom ¶
func (v *RecordRange[T]) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*RecordRange[T]) UnmarshalJSON ¶
func (v *RecordRange[T]) UnmarshalJSON(data []byte) error
type RecordType ¶
type RecordType uint64
RecordType is the type of a Record.
const RecordTypeAccount RecordType = 1
RecordTypeAccount .
const RecordTypeChain RecordType = 2
RecordTypeChain .
const RecordTypeChainEntry RecordType = 3
RecordTypeChainEntry .
const RecordTypeIndexEntry RecordType = 131
RecordTypeIndexEntry .
const RecordTypeKey RecordType = 4
RecordTypeKey .
const RecordTypeMajorBlock RecordType = 33
RecordTypeMajorBlock .
const RecordTypeMessage RecordType = 16
RecordTypeMessage .
const RecordTypeMinorBlock RecordType = 32
RecordTypeMinorBlock .
const RecordTypeRange RecordType = 128
RecordTypeRange .
const RecordTypeSignatureSet RecordType = 17
RecordTypeSignatureSet .
const RecordTypeTxID RecordType = 130
RecordTypeTxID .
const RecordTypeUrl RecordType = 129
RecordTypeUrl .
func RecordTypeByName ¶
func RecordTypeByName(name string) (RecordType, bool)
RecordTypeByName returns the named Record Type.
func (RecordType) GetEnumValue ¶
func (v RecordType) GetEnumValue() uint64
GetEnumValue returns the value of the Record Type
func (RecordType) MarshalJSON ¶
func (v RecordType) MarshalJSON() ([]byte, error)
MarshalJSON marshals the Record Type to JSON as a string.
func (*RecordType) SetEnumValue ¶
func (v *RecordType) SetEnumValue(id uint64) bool
SetEnumValue sets the value. SetEnumValue returns false if the value is invalid.
func (RecordType) String ¶
func (v RecordType) String() string
String returns the name of the Record Type.
func (*RecordType) UnmarshalJSON ¶
func (v *RecordType) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshals the Record Type from JSON as a string.
type ServiceAddress ¶
type ServiceAddress struct { Type ServiceType `json:"type,omitempty" form:"type" query:"type" validate:"required"` Argument string `json:"argument,omitempty" form:"argument" query:"argument"` // contains filtered or unexported fields }
func ParseServiceAddress ¶
func ParseServiceAddress(s string) (*ServiceAddress, error)
ParseServiceAddress parses a string as a ServiceAddress. See ServiceAddress.String.
func (*ServiceAddress) Compare ¶
func (s *ServiceAddress) Compare(r *ServiceAddress) int
Compare this address to another.
func (*ServiceAddress) Copy ¶
func (s *ServiceAddress) Copy() *ServiceAddress
Copy returns a copy of the address.
func (*ServiceAddress) Equal ¶
func (s *ServiceAddress) Equal(r *ServiceAddress) bool
Equal returns true if the addresses are the same.
func (*ServiceAddress) IsValid ¶
func (v *ServiceAddress) IsValid() error
func (*ServiceAddress) MarshalBinary ¶
func (v *ServiceAddress) MarshalBinary() ([]byte, error)
func (*ServiceAddress) Multiaddr ¶
func (s *ServiceAddress) Multiaddr() multiaddr.Multiaddr
Multiaddr returns `/acc-svc/<type>[:<argument>]` as a multiaddr component.
func (*ServiceAddress) MultiaddrFor ¶
func (s *ServiceAddress) MultiaddrFor(network string) (multiaddr.Multiaddr, error)
MultiaddrFor returns `/acc/<network>/acc-svc/<type>[:<argument>]` as a multiaddr. MultiaddrFor returns an error if the network argument is not a valid UTF-8 string.
func (*ServiceAddress) String ¶
func (s *ServiceAddress) String() string
String returns {type}:{partition}, or {type} if the partition is empty.
func (*ServiceAddress) UnmarshalBinary ¶
func (v *ServiceAddress) UnmarshalBinary(data []byte) error
func (*ServiceAddress) UnmarshalBinaryFrom ¶
func (v *ServiceAddress) UnmarshalBinaryFrom(rd io.Reader) error
type ServiceType ¶
type ServiceType uint64
ServiceType is used to identify services.
const ServiceTypeConsensus ServiceType = 2
ServiceTypeConsensus is the type of ConsensusService.
const ServiceTypeEvent ServiceType = 6
ServiceTypeEvent is the type of EventService.
const ServiceTypeFaucet ServiceType = 9
ServiceTypeFaucet is the type of Faucet.
const ServiceTypeMetrics ServiceType = 4
ServiceTypeMetrics is the type of MetricsService.
const ServiceTypeNetwork ServiceType = 3
ServiceTypeNetwork is the type of NetworkService.
const ServiceTypeNode ServiceType = 1
ServiceTypeNode is the type of NodeService.
const ServiceTypeQuery ServiceType = 5
ServiceTypeQuery is the type of Querier.
const ServiceTypeSubmit ServiceType = 7
ServiceTypeSubmit is the type of Submitter.
const ServiceTypeUnknown ServiceType = 0
ServiceTypeUnknown indicates an unknown service type.
const ServiceTypeValidate ServiceType = 8
ServiceTypeValidate is the type of Validator.
func ServiceTypeByName ¶
func ServiceTypeByName(name string) (ServiceType, bool)
ServiceTypeByName returns the named Service Type.
func (ServiceType) Address ¶
func (s ServiceType) Address() *ServiceAddress
Address constructs a ServiceAddress for the service type.
func (ServiceType) AddressFor ¶
func (s ServiceType) AddressFor(arg string) *ServiceAddress
AddressFor constructs a ServiceAddress for the service type and given argument.
func (ServiceType) AddressForUrl ¶
func (s ServiceType) AddressForUrl(u *url.URL) *ServiceAddress
AddressFor constructs a ServiceAddress for the service type and given URL argument. The URL is encoded to avoid looking like a path.
The URL encoding leaves (latin) alphanumerics, dash, underscore, and dot untouched. Slashes are encoded as '!_' and all other characters are encoded as hex and prefixed with '!'.
func (ServiceType) GetEnumValue ¶
func (v ServiceType) GetEnumValue() uint64
GetEnumValue returns the value of the Service Type
func (ServiceType) MarshalJSON ¶
func (v ServiceType) MarshalJSON() ([]byte, error)
MarshalJSON marshals the Service Type to JSON as a string.
func (*ServiceType) SetEnumValue ¶
func (v *ServiceType) SetEnumValue(id uint64) bool
SetEnumValue sets the value. SetEnumValue returns false if the value is invalid.
func (ServiceType) String ¶
func (v ServiceType) String() string
String returns the name of the Service Type.
func (*ServiceType) UnmarshalJSON ¶
func (v *ServiceType) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshals the Service Type from JSON as a string.
type SignatureSetRecord ¶
type SignatureSetRecord struct { Account protocol.Account `json:"account,omitempty" form:"account" query:"account" validate:"required"` Signatures *RecordRange[*MessageRecord[messaging.Message]] `json:"signatures,omitempty" form:"signatures" query:"signatures" validate:"required"` // contains filtered or unexported fields }
func (*SignatureSetRecord) Copy ¶
func (v *SignatureSetRecord) Copy() *SignatureSetRecord
func (*SignatureSetRecord) CopyAsInterface ¶
func (v *SignatureSetRecord) CopyAsInterface() interface{}
func (*SignatureSetRecord) Equal ¶
func (v *SignatureSetRecord) Equal(u *SignatureSetRecord) bool
func (*SignatureSetRecord) IsValid ¶
func (v *SignatureSetRecord) IsValid() error
func (*SignatureSetRecord) MarshalBinary ¶
func (v *SignatureSetRecord) MarshalBinary() ([]byte, error)
func (*SignatureSetRecord) MarshalJSON ¶
func (v *SignatureSetRecord) MarshalJSON() ([]byte, error)
func (*SignatureSetRecord) RecordType ¶
func (*SignatureSetRecord) RecordType() RecordType
func (*SignatureSetRecord) UnmarshalBinary ¶
func (v *SignatureSetRecord) UnmarshalBinary(data []byte) error
func (*SignatureSetRecord) UnmarshalBinaryFrom ¶
func (v *SignatureSetRecord) UnmarshalBinaryFrom(rd io.Reader) error
func (*SignatureSetRecord) UnmarshalFieldsFrom ¶
func (v *SignatureSetRecord) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*SignatureSetRecord) UnmarshalJSON ¶
func (v *SignatureSetRecord) UnmarshalJSON(data []byte) error
type Submission ¶
type Submission struct { Status *protocol.TransactionStatus `json:"status,omitempty" form:"status" query:"status" validate:"required"` // Success indicates whether the envelope was successfully submitted. Success bool `json:"success,omitempty" form:"success" query:"success" validate:"required"` // Message is the message returned by the consensus engine. Message string `json:"message,omitempty" form:"message" query:"message" validate:"required"` // contains filtered or unexported fields }
func (*Submission) Copy ¶
func (v *Submission) Copy() *Submission
func (*Submission) CopyAsInterface ¶
func (v *Submission) CopyAsInterface() interface{}
func (*Submission) Equal ¶
func (v *Submission) Equal(u *Submission) bool
func (*Submission) IsValid ¶
func (v *Submission) IsValid() error
func (*Submission) MarshalBinary ¶
func (v *Submission) MarshalBinary() ([]byte, error)
func (*Submission) UnmarshalBinary ¶
func (v *Submission) UnmarshalBinary(data []byte) error
func (*Submission) UnmarshalBinaryFrom ¶
func (v *Submission) UnmarshalBinaryFrom(rd io.Reader) error
type SubmitOptions ¶
type SubmitOptions struct { // Verify verifies that the envelope is well formed before submitting (default yes). Verify *bool `json:"verify,omitempty" form:"verify" query:"verify"` // Wait waits until the envelope is accepted into a block or rejected (default yes). Wait *bool `json:"wait,omitempty" form:"wait" query:"wait"` // contains filtered or unexported fields }
func (*SubmitOptions) Copy ¶
func (v *SubmitOptions) Copy() *SubmitOptions
func (*SubmitOptions) CopyAsInterface ¶
func (v *SubmitOptions) CopyAsInterface() interface{}
func (*SubmitOptions) Equal ¶
func (v *SubmitOptions) Equal(u *SubmitOptions) bool
func (*SubmitOptions) IsValid ¶
func (v *SubmitOptions) IsValid() error
func (*SubmitOptions) MarshalBinary ¶
func (v *SubmitOptions) MarshalBinary() ([]byte, error)
func (*SubmitOptions) UnmarshalBinary ¶
func (v *SubmitOptions) UnmarshalBinary(data []byte) error
func (*SubmitOptions) UnmarshalBinaryFrom ¶
func (v *SubmitOptions) UnmarshalBinaryFrom(rd io.Reader) error
type Submitter ¶
type Submitter interface { // Submit submits an envelope for execution. Submit(ctx context.Context, envelope *messaging.Envelope, opts SubmitOptions) ([]*Submission, error) }
type SubscribeOptions ¶
type SubscribeOptions struct { Partition string `json:"partition,omitempty" form:"partition" query:"partition"` Account *url.URL `json:"account,omitempty" form:"account" query:"account"` // contains filtered or unexported fields }
func (*SubscribeOptions) Copy ¶
func (v *SubscribeOptions) Copy() *SubscribeOptions
func (*SubscribeOptions) CopyAsInterface ¶
func (v *SubscribeOptions) CopyAsInterface() interface{}
func (*SubscribeOptions) Equal ¶
func (v *SubscribeOptions) Equal(u *SubscribeOptions) bool
func (*SubscribeOptions) IsValid ¶
func (v *SubscribeOptions) IsValid() error
func (*SubscribeOptions) MarshalBinary ¶
func (v *SubscribeOptions) MarshalBinary() ([]byte, error)
func (*SubscribeOptions) UnmarshalBinary ¶
func (v *SubscribeOptions) UnmarshalBinary(data []byte) error
func (*SubscribeOptions) UnmarshalBinaryFrom ¶
func (v *SubscribeOptions) UnmarshalBinaryFrom(rd io.Reader) error
type TxIDRecord ¶
type TxIDRecord struct { Value *url.TxID `json:"value,omitempty" form:"value" query:"value" validate:"required"` // contains filtered or unexported fields }
func (*TxIDRecord) Copy ¶
func (v *TxIDRecord) Copy() *TxIDRecord
func (*TxIDRecord) CopyAsInterface ¶
func (v *TxIDRecord) CopyAsInterface() interface{}
func (*TxIDRecord) Equal ¶
func (v *TxIDRecord) Equal(u *TxIDRecord) bool
func (*TxIDRecord) IsValid ¶
func (v *TxIDRecord) IsValid() error
func (*TxIDRecord) MarshalBinary ¶
func (v *TxIDRecord) MarshalBinary() ([]byte, error)
func (*TxIDRecord) MarshalJSON ¶
func (v *TxIDRecord) MarshalJSON() ([]byte, error)
func (*TxIDRecord) RecordType ¶
func (*TxIDRecord) RecordType() RecordType
func (*TxIDRecord) UnmarshalBinary ¶
func (v *TxIDRecord) UnmarshalBinary(data []byte) error
func (*TxIDRecord) UnmarshalBinaryFrom ¶
func (v *TxIDRecord) UnmarshalBinaryFrom(rd io.Reader) error
func (*TxIDRecord) UnmarshalFieldsFrom ¶
func (v *TxIDRecord) UnmarshalFieldsFrom(reader *encoding.Reader) error
func (*TxIDRecord) UnmarshalJSON ¶
func (v *TxIDRecord) UnmarshalJSON(data []byte) error
type UrlRecord ¶
type UrlRecord struct { Value *url.URL `json:"value,omitempty" form:"value" query:"value" validate:"required"` // contains filtered or unexported fields }
func (*UrlRecord) CopyAsInterface ¶
func (v *UrlRecord) CopyAsInterface() interface{}
func (*UrlRecord) MarshalBinary ¶
func (*UrlRecord) MarshalJSON ¶
func (*UrlRecord) RecordType ¶
func (*UrlRecord) RecordType() RecordType
func (*UrlRecord) UnmarshalBinary ¶
func (*UrlRecord) UnmarshalFieldsFrom ¶
func (*UrlRecord) UnmarshalJSON ¶
type ValidateOptions ¶
type ValidateOptions struct { // Full fully validates the signatures and transactions (default yes). Full *bool `json:"full,omitempty" form:"full" query:"full"` // contains filtered or unexported fields }
func (*ValidateOptions) Copy ¶
func (v *ValidateOptions) Copy() *ValidateOptions
func (*ValidateOptions) CopyAsInterface ¶
func (v *ValidateOptions) CopyAsInterface() interface{}
func (*ValidateOptions) Equal ¶
func (v *ValidateOptions) Equal(u *ValidateOptions) bool
func (*ValidateOptions) IsValid ¶
func (v *ValidateOptions) IsValid() error
func (*ValidateOptions) MarshalBinary ¶
func (v *ValidateOptions) MarshalBinary() ([]byte, error)
func (*ValidateOptions) UnmarshalBinary ¶
func (v *ValidateOptions) UnmarshalBinary(data []byte) error
func (*ValidateOptions) UnmarshalBinaryFrom ¶
func (v *ValidateOptions) UnmarshalBinaryFrom(rd io.Reader) error
type Validator ¶
type Validator interface { // Validate checks if an envelope is expected to succeed. Validate(ctx context.Context, envelope *messaging.Envelope, opts ValidateOptions) ([]*Submission, error) }