Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func NewHandler(services ...Service) (*httprouter.Router, error)
Types ¶
type ConsensusService ¶
type ConsensusService struct{ api.ConsensusService }
func (ConsensusService) Register ¶
func (s ConsensusService) Register(r *httprouter.Router) error
type MetricsService ¶
type MetricsService struct{ api.MetricsService }
func (MetricsService) Register ¶
func (s MetricsService) Register(r *httprouter.Router) error
type NetworkService ¶
type NetworkService struct{ api.NetworkService }
func (NetworkService) Register ¶
func (s NetworkService) Register(r *httprouter.Router) error
type NodeService ¶
type NodeService struct{ api.NodeService }
func (NodeService) Register ¶
func (s NodeService) Register(r *httprouter.Router) error
type Service ¶
type Service interface {
Register(*httprouter.Router) error
}
Click to show internal directories.
Click to hide internal directories.