Documentation ¶
Index ¶
- Constants
- Variables
- func CapStringLen(inp string) string
- func GetDataToParse(rpcInput RPCInput, dataSource int) (interface{}, error)
- func Parse(rpcInput RPCInput, blockParser spectypes.BlockParser, dataSource int) ([]interface{}, error)
- func ParseBlockFromParams(rpcInput RPCInput, blockParser spectypes.BlockParser) (int64, error)
- func ParseBlockFromReply(rpcInput RPCInput, blockParser spectypes.BlockParser) (int64, error)
- func ParseByArg(rpcInput RPCInput, input []string, dataSource int) ([]interface{}, error)
- func ParseCanonical(rpcInput RPCInput, input []string, dataSource int) ([]interface{}, error)
- func ParseDefault(rpcInput RPCInput, input []string, dataSource int) []interface{}
- func ParseDefaultBlockParameter(block string) (int64, error)
- func ParseDictionary(rpcInput RPCInput, input []string, dataSource int) ([]interface{}, error)
- func ParseDictionaryOrOrdered(rpcInput RPCInput, input []string, dataSource int) ([]interface{}, error)
- func ParseMessageResponse(rpcInput RPCInput, resultParser spectypes.BlockParser) ([]interface{}, error)
- type RPCInput
Constants ¶
View Source
const ( PARSE_PARAMS = 0 PARSE_RESULT = 1 )
Variables ¶
View Source
var ValueNotSetError = sdkerrors.New("Value Not Set ", 6662, "when trying to parse, the value that we attempted to parse did not exist")
Functions ¶
func CapStringLen ¶
func GetDataToParse ¶ added in v0.9.0
Move to RPCInput
func Parse ¶ added in v0.9.0
func Parse(rpcInput RPCInput, blockParser spectypes.BlockParser, dataSource int) ([]interface{}, error)
this function returns the block that was requested,
func ParseBlockFromParams ¶
func ParseBlockFromParams(rpcInput RPCInput, blockParser spectypes.BlockParser) (int64, error)
this function returns the block that was requested,
func ParseBlockFromReply ¶
func ParseBlockFromReply(rpcInput RPCInput, blockParser spectypes.BlockParser) (int64, error)
this function returns the block that was requested,
func ParseByArg ¶ added in v0.9.0
func ParseCanonical ¶ added in v0.9.0
expect input to be keys[a,b,c] and a canonical object such as
{ "a": { "b": { "c": "wanted result" } } }
should output an interface array with "wanted result" in first index 0
func ParseDefault ¶ added in v0.9.0
func ParseDictionary ¶ added in v0.9.0
ParseDictionary return a value of prop specified in args if exists in dictionary if not return an error
func ParseDictionaryOrOrdered ¶ added in v0.9.0
func ParseDictionaryOrOrdered(rpcInput RPCInput, input []string, dataSource int) ([]interface{}, error)
ParseDictionaryOrOrdered return a value of prop specified in args if exists in dictionary if not return an item from specified index
func ParseMessageResponse ¶ added in v0.9.0
func ParseMessageResponse(rpcInput RPCInput, resultParser spectypes.BlockParser) ([]interface{}, error)
this function returns the block that was requested,
Types ¶
Click to show internal directories.
Click to hide internal directories.