Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( EthwalletURL string MarketplaceURL string )
Default endpoints to access services. These endpoints are overritten by the build Use the following format for the variable name: "[Service]URL" (where Service is the name of the service capitalized) The service name should be the name of the directory inside `systemservices` but capitalized example:
var ( BarURL string )
var ( EnvMarketplaceAddress string EnvMarketplaceToken string EnvMarketplaceEndpoint string )
Env to override on the system services
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.3.0
type Config struct { Name string Path string Server struct { Address string } Log struct { Format string ForceColors bool Level string } Database struct { ServiceRelativePath string ExecutionRelativePath string } Service ServiceConfigGroup }
Config contains all the configuration needed.
func Global ¶ added in v0.3.0
Global returns a singleton of a Config after loaded ENV and validate the values.
func (*Config) Prepare ¶ added in v0.3.0
Prepare setups local directories or any other required thing based on config
func (*Config) Services ¶ added in v0.8.0
func (c *Config) Services() []*ServiceConfigWithKey
Services returns all services that the configuration package is aware of
type ServiceConfig ¶ added in v0.8.0
ServiceConfig contains information related to services that the config knows about
type ServiceConfigGroup ¶ added in v0.9.0
type ServiceConfigGroup struct { Ethwallet ServiceConfig Marketplace ServiceConfig }
ServiceConfigGroup is the struct that contains all the `ServiceConfig` related to the config
type ServiceConfigWithKey ¶ added in v0.9.0
type ServiceConfigWithKey struct { *ServiceConfig Key string }
ServiceConfigWithKey contains information related to services that the config knows about and their key