Documentation ¶
Index ¶
- Constants
- type FaucetServer
- func (s *FaucetServer) GetNetworkPassphrase() string
- func (s *FaucetServer) SetAmount(amount string) *FaucetServer
- func (s *FaucetServer) SetBotBatchSize(size int) *FaucetServer
- func (s *FaucetServer) SetBotInitialBalance(initialBalance string) *FaucetServer
- func (s *FaucetServer) SetBotPoolSize(size int) *FaucetServer
- func (s *FaucetServer) SetDatabaseAddress(address string) *FaucetServer
- func (s *FaucetServer) SetDatabasePassword(password string) *FaucetServer
- func (s *FaucetServer) SetHost(host string) *FaucetServer
- func (s *FaucetServer) SetIssuer(secret string) *FaucetServer
- func (s *FaucetServer) SetLoggerLevel(level int) *FaucetServer
- func (s *FaucetServer) SetNetworkPassphrase(passphrase string) *FaucetServer
- func (s *FaucetServer) SetReCaptchaV2BaseURL(baseURL string) *FaucetServer
- func (s *FaucetServer) SetReCaptchaV2Secret(secret string) *FaucetServer
- func (s *FaucetServer) SetStellarHorizonURL(url string) *FaucetServer
- func (s *FaucetServer) SetStellarNetworkType(networkType string) *FaucetServer
- func (s *FaucetServer) SetWhitelistCredit(whitelistCredit []entities.Credit) *FaucetServer
Constants ¶
const ( StellarNetworkTypePublic = "public" StellarNetworkTypeCustom = "custom" StellarNetworkTypeTestNet = "testnet" )
The available stellar network types
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FaucetServer ¶
type FaucetServer struct { Host string Stellar stellar WhitelistCredit []entities.Credit Amount string DB db Logger logger Bot bot ReCaptchaV2 reCaptchaV2 }
FaucetServer configuration
func NewFaucetConfig ¶
func NewFaucetConfig() *FaucetServer
NewFaucetConfig initializes the FaucetServer config with default values
func (*FaucetServer) GetNetworkPassphrase ¶
func (s *FaucetServer) GetNetworkPassphrase() string
GetNetworkPassphrase of FaucetServer
func (*FaucetServer) SetAmount ¶
func (s *FaucetServer) SetAmount(amount string) *FaucetServer
SetAmount of fund per request
func (*FaucetServer) SetBotBatchSize ¶
func (s *FaucetServer) SetBotBatchSize(size int) *FaucetServer
SetBotBatchSize of FaucetServer maximum batch size is 100 but it is recommended to make it a smaller batch due to the risk of transaction timeout
func (*FaucetServer) SetBotInitialBalance ¶
func (s *FaucetServer) SetBotInitialBalance(initialBalance string) *FaucetServer
SetBotInitialBalance of FaucetServer minimum initial balance to activate bot accounts is 1 XLM but it is recommended to initialize with the higher balance
func (*FaucetServer) SetBotPoolSize ¶
func (s *FaucetServer) SetBotPoolSize(size int) *FaucetServer
SetBotPoolSize of FaucetServer
func (*FaucetServer) SetDatabaseAddress ¶
func (s *FaucetServer) SetDatabaseAddress(address string) *FaucetServer
SetDatabaseAddress of FaucetServer
func (*FaucetServer) SetDatabasePassword ¶
func (s *FaucetServer) SetDatabasePassword(password string) *FaucetServer
SetDatabasePassword of FaucetServer
func (*FaucetServer) SetHost ¶
func (s *FaucetServer) SetHost(host string) *FaucetServer
SetHost of FaucetServer
func (*FaucetServer) SetIssuer ¶
func (s *FaucetServer) SetIssuer(secret string) *FaucetServer
SetIssuer of FaucetServer
func (*FaucetServer) SetLoggerLevel ¶
func (s *FaucetServer) SetLoggerLevel(level int) *FaucetServer
SetLoggerLevel of FaucetServer
func (*FaucetServer) SetNetworkPassphrase ¶
func (s *FaucetServer) SetNetworkPassphrase(passphrase string) *FaucetServer
SetNetworkPassphrase of FaucetServer
func (*FaucetServer) SetReCaptchaV2BaseURL ¶
func (s *FaucetServer) SetReCaptchaV2BaseURL(baseURL string) *FaucetServer
SetReCaptchaV2BaseURL of FaucetServer
func (*FaucetServer) SetReCaptchaV2Secret ¶
func (s *FaucetServer) SetReCaptchaV2Secret(secret string) *FaucetServer
SetReCaptchaV2Secret of FaucetServer
func (*FaucetServer) SetStellarHorizonURL ¶
func (s *FaucetServer) SetStellarHorizonURL(url string) *FaucetServer
SetStellarHorizonURL of FaucetServer
func (*FaucetServer) SetStellarNetworkType ¶
func (s *FaucetServer) SetStellarNetworkType(networkType string) *FaucetServer
SetStellarNetworkType of FaucetServer
func (*FaucetServer) SetWhitelistCredit ¶
func (s *FaucetServer) SetWhitelistCredit(whitelistCredit []entities.Credit) *FaucetServer
SetWhitelistCredit of FaucetServer