Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadTxIndexerConfig ¶
func ReadTxIndexerConfig() (*tx_indexer_config.Config, error)
Types ¶
type FeesConfig ¶
type FeesConfig struct {
USDCAddress string `mapstructure:"usdc_address" json:"usdc_address,omitempty"`
}
type MetricsConfig ¶ added in v0.1.16
type PortalConfig ¶ added in v0.1.16
type PortalConfig struct {
LogFormat logging.LogFormat `mapstructure:"log_format" json:"log_format,omitempty"`
Server struct {
Host string `mapstructure:"host" json:"host,omitempty"`
Port int `mapstructure:"port" json:"port,omitempty"`
JWTSecret string `mapstructure:"jwt_secret" json:"jwt_secret,omitempty"`
HMACSecret string `mapstructure:"hmac_secret" json:"hmac_secret,omitempty"`
BaseURL string `mapstructure:"base_url" json:"base_url,omitempty"` // Base URL for magic links
} `mapstructure:"server" json:"server"`
Database config.Database `mapstructure:"database" json:"database,omitempty"`
MaxApiKeysPerPlugin int `mapstructure:"max_api_keys_per_plugin" json:"max_api_keys_per_plugin,omitempty"`
}
func ReadPortalConfig ¶ added in v0.1.16
func ReadPortalConfig() (*PortalConfig, error)
type VerifierConfig ¶
type VerifierConfig struct {
LogFormat logging.LogFormat `mapstructure:"log_format" json:"log_format,omitempty"`
Server struct {
Host string `mapstructure:"host" json:"host,omitempty"`
Port int64 `mapstructure:"port" json:"port,omitempty"`
JWTSecret string `mapstructure:"jwt_secret" json:"jwt_secret,omitempty"`
} `mapstructure:"server" json:"server"`
Database config.Database `mapstructure:"database" json:"database,omitempty"`
Redis config.Redis `mapstructure:"redis" json:"redis,omitempty"`
BlockStorage vault_config.BlockStorage `mapstructure:"block_storage" json:"block_storage,omitempty"`
EncryptionSecret string `mapstructure:"encryption_secret" json:"encryption_secret,omitempty"`
Auth struct {
NonceExpiryMinutes int `mapstructure:"nonce_expiry_minutes" json:"nonce_expiry_minutes,omitempty"`
// could be disabled for autotests / local,
// pointer so it must be explicitly set to false, no value considered as enabled
Enabled *bool `mapstructure:"enabled" json:"enabled,omitempty"`
} `mapstructure:"auth" json:"auth"`
Fees FeesConfig `mapstructure:"fees" json:"fees"`
Metrics MetricsConfig `mapstructure:"metrics" json:"metrics,omitempty"`
}
func ReadVerifierConfig ¶
func ReadVerifierConfig() (*VerifierConfig, error)
type WorkerConfig ¶
type WorkerConfig struct {
LogFormat logging.LogFormat `mapstructure:"log_format" json:"log_format,omitempty"`
VaultService vault_config.Config `mapstructure:"vault_service" json:"vault_service,omitempty"`
Redis config.Redis `mapstructure:"redis" json:"redis,omitempty"`
BlockStorage vault_config.BlockStorage `mapstructure:"block_storage" json:"block_storage,omitempty"`
Database config.Database `mapstructure:"database" json:"database,omitempty"`
Fees FeesConfig `mapstructure:"fees" json:"fees"`
Metrics MetricsConfig `mapstructure:"metrics" json:"metrics,omitempty"`
HealthPort int `mapstructure:"health_port" json:"health_port,omitempty"`
}
func GetConfigure ¶
func GetConfigure() (*WorkerConfig, error)
func ReadConfig ¶
func ReadConfig(configName string) (*WorkerConfig, error)
Click to show internal directories.
Click to hide internal directories.