Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Environment ¶
type Environment struct {
DbName string
DbUser string
DbPassword string
DbPoolSize int
DbHost string
DbPort int
BaseCoin string
ServerPort int
IsDebug bool
}
func NewEnvironment ¶
func NewEnvironment() *Environment
type Explorer ¶
type Explorer struct {
CoinRepository coins.Repository
BlockRepository blocks.Repository
AddressRepository address.Repository
TransactionRepository transaction.Repository
InvalidTransactionRepository invalid_transaction.Repository
RewardRepository reward.Repository
SlashRepository slash.Repository
ValidatorRepository validator.Repository
StakeRepository stake.Repository
Environment Environment
Cache *cache.ExplorerCache
}
func NewExplorer ¶
func NewExplorer(db *pg.DB, env *Environment) *Explorer
Click to show internal directories.
Click to hide internal directories.