Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Server)
Option is a function that configures the Server.
func WithListener ¶
WithListener is an option that sets the listener.
type Server ¶
type Server struct { *service.BaseService // contains filtered or unexported fields }
Server handles HTTP and JSON-RPC requests, exposing Tendermint-compatible API.
func NewServer ¶
func NewServer(node *node.Node, config *config.RPCConfig, logger log.Logger, options ...Option) *Server
NewServer creates new instance of Server with given configuration.
func (*Server) Client ¶
Client returns a Tendermint-compatible rpc Client instance.
This method is called in cosmos-sdk.
func (*Server) OnStart ¶
OnStart is called when Server is started (see service.BaseService for details).
func (*Server) OnStop ¶
func (s *Server) OnStop()
OnStop is called when Server is stopped (see service.BaseService for details).
func (*Server) PubSubServer ¶
Click to show internal directories.
Click to hide internal directories.