Documentation
¶
Index ¶
- func Generate(regex string, limit int) (string, error)
- func IsLower(s string) bool
- func IsUpper(s string) bool
- func RandomCountry() string
- func RandomEmail() string
- func RandomInt(min, max int64) int64
- func RandomNumber() int64
- func RandomOwner() string
- func RandomString(n int) string
- func RandomWalletAddress() string
- type Config
- type Generator
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomString ¶
RandomString generates a random string of length n
Types ¶
type Config ¶
type Config struct { DBDriver string `mapstructure:"DB_DRIVER"` DBSource string `mapstructure:"DB_SOURCE"` MigrationURL string `mapstructure:"MIGRATION_URL"` HTTPServerAddress string `mapstructure:"HTTP_SERVER_ADDRESS"` GRPCServerAddress string `mapstructure:"GRPC_SERVER_ADDRESS"` AccessTokenSymmetricKey string `mapstructure:"ACCESS_TOKEN_SYMMETRIC_KEY"` RefreshTokenSymmetricKey string `mapstructure:"REFRESH_TOKEN_SYMMETRIC_KEY"` AccessTokenDuration time.Duration `mapstructure:"ACCESS_TOKEN_DURATION"` RefreshTokenDuration time.Duration `mapstructure:"REFRESH_TOKEN_DURATION"` EnableProfiler bool `mapstructure:"ENABLE_PROFILER"` AlchemyApiUrl string `mapstructure:"ALCHEMY_API_URL"` AlchemyNftApiUrl string `mapstructure:"ALCHEMY_NFT_API_URL"` IFFNftContractAddress string `mapstructure:"IFFNFT_CONTRACT_ADDRESS"` MoralisApiUrl string `mapstructure:"MORALIS_API_URL"` MoralisApiKey string `mapstructure:"MORALIS_API_KEY"` MoralisEthNetwork string `mapstructure:"MORALIS_ETH_NETWORK"` BlackholeAddress string `mapstructure:"BLACKHOLE_ADDRESS"` }
Config stores all configuration of the application. The values are read by viper from a config file or environment variable.
func LoadConfig ¶
LoadConfig reads configuration from file or environment variables.
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.