utils

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryRequestByTxQuery

func QueryRequestByTxQuery(cliCtx context.CLIContext, queryRoute string, params types.QueryRequestParams) (
	request types.Request, err error)

QueryRequestByTxQuery will query for a single request via a direct txs tags query.

func QueryRequestContext

func QueryRequestContext(cliCtx context.CLIContext, queryRoute string, params types.QueryRequestContextParams) (
	requestContext types.RequestContext, err error)

QueryRequestContext queries a single request context

func QueryRequestContextByTxQuery

func QueryRequestContextByTxQuery(cliCtx context.CLIContext, queryRoute string, params types.QueryRequestContextParams) (
	requestContext types.RequestContext, err error)

QueryRequestContextByTxQuery will query for a single request context via a direct txs tags query.

func QueryRequestsByBinding

func QueryRequestsByBinding(cliCtx context.CLIContext, queryRoute string, serviceName string, provider sdk.AccAddress) ([]types.Request, int64, error)

QueryRequestsByBinding queries active requests by the service binding

func QueryRequestsByReqCtx

func QueryRequestsByReqCtx(cliCtx context.CLIContext, queryRoute, reqCtxIDStr, batchCounterStr string) ([]types.Request, int64, error)

QueryRequestsByReqCtx queries active requests by the request context ID

func QueryResponseByTxQuery

func QueryResponseByTxQuery(cliCtx context.CLIContext, queryRoute string, params types.QueryResponseParams) (
	response types.Response, err error)

QueryResponseByTxQuery will query for a single request via a direct txs tags query.

Types

type SchemaType

type SchemaType string

SchemaType defines the schema type

func (SchemaType) MarshalJSON

func (schema SchemaType) MarshalJSON() ([]byte, error)

MarshalJSON returns the JSON representation

func (SchemaType) MarshalYAML

func (schema SchemaType) MarshalYAML() (interface{}, error)

MarshalYAML returns the YAML representation

func (SchemaType) String

func (schema SchemaType) String() string

String implements fmt.Stringer

func (*SchemaType) UnmarshalJSON

func (schema *SchemaType) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals raw JSON bytes into a SchemaType.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL