Documentation
¶
Index ¶
- Variables
- type Config
- func (c *Config) AdminService() application.AdminService
- func (c *Config) AppService() (application.Service, error)
- func (c *Config) IndexerService() (application.IndexerService, error)
- func (c *Config) String() string
- func (c *Config) UnlockerService() ports.Unlocker
- func (c *Config) Validate() error
- func (c *Config) WalletService() ports.WalletService
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Datadir = "DATADIR" WalletAddr = "WALLET_ADDR" RoundInterval = "ROUND_INTERVAL" Port = "PORT" EventDbType = "EVENT_DB_TYPE" DbType = "DB_TYPE" DbUrl = "PG_DB_URL" EventDbUrl = "PG_EVENT_DB_URL" SchedulerType = "SCHEDULER_TYPE" TxBuilderType = "TX_BUILDER_TYPE" LiveStoreType = "LIVE_STORE_TYPE" RedisUrl = "REDIS_URL" RedisTxNumOfRetries = "REDIS_NUM_OF_RETRIES" LogLevel = "LOG_LEVEL" VtxoTreeExpiry = "VTXO_TREE_EXPIRY" UnilateralExitDelay = "UNILATERAL_EXIT_DELAY" BoardingExitDelay = "BOARDING_EXIT_DELAY" EsploraURL = "ESPLORA_URL" NoMacaroons = "NO_MACAROONS" NoTLS = "NO_TLS" TLSExtraIP = "TLS_EXTRA_IP" TLSExtraDomain = "TLS_EXTRA_DOMAIN" UnlockerType = "UNLOCKER_TYPE" UnlockerFilePath = "UNLOCKER_FILE_PATH" UnlockerPassword = "UNLOCKER_PASSWORD" NoteUriPrefix = "NOTE_URI_PREFIX" MarketHourStartTime = "MARKET_HOUR_START_TIME" MarketHourEndTime = "MARKET_HOUR_END_TIME" MarketHourPeriod = "MARKET_HOUR_PERIOD" MarketHourRoundInterval = "MARKET_HOUR_ROUND_INTERVAL" OtelCollectorEndpoint = "OTEL_COLLECTOR_ENDPOINT" OtelPushInterval = "OTEL_PUSH_INTERVAL" RoundMaxParticipantsCount = "ROUND_MAX_PARTICIPANTS_COUNT" RoundMinParticipantsCount = "ROUND_MIN_PARTICIPANTS_COUNT" UtxoMaxAmount = "UTXO_MAX_AMOUNT" VtxoMaxAmount = "VTXO_MAX_AMOUNT" UtxoMinAmount = "UTXO_MIN_AMOUNT" VtxoMinAmount = "VTXO_MIN_AMOUNT" AllowCSVBlockType = "ALLOW_CSV_BLOCK_TYPE" DefaultPort = 7070 )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Datadir string
Port uint32
DbMigrationPath string
NoTLS bool
NoMacaroons bool
LogLevel int
TLSExtraIPs []string
TLSExtraDomains []string
DbType string
EventDbType string
DbDir string
DbUrl string
EventDbUrl string
EventDbDir string
RoundInterval int64
SchedulerType string
TxBuilderType string
LiveStoreType string
RedisUrl string
RedisTxNumOfRetries int
WalletAddr string
VtxoTreeExpiry arklib.RelativeLocktime
UnilateralExitDelay arklib.RelativeLocktime
BoardingExitDelay arklib.RelativeLocktime
NoteUriPrefix string
AllowCSVBlockType bool
MarketHourStartTime int64
MarketHourEndTime int64
MarketHourPeriod int64
MarketHourRoundInterval int64
OtelCollectorEndpoint string
OtelPushInterval int64
EsploraURL string
UnlockerType string
UnlockerFilePath string // file unlocker
UnlockerPassword string // env unlocker
RoundMinParticipantsCount int64
RoundMaxParticipantsCount int64
UtxoMaxAmount int64
UtxoMinAmount int64
VtxoMaxAmount int64
VtxoMinAmount int64
// contains filtered or unexported fields
}
func LoadConfig ¶
func (*Config) AdminService ¶
func (c *Config) AdminService() application.AdminService
func (*Config) AppService ¶
func (c *Config) AppService() (application.Service, error)
func (*Config) IndexerService ¶
func (c *Config) IndexerService() (application.IndexerService, error)
func (*Config) UnlockerService ¶
func (*Config) WalletService ¶
func (c *Config) WalletService() ports.WalletService
Click to show internal directories.
Click to hide internal directories.