rest

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 16 Imported by: 0

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 Faucet

type Faucet struct{ api.Faucet }

func (Faucet) Register

func (s Faucet) 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 Querier

type Querier struct{ api.Querier }

func (Querier) Register

func (s Querier) Register(r *httprouter.Router) error

type Service

type Service interface {
	Register(*httprouter.Router) error
}

type Submitter

type Submitter struct{ api.Submitter }

func (Submitter) Register

func (s Submitter) Register(r *httprouter.Router) error

type Validator

type Validator struct{ api.Validator }

func (Validator) Register

func (s Validator) Register(r *httprouter.Router) error

Jump to

Keyboard shortcuts

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