Documentation ¶
Overview ¶
Package config contains all the config functions that cannot be used in the cli interface
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { IPFSConfig IPFSConfig RedisConfig RedisConfig EthConfig EthConfig }
Config is set of all config that relates to .envrc
type EthConfig ¶
type EthConfig struct { RPCURL string `envconfig:"ETH_RPC_URL"` PrivateKey string `envconfig:"ETH_PRIVATE_KEY"` KeystorePath string `envconfig:"ETH_KEYSTORE_PATH"` KeyStorePwd string `envconfig:"ETH_KEYSTORE_PWD"` }
EthConfig is set of all config that relates to ethereum
type IPFSConfig ¶
type IPFSConfig struct {
ServiceToken string `envconfig:"IPFS_SERVICE_TOKEN"`
}
IPFSConfig is set of all configs that relates to IPFS pinning
type RedisConfig ¶
type RedisConfig struct {
Password string `envconfig:"REDIS_PWD" default:""`
}
RedisConfig is set of all config that relates to redis
Click to show internal directories.
Click to hide internal directories.