json

package
v0.5.0-zeta Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHTTPHandler

func GetHTTPHandler(l *client.Client, logger log.Logger) (http.Handler, error)

GetHTTPHandler returns handler configured to serve Tendermint-compatible RPC.

Types

type ABCIInfoArgs

type ABCIInfoArgs struct {
}

ABCIInfoArgs defines args for ABCI Info method.

type ABCIQueryArgs

type ABCIQueryArgs struct {
	Path   string         `json:"path"`
	Data   bytes.HexBytes `json:"data"`
	Height StrInt64       `json:"height"`
	Prove  bool           `json:"prove"`
}

ABCIQueryArgs defines args for ABCI Query method.

type StrInt

type StrInt int

StrInt is an proper int or quoted "int"

func (*StrInt) UnmarshalJSON

func (s *StrInt) UnmarshalJSON(b []byte) error

UnmarshalJSON parses JSON (int or int qouted as string) into StrInt

type StrInt64

type StrInt64 int64

StrInt64 is an proper int64 or quoted "int64"

func (*StrInt64) UnmarshalJSON

func (s *StrInt64) UnmarshalJSON(b []byte) error

UnmarshalJSON parses JSON (int or int qouted as string) into StrInt64

Jump to

Keyboard shortcuts

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