Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { HTTPHost string HTTPPort int PrivateKeyBytes []byte NuklaiRPC string Amount uint64 StartDifficulty uint16 SolutionsPerSalt int TargetDurationPerSalt int64 // seconds AdminToken string // PostgreSQL configuration PostgresHost string PostgresPort int PostgresUser string PostgresPassword string PostgresDBName string PostgresSSLMode string }
func LoadConfigFromEnv ¶
func (*Config) AddressBech32 ¶
func (*Config) PrivateKey ¶
func (c *Config) PrivateKey() ed25519.PrivateKey
Click to show internal directories.
Click to hide internal directories.