usecase

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdHandlers

type CmdHandlers struct {
	RunIndexer types.CmdHandler
}

func NewCmdHandlers

func NewCmdHandlers(cfg *config.Config, db *store.Store, c *client.Client) *CmdHandlers

type HttpHandlers

type HttpHandlers struct {
	Health                          types.HttpHandler
	GetBlockTimes                   types.HttpHandler
	GetBlockTimesForInterval        types.HttpHandler
	GetBlockByHeight                types.HttpHandler
	GetAccountByPublicKey           types.HttpHandler
	GetDebondingDelegationsByHeight types.HttpHandler
	GetDelegationsByHeight          types.HttpHandler
	GetStakingDetailsByHeight       types.HttpHandler
	GetMostRecentHeight             types.HttpHandler
	GetTransactionsByHeight         types.HttpHandler
	GetValidatorsByHeight           types.HttpHandler
	GetValidatorByEntityUid         types.HttpHandler
	GetValidatorUptime              types.HttpHandler
	GetValidatorShares              types.HttpHandler
	GetValidatorVotingPower         types.HttpHandler
	GetSharesForAllValidators       types.HttpHandler
	GetVotingPowerForAllValidators  types.HttpHandler
	GetValidatorsForMinHeight       types.HttpHandler
}

func NewHttpHandlers

func NewHttpHandlers(db *store.Store, c *client.Client) *HttpHandlers

type UseCase

type UseCase struct {
	HttpHandlers   *HttpHandlers
	CLIHandlers    *CmdHandlers
	WorkerHandlers *WorkerHandlers
}

func New

func New(db *store.Store, c *client.Client) *UseCase

type WorkerHandlers

type WorkerHandlers struct {
	RunIndexer types.WorkerHandler
}

func NewWorkerHandlers

func NewWorkerHandlers(cfg *config.Config, db *store.Store, c *client.Client) *WorkerHandlers

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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