config

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VaultPathEnv    = "VAULT_PATH"
	VaultTokenEnv   = "VAULT_TOKEN"
	VaultMountPath  = "MOUNT_PATH"
	VaultSecretPath = "SECRET_PATH"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainParams

type ChainParams struct {
	ChainId        string `fig:"chain_id"`
	CoinName       string `fig:"coin_name"`
	DisableReports bool   `fig:"disable_reports"`
}

type Config

type Config interface {
	comfig.Logger
	comfig.Listenerer
	pgdb.Databaser

	Tendermint() *http.HTTP
	Cosmos() *grpc.ClientConn
	Storage() *pg.Storage
	Session() *SessionInfo
	Vault() *vault.KVv2
	Swagger() *SwaggerInfo
	ChainParams() *ChainParams
}

func New

func New(getter kv.Getter) Config

type SessionInfo

type SessionInfo struct {
	StartBlock     uint64 `fig:"start_block"`
	StartSessionId uint64 `fig:"start_session_id"`
}

type SwaggerInfo

type SwaggerInfo struct {
	Addr    string `fig:"addr"`
	Enabled bool   `fig:"enabled"`
}

Jump to

Keyboard shortcuts

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