Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Arbitrum ¶ added in v0.4.0
type Arbitrum struct {
BlockchainID string `yaml:"arbitrum_chain_id" envconfig:"ARBITRUM_CHAIN_ID"`
MOMTokenAddress string `yaml:"arbitrum_mom_token_address" envconfig:"ARBITRUM_MOM_TOKEN_ADDRESS"`
DADTokenAddress string `yaml:"arbitrum_dad_token_address" envconfig:"ARBITRUM_DAD_TOKEN_ADDRESS"`
StakeAddress string `yaml:"arbitrum_stake_token_address" envconfig:"ARBITRUM_STAKE_ADDRESS"`
NFTAddress string `yaml:"arbitrum_nft_address" envconfig:"ARBITRUM_NFT_ADDRESS"`
FaucetAddress string `yaml:"arbitrum_faucet_address" envconfig:"ARBITRUM_FAUCET_ADDRESS"`
RPCURL string `yaml:"arbitrum_rpc_url" envconfig:"ARBITRUM_RPC_URL"`
WSURL string `yaml:"arbitrum_ws_url" envconfig:"ARBITRUM_WS_URL"`
}
type Common ¶
type Common struct {
AgoraAppCertificate string `yaml:"agora_app_certificate" envconfig:"AGORA_APP_CERTIFICATE"`
RenderInternalURL string `yaml:"render_internal_url" envconfig:"RENDER_INTERNAL_URL"`
MnemonicPhrase string `yaml:"mnemonic_phrase" envconfig:"MNEMONIC_PHRASE"`
AllowCORS bool `yaml:"allow_cors" envconfig:"ALLOW_CORS"`
// Enabled pprof http endpoints. If enabled, point your browser at /debug/pprof
PProfAPI bool `yaml:"pprof_api" envconfig:"PPROF_API"`
}
type Config ¶
type Config struct {
Common Common `yaml:"common"`
Settings Local `yaml:"settings"`
Postgres Postgres `yaml:"postgres"`
Influx Influx `yaml:"influx"`
UIClient UIClient `yaml:"ui_client"`
Streamchat Streamchat `yaml:"streamchat"`
Arbitrum Arbitrum `yaml:"arbitrum"`
}
Config : structure to hold configuration
type Influx ¶
type Local ¶
type Local struct {
Address string `yaml:"bind_address" envconfig:"UBERCONTROLLER_BIND_ADDRESS"`
Port uint `yaml:"bind_port" envconfig:"UBERCONTROLLER_BIND_PORT"`
LogLevel int `yaml:"loglevel" envconfig:"UBERCONTROLLER_LOGLEVEL"`
ExtensionStorage string `yaml:"storage" envconfig:"UBERCONTROLLER_STORAGE"`
SeedDataFiles string `yaml:"seed_data_files" envconfig:"UBERCONTROLLER_SEED_DATA_FILES"`
// TODO: rename FrontendURL to avoid confusing this with 'the frontend'
FrontendURL string `yaml:"frontend_url" json:"-" envconfig:"FRONTEND_URL"` // URL where this instance is reachable (e.g. when behind a proxy)
}
type Postgres ¶
type Postgres struct {
DATABASE string `yaml:"database" envconfig:"DB_DATABASE"`
HOST string `yaml:"host" envconfig:"PGDB_HOST"`
PORT uint `yaml:"port" envconfig:"DB_PORT"`
USERNAME string `yaml:"username" envconfig:"DB_USERNAME"`
PASSWORD string `yaml:"password" envconfig:"DB_PASSWORD"`
MAXCONNS uint `yaml:"max_conns" envconfig:"DB_MAX_CONNS"`
}
func (*Postgres) MinVersion ¶
type Streamchat ¶
type Streamchat struct {
APIKey string `yaml:"key" envconfig:"STREAMCHAT_KEY"`
APISecret string `yaml:"secret" envconfig:"STREAMCHAT_SECRET"`
}
func (*Streamchat) Init ¶
func (s *Streamchat) Init()
type UIClient ¶
type UIClient struct {
AgoraAppID string `yaml:"agora_app_id" json:"AGORA_APP_ID" envconfig:"AGORA_APP_ID"`
BlockchainID string `json:"BLOCKCHAIN_ID" envconfig:"ARBITRUM_CHAIN_ID"`
ContractDAD string `json:"CONTRACT_DAD_ADDRESS" envconfig:"ARBITRUM_DAD_TOKEN_ADDRESS"`
ContractFaucet string `json:"CONTRACT_FAUCET_ADDRESS" envconfig:"ARBITRUM_FAUCET_ADDRESS"`
ContractMOM string `json:"CONTRACT_MOM_ADDRESS" envconfig:"ARBITRUM_MOM_TOKEN_ADDRESS"`
ContractNFT string `json:"CONTRACT_NFT_ADDRESS" envconfig:"ARBITRUM_NFT_ADDRESS"`
ContractStake string `json:"CONTRACT_STAKING_ADDRESS" envconfig:"ARBITRUM_STAKE_ADDRESS"`
FrontendURL string `yaml:"frontend_url" json:"-" envconfig:"FRONTEND_URL"`
StreamchatKey string `yaml:"streamchat_key" json:"STREAMCHAT_KEY" envconfig:"STREAMCHAT_KEY"`
FeatureFlags UIFeatureFlags `yaml:"feature_flags" json:"FEATURE_FLAGS" envconfig:"FEATURE_FLAGS"`
}
type UIFeatureFlags ¶ added in v0.4.0
type UIFeatureFlags struct {
NewsFeed bool `json:"newsfeed" envconfig:"FEATURE_NEWSFEED"`
}
Click to show internal directories.
Click to hide internal directories.