api

package
v0.0.0-...-7c30539 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Router    *mux.Router
	ClientCtx client.Context
	// contains filtered or unexported fields
}

Server defines the server's API interface.

func New

func New(clientCtx client.Context, logger log.Logger) *Server

func (*Server) Close

func (s *Server) Close() error

Close closes the API server.

func (*Server) Start

func (s *Server) Start(cfg config.Config) error

Start starts the API server. Internally, the API server leverages Tendermint's JSON RPC server. Configuration options are provided via config.APIConfig and are delegated to the Tendermint JSON RPC server. The process is non-blocking, so an external signal handler must be used.

Jump to

Keyboard shortcuts

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