Documentation
¶
Overview ¶
Package configuration is a small package for handling configuration
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct {
Account string `mapstructure:"account" desc:"The account address to use" required:"true"`
Network string `mapstructure:"network" desc:"The network to use" default:"Polkadot" allowed:"Polkadot,Kusama"`
BaseURL string `mapstructure:"url" desc:"The scanner api url to use" default:"https://api.dotscanner.com"`
From string `mapstructure:"from" desc:"Optional starting date"`
To string `mapstructure:"to" desc:"Optional ending date"`
CSV string `mapstructure:"csv" desc:"To save the results to a csv file"`
Start, End time.Time
}
Configuration hold the service configuration.
func NewConfiguration ¶
func NewConfiguration() *Configuration
NewConfiguration returns a new configuration.
func (*Configuration) Prefix ¶
func (c *Configuration) Prefix() string
Prefix returns the configuration prefix.
Click to show internal directories.
Click to hide internal directories.