Documentation
¶
Index ¶
- Variables
- func AWSConfigOptions(opts *message.MessengerOptions) []*config.ConfigOption
- func BaseDistributionAccountSignatureClientConfigOptions(opts *signing.SignatureServiceOptions) []*config.ConfigOption
- func BaseSignatureServiceConfigOptions(opts *signing.SignatureServiceOptions) []*config.ConfigOption
- func BridgeIntegrationConfigOptions(opts *BridgeIntegrationOptions) []*config.ConfigOption
- func ClearTestEnvironment(t *testing.T)
- func CrashTrackerTypeConfigOption(targetPointer interface{}) *config.ConfigOption
- func DBPoolConfigOptions(opts *DBPoolOptions) []*config.ConfigOption
- func DistributionPublicKey(targetPointer interface{}) *config.ConfigOption
- func HorizonURL(targetPointer interface{}) *config.ConfigOption
- func LoadEnvFile() error
- func NetworkPassphrase(targetPointer interface{}) *config.ConfigOption
- func RPCConfigOptions(opts *stellar.RPCOptions) []*config.ConfigOption
- func SchedulerConfigOptions(opts *scheduler.SchedulerOptions) []*config.ConfigOption
- func SetConfigOptionCAPTCHAType(co *config.ConfigOption) error
- func SetConfigOptionCircleAPIType(co *config.ConfigOption) error
- func SetConfigOptionCrashTrackerType(co *config.ConfigOption) error
- func SetConfigOptionEC256PrivateKey(co *config.ConfigOption) error
- func SetConfigOptionLogLevel(co *config.ConfigOption) error
- func SetConfigOptionMessengerType(co *config.ConfigOption) error
- func SetConfigOptionMetricType(co *config.ConfigOption) error
- func SetConfigOptionStellarContractID(co *config.ConfigOption) error
- func SetConfigOptionStellarPrivateKey(co *config.ConfigOption) error
- func SetConfigOptionStellarPublicKey(co *config.ConfigOption) error
- func SetConfigOptionStringList(co *config.ConfigOption) error
- func SetConfigOptionURLList(co *config.ConfigOption) error
- func SetConfigOptionURLString(co *config.ConfigOption) error
- func SetCorsAllowedOrigins(co *config.ConfigOption) error
- func SetRegistrationContactType(co *config.ConfigOption) error
- func SingleTenantRoutingConfigOptions(opts *TenantRoutingOptions) *config.ConfigOption
- func TenantRoutingConfigOptions(opts *TenantRoutingOptions) []*config.ConfigOption
- func TenantXLMBootstrapAmount(targetPointer interface{}) *config.ConfigOption
- func TransactionSubmitterEngineConfigOptions(opts *di.TxSubmitterEngineOptions) config.ConfigOptions
- func TwilioConfigOptions(opts *message.MessengerOptions) []*config.ConfigOption
- type BridgeIntegrationOptions
- type DBPoolOptions
- type GlobalOptionsType
- type TenantRoutingOptions
Constants ¶
This section is empty.
Variables ¶
var CallHelpCommand = func(cmd *cobra.Command, args []string) error { if err := cmd.Help(); err != nil { return fmt.Errorf("calling help command: %w", err) } return nil }
var PropagatePersistentPreRun = func(cmd *cobra.Command, args []string) { if cmd.Parent().PersistentPreRun != nil { cmd.Parent().PersistentPreRun(cmd.Parent(), args) } }
Functions ¶
func AWSConfigOptions ¶
func AWSConfigOptions(opts *message.MessengerOptions) []*config.ConfigOption
AWSConfigOptions returns the config options for AWS. Relevant for loading configs needed for the messenger type(s): `AWS_*`.
func BaseDistributionAccountSignatureClientConfigOptions ¶
func BaseDistributionAccountSignatureClientConfigOptions(opts *signing.SignatureServiceOptions) []*config.ConfigOption
func BaseSignatureServiceConfigOptions ¶
func BaseSignatureServiceConfigOptions(opts *signing.SignatureServiceOptions) []*config.ConfigOption
func BridgeIntegrationConfigOptions ¶
func BridgeIntegrationConfigOptions(opts *BridgeIntegrationOptions) []*config.ConfigOption
func ClearTestEnvironment ¶
ClearTestEnvironment removes all envs from the test environment. It's useful to make tests independent from the localhost environment variables.
func CrashTrackerTypeConfigOption ¶
func CrashTrackerTypeConfigOption(targetPointer interface{}) *config.ConfigOption
func DBPoolConfigOptions ¶
func DBPoolConfigOptions(opts *DBPoolOptions) []*config.ConfigOption
DBPoolConfigOptions returns config options for tuning the DB connection pool.
func DistributionPublicKey ¶
func DistributionPublicKey(targetPointer interface{}) *config.ConfigOption
func HorizonURL ¶
func HorizonURL(targetPointer interface{}) *config.ConfigOption
func LoadEnvFile ¶
func LoadEnvFile() error
LoadEnvFile loads environment variables from a file. Priority: --env-file flag > ENV_FILE environment variable > .env in working directory
func NetworkPassphrase ¶
func NetworkPassphrase(targetPointer interface{}) *config.ConfigOption
func RPCConfigOptions ¶
func RPCConfigOptions(opts *stellar.RPCOptions) []*config.ConfigOption
func SchedulerConfigOptions ¶
func SchedulerConfigOptions(opts *scheduler.SchedulerOptions) []*config.ConfigOption
func SetConfigOptionCAPTCHAType ¶
func SetConfigOptionCAPTCHAType(co *config.ConfigOption) error
func SetConfigOptionCircleAPIType ¶
func SetConfigOptionCircleAPIType(co *config.ConfigOption) error
func SetConfigOptionCrashTrackerType ¶
func SetConfigOptionCrashTrackerType(co *config.ConfigOption) error
func SetConfigOptionEC256PrivateKey ¶
func SetConfigOptionEC256PrivateKey(co *config.ConfigOption) error
SetConfigOptionEC256PrivateKey parses the config option incoming value and validates if it is a valid EC256PrivateKey.
func SetConfigOptionLogLevel ¶
func SetConfigOptionLogLevel(co *config.ConfigOption) error
func SetConfigOptionMessengerType ¶
func SetConfigOptionMessengerType(co *config.ConfigOption) error
func SetConfigOptionMetricType ¶
func SetConfigOptionMetricType(co *config.ConfigOption) error
func SetConfigOptionStellarContractID ¶
func SetConfigOptionStellarContractID(co *config.ConfigOption) error
func SetConfigOptionStellarPrivateKey ¶
func SetConfigOptionStellarPrivateKey(co *config.ConfigOption) error
func SetConfigOptionStellarPublicKey ¶
func SetConfigOptionStellarPublicKey(co *config.ConfigOption) error
func SetConfigOptionStringList ¶
func SetConfigOptionStringList(co *config.ConfigOption) error
func SetConfigOptionURLList ¶
func SetConfigOptionURLList(co *config.ConfigOption) error
func SetConfigOptionURLString ¶
func SetConfigOptionURLString(co *config.ConfigOption) error
func SetCorsAllowedOrigins ¶
func SetCorsAllowedOrigins(co *config.ConfigOption) error
func SetRegistrationContactType ¶
func SetRegistrationContactType(co *config.ConfigOption) error
func SingleTenantRoutingConfigOptions ¶
func SingleTenantRoutingConfigOptions(opts *TenantRoutingOptions) *config.ConfigOption
func TenantRoutingConfigOptions ¶
func TenantRoutingConfigOptions(opts *TenantRoutingOptions) []*config.ConfigOption
TenantRoutingConfigOptions returns the config options for routing commands that apply to all tenants or a specific tenant.
func TenantXLMBootstrapAmount ¶
func TenantXLMBootstrapAmount(targetPointer interface{}) *config.ConfigOption
func TransactionSubmitterEngineConfigOptions ¶
func TransactionSubmitterEngineConfigOptions(opts *di.TxSubmitterEngineOptions) config.ConfigOptions
func TwilioConfigOptions ¶
func TwilioConfigOptions(opts *message.MessengerOptions) []*config.ConfigOption
TwilioConfigOptions returns the config options for Twilio. Relevant for loading configs needed for the messenger type(s): `TWILIO_*`.
Types ¶
type BridgeIntegrationOptions ¶
type BridgeIntegrationOptions struct {
EnableBridgeIntegration bool
BridgeBaseURL string
BridgeAPIKey string
}
func (*BridgeIntegrationOptions) ValidateFlags ¶
func (opts *BridgeIntegrationOptions) ValidateFlags() error
type DBPoolOptions ¶
type DBPoolOptions struct {
DBMaxOpenConns int
DBMaxIdleConns int
DBConnMaxIdleTimeSeconds int
DBConnMaxLifetimeSeconds int
}
DBPoolOptions contains tunables for the PostgreSQL connection pool.
type GlobalOptionsType ¶
type GlobalOptionsType struct {
LogLevel logrus.Level
SentryDSN string
Environment string
Version string
GitCommit string
DatabaseURL string
DBPool DBPoolOptions
BaseURL string
SDPUIBaseURL string
NetworkPassphrase string
EnvFile string
}
func (GlobalOptionsType) PopulateCrashTrackerOptions ¶
func (g GlobalOptionsType) PopulateCrashTrackerOptions(crashTrackerOptions *crashtracker.CrashTrackerOptions)
PopulateCrashTrackerOptions populates the CrastTrackerOptions from the global options.
type TenantRoutingOptions ¶
func (*TenantRoutingOptions) ValidateFlags ¶
func (o *TenantRoutingOptions) ValidateFlags() error