lcd

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2018 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CLIVersionRegisterRoutes

func CLIVersionRegisterRoutes(cdc *wire.Codec, r *mux.Router)

func NodeVersionRegisterRoutes

func NodeVersionRegisterRoutes(cdc *wire.Codec, r *mux.Router)

connected node version REST handler endpoint

func ServeCommand

func ServeCommand(cdc *wire.Codec) *cobra.Command

ServeCommand will generate a long-running rest server (aka Light Client Daemon) that exposes functionality similar to the cli, but over rest

Types

type HTTPHandler

type HTTPHandler interface {
	RouterRegister(r *mux.Route)
	ParseRequest(req *http.Request) (interface{}, error)
}

type ReqNodeVersion

type ReqNodeVersion struct {
	CliCtx context.CLIContext
}

func NewReqNodeVersion

func NewReqNodeVersion(r *http.Request) *ReqNodeVersion

type ResultCLIVersion

type ResultCLIVersion struct {
	Version string `json:"version"`
}

func CLIVersion

func CLIVersion() (*ResultCLIVersion, error)

type ResultNodeVersion

type ResultNodeVersion struct {
	Version string `json:"version"`
}

func NodeVersion

func NodeVersion(rnv *ReqNodeVersion) (*ResultNodeVersion, error)

Directories

Path Synopsis
Package pkg comments for pkg lib lib ...
Package pkg comments for pkg lib lib ...

Jump to

Keyboard shortcuts

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