api

package
v0.0.0-...-e01acf0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleActions

func HandleActions(router *mux.Router, wrapper *negroni.Negroni, prefix string, routes []*Route)

HandleActions is used to handle all given routes

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func NewAPI

func NewAPI(cfg config.Config, svc services.Services, dao dao.DAO) *API

func (*API) GetAggBlocksCount

func (api *API) GetAggBlocksCount(w http.ResponseWriter, r *http.Request)

func (*API) GetAggBlocksDelay

func (api *API) GetAggBlocksDelay(w http.ResponseWriter, r *http.Request)

func (*API) GetAggBondedRatio

func (api *API) GetAggBondedRatio(w http.ResponseWriter, r *http.Request)

func (*API) GetAggDelegationsVolume

func (api *API) GetAggDelegationsVolume(w http.ResponseWriter, r *http.Request)

func (*API) GetAggOperationsCount

func (api *API) GetAggOperationsCount(w http.ResponseWriter, r *http.Request)

func (*API) GetAggTransactionsFee

func (api *API) GetAggTransactionsFee(w http.ResponseWriter, r *http.Request)

func (*API) GetAggTransfersVolume

func (api *API) GetAggTransfersVolume(w http.ResponseWriter, r *http.Request)

func (*API) GetAggUnbondingVolume

func (api *API) GetAggUnbondingVolume(w http.ResponseWriter, r *http.Request)

func (*API) GetAggUndelegationsVolume

func (api *API) GetAggUndelegationsVolume(w http.ResponseWriter, r *http.Request)

func (*API) GetAggUniqBlockValidators

func (api *API) GetAggUniqBlockValidators(w http.ResponseWriter, r *http.Request)

func (*API) GetAggValidators33Power

func (api *API) GetAggValidators33Power(w http.ResponseWriter, r *http.Request)

func (*API) GetAggWhaleAccounts

func (api *API) GetAggWhaleAccounts(w http.ResponseWriter, r *http.Request)

func (*API) GetAvgOperationsPerBlock

func (api *API) GetAvgOperationsPerBlock(w http.ResponseWriter, r *http.Request)

func (*API) GetFeeRanges

func (api *API) GetFeeRanges(w http.ResponseWriter, r *http.Request)

func (*API) GetHistoricalState

func (api *API) GetHistoricalState(w http.ResponseWriter, r *http.Request)

func (*API) GetMetaData

func (api *API) GetMetaData(w http.ResponseWriter, r *http.Request)

func (*API) GetMostJailedValidators

func (api *API) GetMostJailedValidators(w http.ResponseWriter, r *http.Request)

func (*API) GetNetworkStats

func (api *API) GetNetworkStats(w http.ResponseWriter, r *http.Request)

func (*API) GetProposalChartData

func (api *API) GetProposalChartData(w http.ResponseWriter, r *http.Request)

func (*API) GetProposalDeposits

func (api *API) GetProposalDeposits(w http.ResponseWriter, r *http.Request)

func (*API) GetProposalVotes

func (api *API) GetProposalVotes(w http.ResponseWriter, r *http.Request)

func (*API) GetProposals

func (api *API) GetProposals(w http.ResponseWriter, r *http.Request)

func (*API) GetStakingPie

func (api *API) GetStakingPie(w http.ResponseWriter, r *http.Request)

func (*API) GetSwaggerAPI

func (api *API) GetSwaggerAPI(w http.ResponseWriter, r *http.Request)

func (*API) GetTopProposedBlocksValidators

func (api *API) GetTopProposedBlocksValidators(w http.ResponseWriter, r *http.Request)

func (*API) GetValidator

func (api *API) GetValidator(w http.ResponseWriter, r *http.Request)

func (*API) GetValidatorBalance

func (api *API) GetValidatorBalance(w http.ResponseWriter, r *http.Request)

func (*API) GetValidatorBlocksStat

func (api *API) GetValidatorBlocksStat(w http.ResponseWriter, r *http.Request)

func (*API) GetValidatorDelegationsAgg

func (api *API) GetValidatorDelegationsAgg(w http.ResponseWriter, r *http.Request)

func (*API) GetValidatorDelegators

func (api *API) GetValidatorDelegators(w http.ResponseWriter, r *http.Request)

func (*API) GetValidatorDelegatorsAgg

func (api *API) GetValidatorDelegatorsAgg(w http.ResponseWriter, r *http.Request)

func (*API) GetValidators

func (api *API) GetValidators(w http.ResponseWriter, r *http.Request)

func (*API) GetValidatorsDelegatorsTotal

func (api *API) GetValidatorsDelegatorsTotal(w http.ResponseWriter, r *http.Request)

func (*API) Health

func (api *API) Health(w http.ResponseWriter, r *http.Request)

func (*API) Index

func (api *API) Index(w http.ResponseWriter, r *http.Request)

func (*API) Run

func (api *API) Run() error

func (*API) Stop

func (api *API) Stop() error

func (*API) Title

func (api *API) Title() string

type Route

type Route struct {
	Path       string
	Method     string
	Func       func(http.ResponseWriter, *http.Request)
	Middleware []negroni.HandlerFunc
}

Route stores an API route data

Jump to

Keyboard shortcuts

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