server

package
v0.3.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: GPL-3.0 Imports: 25 Imported by: 0

README

Installation

  1. go get github.com/rakyll/statik

Steps to follow

  1. cd maticnetwork/heimdall/server
  2. Update swagger.yaml file inside swagger-ui directory
  3. cd maticnetwork/heimdall/server && statik -src=./swagger-ui
  4. cd maticnetwork/heimdall && make build
  5. cd maticnetwork/heimdall && make run-server

Visit http://localhost:1317/swagger-ui/

Reference

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecorateWithRestFlags added in v0.3.2

func DecorateWithRestFlags(cmd *cobra.Command)

function is called whenever is the reste server flags has to be added to command

func RegisterRoutes

func RegisterRoutes(ctx client.CLIContext, mux *mux.Router)

RegisterRoutes register routes of all modules

func ServeCommands

func ServeCommands(shutdownCtx ctx.Context, cdc *codec.Codec, registerRoutesFn func(ctx client.CLIContext, mux *mux.Router)) *cobra.Command

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

func StartRestServer added in v0.3.2

func StartRestServer(mainCtx ctx.Context, cdc *codec.Codec, registerRoutesFn func(ctx client.CLIContext, mux *mux.Router), restCh chan struct{}) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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