Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LookupFieldByTag ¶
func LookupFieldByTag(tag string, input *sdk.SignedTxnWithAD) (interface{}, error)
LookupFieldByTag takes a tag and associated SignedTxnWithAD and returns the value referenced by the tag. An error is returned if the tag does not exist
func ValidFieldOperation ¶
ValidFieldOperation returns true if the input is a valid operation
Types ¶
type Filter ¶
Filter an object that combines field searches with a boolean operator
func (Filter) SearchAndFilter ¶
func (f Filter) SearchAndFilter(payset []sdk.SignedTxnInBlock) ([]sdk.SignedTxnInBlock, error)
SearchAndFilter searches through the block data and applies the operation to the results
type Searcher ¶
type Searcher struct { Exp expression.Expression Tag string SearchInner bool }
Searcher searches the struct with an expression
func MakeFieldSearcher ¶
func MakeFieldSearcher(e expression.Expression, expressionType expression.Type, tag string, searchInner bool) (*Searcher, error)
MakeFieldSearcher will check that the field exists and that it contains the necessary "conversion" function TODO: Remove expressionType. It is validated when the expression is created.
Click to show internal directories.
Click to hide internal directories.