config

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2026 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppDomainsConfig

type AppDomainsConfig struct {
	Backend  string
	Frontend string
}

AppDomainsConfig holds the configuration structs for the application domains

type Config

type Config struct {
	Port                      uint64
	CountersCacheTTLInSeconds uint32
	UpdateContractDBInSeconds uint32
	FreeAccount               FreeAccountConfig
	Gateways                  []GatewayConfig
	ClosedEndpoints           []string
	AppDomains                AppDomainsConfig
	CryptoPayment             CryptoPaymentConfig
}

Config specify all config options this proxy will use

type CryptoPaymentConfig

type CryptoPaymentConfig struct {
	URL                          string
	ServiceApiKey                string
	TimeoutInSeconds             uint64
	ConfigCacheDurationInSeconds uint64
	Enabled                      bool
}

CryptoPaymentConfig holds the configuration for the crypto-payment service integration

type EmailsConfig

type EmailsConfig struct {
	RegistrationEmailBytes []byte
	ChangeEmailBytes       []byte
}

EmailsConfig holds the configuration for the emails formats

type FreeAccountConfig

type FreeAccountConfig struct {
	MaxCalls             uint64
	ClearPeriodInSeconds uint64
}

FreeAccountConfig the configuration struct for free accounts

type GatewayConfig

type GatewayConfig struct {
	URL        string
	EpochStart string
	EpochEnd   string
	NonceStart string
	NonceEnd   string
	Name       string
}

GatewayConfig defines a gateway and its set epochs

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL