Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnvironmentDevelopment = "development" EnvironmentProduction = "production" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct { Environment string `yaml:"environment" validate:"required" default:"development"` Database *Database `yaml:"database"` Redis *Redis `yaml:"redis"` RSS3Chain *RSS3Chain `yaml:"rss3_chain"` Settler *Settler `yaml:"settler"` Gateway *Gateway `yaml:"gateway"` Billing *Billing `yaml:"billing"` }
type Gateway ¶
type Gateway struct { API struct { Listen struct { Host string `yaml:"host" default:"0.0.0.0"` Port uint64 `yaml:"port" default:"5555"` PromPort uint64 `yaml:"prom_port" default:"9000"` } `yaml:"listen"` JWTKey string `yaml:"jwt_key" validate:"required"` SIWEDomain string `yaml:"siwe_domain" validate:"required"` } `yaml:"api" validate:"required"` Kafka struct { Brokers []string `yaml:"brokers" validate:"required"` Topic string `yaml:"topic" validate:"required"` } `yaml:"kafka" validate:"required"` Etcd struct { Endpoints []string `yaml:"endpoints" validate:"required"` Username *string `yaml:"username"` Password *string `yaml:"password"` } `yaml:"etcd" validate:"required"` }
type RSS3Chain ¶
type RSS3Chain struct {
EndpointL2 string `yaml:"endpoint_l2" validate:"required"`
}
type Redis ¶
type Redis struct {
URI string `mapstructure:"uri" validate:"required" default:"redis://localhost:6379/0"`
}
type Settler ¶
type Settler struct { PrivateKey string `yaml:"private_key"` WalletAddress string `yaml:"wallet_address"` SignerEndpoint string `yaml:"signer_endpoint"` // EpochIntervalInHours EpochIntervalInHours int `yaml:"epoch_interval_in_hours" default:"18"` GasLimit uint64 `yaml:"gas_limit" default:"2500000"` // BatchSize is the number of Nodes to process in each batch. // This is to prevent the contract call from running out of gas. BatchSize int `yaml:"batch_size" default:"200"` }
Click to show internal directories.
Click to hide internal directories.