Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddressCompareFromTo ¶
func ComputeGasOverestimationBurn ¶
ComputeGasOverestimationBurn computes amount of gas to be refunded and amount of gas to be burned Result is (refund, burn)
Types ¶
type Config ¶
type Config struct { Port int `mapstructure:"PORT"` DbConn string `mapstructure:"DB_CONN"` DbHost string `mapstructure:"DB_HOST"` DbPort int `mapstructure:"DB_PORT"` DbUser string `mapstructure:"DB_USER"` DbPassword string `mapstructure:"DB_PASSWORD"` DbDatabase string `mapstructure:"DB_DATABASE"` DbSchema string `mapstructure:"DB_SCHEMA"` LotusToken string `mapstructure:"LOTUS_TOKEN"` LotusAddress string `mapstructure:"LOTUS_ADDR"` SentryDns string `mapstructure:"SENTRY_DSN"` }
Config stores all configuration of the application. The values are read by viper from a config file or environment variable.
func LoadConfig ¶
LoadConfig reads configuration from file or environment variables.
Click to show internal directories.
Click to hide internal directories.