cosmos-sdk: Index | Files

package api

import ""


Package Files


type Server Uses

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

Server defines the server's API interface.

func New Uses

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

func (*Server) Close Uses

func (s *Server) Close() error

Close closes the API server.

func (*Server) Start Uses

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.

Package api imports 15 packages (graph) and is imported by 4 packages. Updated 2020-07-28. Refresh now. Tools for package owners.