Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServeCommand ¶
func ServeCommand(cdc *codec.Codec, registerRoutesFn func(*RestServer)) *cobra.Command
ServeCommand will start the application REST service as a blocking process. It takes a codec to create a RestServer object and a function to register all necessary routes.
func StartRestServer ¶
Types ¶
type RestServer ¶
type RestServer struct { Mux *mux.Router CliCtx context.CLIContext KeyBase keybase.Keybase Cdc *codec.Codec // contains filtered or unexported fields }
RestServer represents the Light Client Rest server
func NewRestServer ¶
func NewRestServer(cdc *codec.Codec, tmNode *node.Node) *RestServer
NewRestServer creates a new rest server instance
func (*RestServer) Logger ¶
func (rs *RestServer) Logger() log.Logger
Click to show internal directories.
Click to hide internal directories.