Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { // Route is the URL router where the API will be served Route string // ListenPort port where the API server will listen on ListenPort int // ListenHost host where the API server will listen on ListenHost string // Ssl tls related config options Ssl struct { Domain string DirCert string } }
type Manager ¶
type Manager struct { // API api config options API *API // Database connection options DB *DB // SMTP options SMTP *SMTP // LogLevel logging level LogLevel string // LogOutput logging output LogOutput string // ErrorLogFile for logging warning, error and fatal messages LogErrorFile string // Metrics config options Metrics *MetricsCfg // Mode is the main operation mode Mode string // DataDir path where the gateway files will be stored DataDir string // SaveConfig overwrites the config file with the CLI provided flags SaveConfig bool // SigningKey is the ECDSA hexString private key for signing messages SigningKey string // Migration options Migrate *Migrate }
func NewManagerConfig ¶ added in v0.6.1
func NewManagerConfig() *Manager
NewManagerConfig initializes the fields in the config stuct
type MetricsCfg ¶
MetricsCfg initializes the metrics config
type Migrate ¶
type Migrate struct { // Action defines the migration action to be taken (up, down, status) Action string }
type Notifications ¶ added in v0.6.0
type Notify ¶ added in v0.6.1
type Notify struct { // API api config options API *API // Database connection options DB *DB // LogLevel logging level LogLevel string // LogOutput logging output LogOutput string // ErrorLogFile for logging warning, error and fatal messages LogErrorFile string // Metrics config options Metrics *MetricsCfg // DataDir path where the gateway files will be stored DataDir string // SaveConfig overwrites the config file with the CLI provided flags SaveConfig bool // SigningKey is the ECDSA hexString private key for signing messages SigningKey string // Env {dev, stage, default: main} Env string // Notifications Notifications *Notifications // Ethereum node config Ethereum *config.EthCfg // Web3 endpoint config Web3 *config.W3Cfg // EthereumEvents ethereum even subscription config options EthereumEvents *config.EthEventCfg // IPFS config options IPFS *config.IPFSCfg }
func NewNotifyConfig ¶ added in v0.6.1
func NewNotifyConfig() *Notify
NewNotifyConfig initializes the fields in the config stuct
Click to show internal directories.
Click to hide internal directories.