Documentation
¶
Index ¶
- Variables
- func ConfidenceFromProto(pbConfidence Confidence) (primitives.ConfidenceLevel, error)
- func ConvertExpressionFromProto(pbExpression *Expression, ...) (query.Expression, error)
- func ConvertLimitAndSortFromProto(limitAndSort *LimitAndSort) (query.LimitAndSort, error)
- func ConvertPrimitiveFromProto(protoPrimitive *Primitive, ...) (query.Expression, error)
- type And
- type Block
- type BooleanExpression
- func (*BooleanExpression) Descriptor() ([]byte, []int)deprecated
- func (x *BooleanExpression) GetBooleanOperator() BooleanOperator
- func (x *BooleanExpression) GetExpression() []*Expression
- func (*BooleanExpression) ProtoMessage()
- func (x *BooleanExpression) ProtoReflect() protoreflect.Message
- func (x *BooleanExpression) Reset()
- func (x *BooleanExpression) String() string
- type BooleanOperator
- func (BooleanOperator) Descriptor() protoreflect.EnumDescriptor
- func (x BooleanOperator) Enum() *BooleanOperator
- func (BooleanOperator) EnumDescriptor() ([]byte, []int)deprecated
- func (x BooleanOperator) Number() protoreflect.EnumNumber
- func (x BooleanOperator) String() string
- func (BooleanOperator) Type() protoreflect.EnumType
- type Comparator
- func (*Comparator) Descriptor() ([]byte, []int)deprecated
- func (x *Comparator) GetName() string
- func (x *Comparator) GetValueComparators() []*ValueComparator
- func (*Comparator) ProtoMessage()
- func (x *Comparator) ProtoReflect() protoreflect.Message
- func (x *Comparator) Reset()
- func (x *Comparator) String() string
- type ComparisonOperator
- func (ComparisonOperator) Descriptor() protoreflect.EnumDescriptor
- func (x ComparisonOperator) Enum() *ComparisonOperator
- func (ComparisonOperator) EnumDescriptor() ([]byte, []int)deprecated
- func (x ComparisonOperator) Number() protoreflect.EnumNumber
- func (x ComparisonOperator) String() string
- func (ComparisonOperator) Type() protoreflect.EnumType
- type Confidence
- type CursorDirection
- func (CursorDirection) Descriptor() protoreflect.EnumDescriptor
- func (x CursorDirection) Enum() *CursorDirection
- func (CursorDirection) EnumDescriptor() ([]byte, []int)deprecated
- func (x CursorDirection) Number() protoreflect.EnumNumber
- func (x CursorDirection) String() string
- func (CursorDirection) Type() protoreflect.EnumType
- type Expression
- func (*Expression) Descriptor() ([]byte, []int)deprecated
- func (x *Expression) GetBooleanExpression() *BooleanExpression
- func (x *Expression) GetEvaluator() isExpression_Evaluator
- func (x *Expression) GetPrimitive() *Primitive
- func (*Expression) ProtoMessage()
- func (x *Expression) ProtoReflect() protoreflect.Message
- func (x *Expression) Reset()
- func (x *Expression) String() string
- type Expression_BooleanExpression
- type Expression_Primitive
- type Limit
- func (*Limit) Descriptor() ([]byte, []int)deprecated
- func (x *Limit) GetCount() uint64
- func (x *Limit) GetCursor() string
- func (x *Limit) GetDirection() CursorDirection
- func (*Limit) ProtoMessage()
- func (x *Limit) ProtoReflect() protoreflect.Message
- func (x *Limit) Reset()
- func (x *Limit) String() string
- type LimitAndSort
- func (*LimitAndSort) Descriptor() ([]byte, []int)deprecated
- func (x *LimitAndSort) GetLimit() *Limit
- func (x *LimitAndSort) GetSortBy() []*SortBy
- func (*LimitAndSort) ProtoMessage()
- func (x *LimitAndSort) ProtoReflect() protoreflect.Message
- func (x *LimitAndSort) Reset()
- func (x *LimitAndSort) String() string
- type Or
- type Primitive
- func (*Primitive) Descriptor() ([]byte, []int)deprecated
- func (x *Primitive) GetBlock() *Block
- func (x *Primitive) GetComparator() *Comparator
- func (x *Primitive) GetConfidence() Confidence
- func (x *Primitive) GetPrimitive() isPrimitive_Primitive
- func (x *Primitive) GetTimestamp() *Timestamp
- func (x *Primitive) GetTxHash() *TxHash
- func (*Primitive) ProtoMessage()
- func (x *Primitive) ProtoReflect() protoreflect.Message
- func (x *Primitive) Reset()
- func (x *Primitive) String() string
- type Primitive_Block
- type Primitive_Comparator
- type Primitive_Confidence
- type Primitive_Timestamp
- type Primitive_TxHash
- type SortBy
- type SortDirection
- func (SortDirection) Descriptor() protoreflect.EnumDescriptor
- func (x SortDirection) Enum() *SortDirection
- func (SortDirection) EnumDescriptor() ([]byte, []int)deprecated
- func (x SortDirection) Number() protoreflect.EnumNumber
- func (x SortDirection) String() string
- func (SortDirection) Type() protoreflect.EnumType
- type SortType
- type Timestamp
- func (*Timestamp) Descriptor() ([]byte, []int)deprecated
- func (x *Timestamp) GetOperator() ComparisonOperator
- func (x *Timestamp) GetTimestamp() uint64
- func (*Timestamp) ProtoMessage()
- func (x *Timestamp) ProtoReflect() protoreflect.Message
- func (x *Timestamp) Reset()
- func (x *Timestamp) String() string
- type TxHash
- type ValueComparator
- func (*ValueComparator) Descriptor() ([]byte, []int)deprecated
- func (x *ValueComparator) GetOperator() ComparisonOperator
- func (x *ValueComparator) GetValue() *codec.VersionedBytes
- func (*ValueComparator) ProtoMessage()
- func (x *ValueComparator) ProtoReflect() protoreflect.Message
- func (x *ValueComparator) Reset()
- func (x *ValueComparator) String() string
- type ValueEncoder
Constants ¶
This section is empty.
Variables ¶
var ( ComparisonOperator_name = map[int32]string{ 0: "Eq", 1: "Neq", 2: "Gt", 3: "Lt", 4: "Gte", 5: "Lte", } ComparisonOperator_value = map[string]int32{ "Eq": 0, "Neq": 1, "Gt": 2, "Lt": 3, "Gte": 4, "Lte": 5, } )
Enum value maps for ComparisonOperator.
var ( BooleanOperator_name = map[int32]string{ 0: "AND", 1: "OR", } BooleanOperator_value = map[string]int32{ "AND": 0, "OR": 1, } )
Enum value maps for BooleanOperator.
var ( Confidence_name = map[int32]string{ 0: "Unconfirmed", 1: "Finalized", 2: "Safe", } Confidence_value = map[string]int32{ "Unconfirmed": 0, "Finalized": 1, "Safe": 2, } )
Enum value maps for Confidence.
var ( CursorDirection_name = map[int32]string{ 0: "Preceding", 1: "Following", } CursorDirection_value = map[string]int32{ "Preceding": 0, "Following": 1, } )
Enum value maps for CursorDirection.
var ( SortDirection_name = map[int32]string{ 0: "Asc", 1: "Desc", } SortDirection_value = map[string]int32{ "Asc": 0, "Desc": 1, } )
Enum value maps for SortDirection.
var ( SortType_name = map[int32]string{ 0: "SortTimestamp", 1: "SortBlock", 2: "SortSequence", } SortType_value = map[string]int32{ "SortTimestamp": 0, "SortBlock": 1, "SortSequence": 2, } )
Enum value maps for SortType.
var File_loop_chain_common_query_proto protoreflect.FileDescriptor
Functions ¶
func ConfidenceFromProto ¶
func ConfidenceFromProto(pbConfidence Confidence) (primitives.ConfidenceLevel, error)
func ConvertExpressionFromProto ¶
func ConvertExpressionFromProto( pbExpression *Expression, encodedTypeGetter func(comparatorName string, forEncoding bool) (any, error), ) (query.Expression, error)
func ConvertLimitAndSortFromProto ¶
func ConvertLimitAndSortFromProto(limitAndSort *LimitAndSort) (query.LimitAndSort, error)
Types ¶
type And ¶
type And struct {
Expr []*Expression `protobuf:"bytes,1,rep,name=expr,proto3" json:"expr,omitempty"`
// contains filtered or unexported fields
}
func (*And) Descriptor
deprecated
func (*And) GetExpr ¶
func (x *And) GetExpr() []*Expression
func (*And) ProtoMessage ¶
func (*And) ProtoMessage()
func (*And) ProtoReflect ¶
func (x *And) ProtoReflect() protoreflect.Message
type Block ¶
type Block struct {
BlockNumber string `protobuf:"bytes,1,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"`
Operator ComparisonOperator `protobuf:"varint,2,opt,name=operator,proto3,enum=loop.chain.common.ComparisonOperator" json:"operator,omitempty"`
// contains filtered or unexported fields
}
func (*Block) Descriptor
deprecated
func (*Block) GetBlockNumber ¶
func (*Block) GetOperator ¶
func (x *Block) GetOperator() ComparisonOperator
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
func (*Block) ProtoReflect ¶
func (x *Block) ProtoReflect() protoreflect.Message
type BooleanExpression ¶
type BooleanExpression struct {
BooleanOperator BooleanOperator `` /* 146-byte string literal not displayed */
Expression []*Expression `protobuf:"bytes,2,rep,name=expression,proto3" json:"expression,omitempty"`
// contains filtered or unexported fields
}
func (*BooleanExpression) Descriptor
deprecated
func (*BooleanExpression) Descriptor() ([]byte, []int)
Deprecated: Use BooleanExpression.ProtoReflect.Descriptor instead.
func (*BooleanExpression) GetBooleanOperator ¶
func (x *BooleanExpression) GetBooleanOperator() BooleanOperator
func (*BooleanExpression) GetExpression ¶
func (x *BooleanExpression) GetExpression() []*Expression
func (*BooleanExpression) ProtoMessage ¶
func (*BooleanExpression) ProtoMessage()
func (*BooleanExpression) ProtoReflect ¶
func (x *BooleanExpression) ProtoReflect() protoreflect.Message
func (*BooleanExpression) Reset ¶
func (x *BooleanExpression) Reset()
func (*BooleanExpression) String ¶
func (x *BooleanExpression) String() string
type BooleanOperator ¶
type BooleanOperator int32
const ( BooleanOperator_AND BooleanOperator = 0 BooleanOperator_OR BooleanOperator = 1 )
func (BooleanOperator) Descriptor ¶
func (BooleanOperator) Descriptor() protoreflect.EnumDescriptor
func (BooleanOperator) Enum ¶
func (x BooleanOperator) Enum() *BooleanOperator
func (BooleanOperator) EnumDescriptor
deprecated
func (BooleanOperator) EnumDescriptor() ([]byte, []int)
Deprecated: Use BooleanOperator.Descriptor instead.
func (BooleanOperator) Number ¶
func (x BooleanOperator) Number() protoreflect.EnumNumber
func (BooleanOperator) String ¶
func (x BooleanOperator) String() string
func (BooleanOperator) Type ¶
func (BooleanOperator) Type() protoreflect.EnumType
type Comparator ¶
type Comparator struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
ValueComparators []*ValueComparator `protobuf:"bytes,2,rep,name=value_comparators,json=valueComparators,proto3" json:"value_comparators,omitempty"`
// contains filtered or unexported fields
}
func (*Comparator) Descriptor
deprecated
func (*Comparator) Descriptor() ([]byte, []int)
Deprecated: Use Comparator.ProtoReflect.Descriptor instead.
func (*Comparator) GetName ¶
func (x *Comparator) GetName() string
func (*Comparator) GetValueComparators ¶
func (x *Comparator) GetValueComparators() []*ValueComparator
func (*Comparator) ProtoMessage ¶
func (*Comparator) ProtoMessage()
func (*Comparator) ProtoReflect ¶
func (x *Comparator) ProtoReflect() protoreflect.Message
func (*Comparator) Reset ¶
func (x *Comparator) Reset()
func (*Comparator) String ¶
func (x *Comparator) String() string
type ComparisonOperator ¶
type ComparisonOperator int32
const ( ComparisonOperator_Eq ComparisonOperator = 0 ComparisonOperator_Neq ComparisonOperator = 1 ComparisonOperator_Gt ComparisonOperator = 2 ComparisonOperator_Lt ComparisonOperator = 3 ComparisonOperator_Gte ComparisonOperator = 4 ComparisonOperator_Lte ComparisonOperator = 5 )
func (ComparisonOperator) Descriptor ¶
func (ComparisonOperator) Descriptor() protoreflect.EnumDescriptor
func (ComparisonOperator) Enum ¶
func (x ComparisonOperator) Enum() *ComparisonOperator
func (ComparisonOperator) EnumDescriptor
deprecated
func (ComparisonOperator) EnumDescriptor() ([]byte, []int)
Deprecated: Use ComparisonOperator.Descriptor instead.
func (ComparisonOperator) Number ¶
func (x ComparisonOperator) Number() protoreflect.EnumNumber
func (ComparisonOperator) String ¶
func (x ComparisonOperator) String() string
func (ComparisonOperator) Type ¶
func (ComparisonOperator) Type() protoreflect.EnumType
type Confidence ¶
type Confidence int32
const ( Confidence_Unconfirmed Confidence = 0 Confidence_Finalized Confidence = 1 Confidence_Safe Confidence = 2 )
func ConvertConfidenceToProto ¶
func ConvertConfidenceToProto(confidenceLevel primitives.ConfidenceLevel) (Confidence, error)
func (Confidence) Descriptor ¶
func (Confidence) Descriptor() protoreflect.EnumDescriptor
func (Confidence) Enum ¶
func (x Confidence) Enum() *Confidence
func (Confidence) EnumDescriptor
deprecated
func (Confidence) EnumDescriptor() ([]byte, []int)
Deprecated: Use Confidence.Descriptor instead.
func (Confidence) Number ¶
func (x Confidence) Number() protoreflect.EnumNumber
func (Confidence) String ¶
func (x Confidence) String() string
func (Confidence) Type ¶
func (Confidence) Type() protoreflect.EnumType
type CursorDirection ¶
type CursorDirection int32
CursorDirection defines the direction for cursor-based data fetching.
const ( CursorDirection_Preceding CursorDirection = 0 CursorDirection_Following CursorDirection = 1 )
func (CursorDirection) Descriptor ¶
func (CursorDirection) Descriptor() protoreflect.EnumDescriptor
func (CursorDirection) Enum ¶
func (x CursorDirection) Enum() *CursorDirection
func (CursorDirection) EnumDescriptor
deprecated
func (CursorDirection) EnumDescriptor() ([]byte, []int)
Deprecated: Use CursorDirection.Descriptor instead.
func (CursorDirection) Number ¶
func (x CursorDirection) Number() protoreflect.EnumNumber
func (CursorDirection) String ¶
func (x CursorDirection) String() string
func (CursorDirection) Type ¶
func (CursorDirection) Type() protoreflect.EnumType
type Expression ¶
type Expression struct {
// Types that are valid to be assigned to Evaluator:
//
// *Expression_Primitive
// *Expression_BooleanExpression
Evaluator isExpression_Evaluator `protobuf_oneof:"evaluator"`
// contains filtered or unexported fields
}
Expression encapsulates a single unit of filtering logic, which can be a common blockchain primitive or a composite of boolean expressions. This allows for both simple and more complex nested expressions.
func ConvertExpressionToProto ¶
func ConvertExpressionToProto(expression query.Expression, encodeValue ValueEncoder) (*Expression, error)
func (*Expression) Descriptor
deprecated
func (*Expression) Descriptor() ([]byte, []int)
Deprecated: Use Expression.ProtoReflect.Descriptor instead.
func (*Expression) GetBooleanExpression ¶
func (x *Expression) GetBooleanExpression() *BooleanExpression
func (*Expression) GetEvaluator ¶
func (x *Expression) GetEvaluator() isExpression_Evaluator
func (*Expression) GetPrimitive ¶
func (x *Expression) GetPrimitive() *Primitive
func (*Expression) ProtoMessage ¶
func (*Expression) ProtoMessage()
func (*Expression) ProtoReflect ¶
func (x *Expression) ProtoReflect() protoreflect.Message
func (*Expression) Reset ¶
func (x *Expression) Reset()
func (*Expression) String ¶
func (x *Expression) String() string
type Expression_BooleanExpression ¶
type Expression_BooleanExpression struct {
BooleanExpression *BooleanExpression `protobuf:"bytes,2,opt,name=boolean_expression,json=booleanExpression,proto3,oneof"`
}
type Expression_Primitive ¶
type Expression_Primitive struct {
Primitive *Primitive `protobuf:"bytes,1,opt,name=primitive,proto3,oneof"`
}
type Limit ¶
type Limit struct {
Cursor *string `protobuf:"bytes,1,opt,name=cursor,proto3,oneof" json:"cursor,omitempty"`
Direction *CursorDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=loop.chain.common.CursorDirection,oneof" json:"direction,omitempty"`
Count uint64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
// contains filtered or unexported fields
}
Limit defines a structure for limiting the results of a query, including optional cursor-based pagination.
func (*Limit) Descriptor
deprecated
func (*Limit) GetDirection ¶
func (x *Limit) GetDirection() CursorDirection
func (*Limit) ProtoMessage ¶
func (*Limit) ProtoMessage()
func (*Limit) ProtoReflect ¶
func (x *Limit) ProtoReflect() protoreflect.Message
type LimitAndSort ¶
type LimitAndSort struct {
SortBy []*SortBy `protobuf:"bytes,1,rep,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` // A list of sorting criteria.
Limit *Limit `protobuf:"bytes,2,opt,name=limit,proto3" json:"limit,omitempty"` // Pagination limit and direction.
// contains filtered or unexported fields
}
LimitAndSort combines sorting criteria with pagination limits.
func ConvertLimitAndSortToProto ¶
func ConvertLimitAndSortToProto(limitAndSort query.LimitAndSort) (*LimitAndSort, error)
func (*LimitAndSort) Descriptor
deprecated
func (*LimitAndSort) Descriptor() ([]byte, []int)
Deprecated: Use LimitAndSort.ProtoReflect.Descriptor instead.
func (*LimitAndSort) GetLimit ¶
func (x *LimitAndSort) GetLimit() *Limit
func (*LimitAndSort) GetSortBy ¶
func (x *LimitAndSort) GetSortBy() []*SortBy
func (*LimitAndSort) ProtoMessage ¶
func (*LimitAndSort) ProtoMessage()
func (*LimitAndSort) ProtoReflect ¶
func (x *LimitAndSort) ProtoReflect() protoreflect.Message
func (*LimitAndSort) Reset ¶
func (x *LimitAndSort) Reset()
func (*LimitAndSort) String ¶
func (x *LimitAndSort) String() string
type Or ¶
type Or struct {
Expr []*Expression `protobuf:"bytes,1,rep,name=expr,proto3" json:"expr,omitempty"`
// contains filtered or unexported fields
}
func (*Or) Descriptor
deprecated
func (*Or) GetExpr ¶
func (x *Or) GetExpr() []*Expression
func (*Or) ProtoMessage ¶
func (*Or) ProtoMessage()
func (*Or) ProtoReflect ¶
func (x *Or) ProtoReflect() protoreflect.Message
type Primitive ¶
type Primitive struct {
// Types that are valid to be assigned to Primitive:
//
// *Primitive_Comparator
// *Primitive_Block
// *Primitive_Confidence
// *Primitive_Timestamp
// *Primitive_TxHash
Primitive isPrimitive_Primitive `protobuf_oneof:"primitive"`
// contains filtered or unexported fields
}
Primitive defines the basic building blocks for filter conditions based around fundamental blockchain concepts.
func ConvertPrimitiveToProto ¶
func ConvertPrimitiveToProto(primitive primitives.Primitive, encodeValue ValueEncoder) (*Primitive, error)
func (*Primitive) Descriptor
deprecated
func (*Primitive) GetComparator ¶
func (x *Primitive) GetComparator() *Comparator
func (*Primitive) GetConfidence ¶
func (x *Primitive) GetConfidence() Confidence
func (*Primitive) GetPrimitive ¶
func (x *Primitive) GetPrimitive() isPrimitive_Primitive
func (*Primitive) GetTimestamp ¶
func (*Primitive) ProtoMessage ¶
func (*Primitive) ProtoMessage()
func (*Primitive) ProtoReflect ¶
func (x *Primitive) ProtoReflect() protoreflect.Message
type Primitive_Block ¶
type Primitive_Block struct {
Block *Block `protobuf:"bytes,2,opt,name=block,proto3,oneof"`
}
type Primitive_Comparator ¶
type Primitive_Comparator struct {
Comparator *Comparator `protobuf:"bytes,1,opt,name=comparator,proto3,oneof"`
}
type Primitive_Confidence ¶
type Primitive_Confidence struct {
Confidence Confidence `protobuf:"varint,3,opt,name=confidence,proto3,enum=loop.chain.common.Confidence,oneof"`
}
type Primitive_Timestamp ¶
type Primitive_Timestamp struct {
Timestamp *Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3,oneof"`
}
type Primitive_TxHash ¶
type Primitive_TxHash struct {
TxHash *TxHash `protobuf:"bytes,5,opt,name=tx_hash,json=txHash,proto3,oneof"`
}
type SortBy ¶
type SortBy struct {
SortType SortType `protobuf:"varint,1,opt,name=sort_type,json=sortType,proto3,enum=loop.chain.common.SortType" json:"sort_type,omitempty"`
Direction SortDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=loop.chain.common.SortDirection" json:"direction,omitempty"`
// contains filtered or unexported fields
}
func (*SortBy) Descriptor
deprecated
func (*SortBy) GetDirection ¶
func (x *SortBy) GetDirection() SortDirection
func (*SortBy) GetSortType ¶
func (*SortBy) ProtoMessage ¶
func (*SortBy) ProtoMessage()
func (*SortBy) ProtoReflect ¶
func (x *SortBy) ProtoReflect() protoreflect.Message
type SortDirection ¶
type SortDirection int32
const ( SortDirection_Asc SortDirection = 0 SortDirection_Desc SortDirection = 1 )
func (SortDirection) Descriptor ¶
func (SortDirection) Descriptor() protoreflect.EnumDescriptor
func (SortDirection) Enum ¶
func (x SortDirection) Enum() *SortDirection
func (SortDirection) EnumDescriptor
deprecated
func (SortDirection) EnumDescriptor() ([]byte, []int)
Deprecated: Use SortDirection.Descriptor instead.
func (SortDirection) Number ¶
func (x SortDirection) Number() protoreflect.EnumNumber
func (SortDirection) String ¶
func (x SortDirection) String() string
func (SortDirection) Type ¶
func (SortDirection) Type() protoreflect.EnumType
type SortType ¶
type SortType int32
func (SortType) Descriptor ¶
func (SortType) Descriptor() protoreflect.EnumDescriptor
func (SortType) EnumDescriptor
deprecated
func (SortType) Number ¶
func (x SortType) Number() protoreflect.EnumNumber
func (SortType) Type ¶
func (SortType) Type() protoreflect.EnumType
type Timestamp ¶
type Timestamp struct {
Timestamp uint64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
Operator ComparisonOperator `protobuf:"varint,2,opt,name=operator,proto3,enum=loop.chain.common.ComparisonOperator" json:"operator,omitempty"`
// contains filtered or unexported fields
}
func (*Timestamp) Descriptor
deprecated
func (*Timestamp) GetOperator ¶
func (x *Timestamp) GetOperator() ComparisonOperator
func (*Timestamp) GetTimestamp ¶
func (*Timestamp) ProtoMessage ¶
func (*Timestamp) ProtoMessage()
func (*Timestamp) ProtoReflect ¶
func (x *Timestamp) ProtoReflect() protoreflect.Message
type TxHash ¶
type TxHash struct {
TxHash string `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
// contains filtered or unexported fields
}
func (*TxHash) Descriptor
deprecated
func (*TxHash) ProtoMessage ¶
func (*TxHash) ProtoMessage()
func (*TxHash) ProtoReflect ¶
func (x *TxHash) ProtoReflect() protoreflect.Message
type ValueComparator ¶
type ValueComparator struct {
Value *codec.VersionedBytes `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
Operator ComparisonOperator `protobuf:"varint,2,opt,name=operator,proto3,enum=loop.chain.common.ComparisonOperator" json:"operator,omitempty"`
// contains filtered or unexported fields
}
func (*ValueComparator) Descriptor
deprecated
func (*ValueComparator) Descriptor() ([]byte, []int)
Deprecated: Use ValueComparator.ProtoReflect.Descriptor instead.
func (*ValueComparator) GetOperator ¶
func (x *ValueComparator) GetOperator() ComparisonOperator
func (*ValueComparator) GetValue ¶
func (x *ValueComparator) GetValue() *codec.VersionedBytes
func (*ValueComparator) ProtoMessage ¶
func (*ValueComparator) ProtoMessage()
func (*ValueComparator) ProtoReflect ¶
func (x *ValueComparator) ProtoReflect() protoreflect.Message
func (*ValueComparator) Reset ¶
func (x *ValueComparator) Reset()
func (*ValueComparator) String ¶
func (x *ValueComparator) String() string
type ValueEncoder ¶
type ValueEncoder func(value any) (*codec.VersionedBytes, error)