Documentation
¶
Index ¶
- func CheckPassword(password string, hashedPassword string) error
- func HashedPassword(password string) (string, error)
- func RandomContent() string
- func RandomEmail() string
- func RandomExpires() int64
- func RandomInt(min, max int64) int64
- func RandomString(n int) string
- func RandomTitle() string
- func RandomUser() string
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPassword ¶
func HashedPassword ¶
func RandomContent ¶
func RandomContent() string
func RandomEmail ¶
func RandomEmail() string
func RandomExpires ¶
func RandomExpires() int64
func RandomString ¶
func RandomTitle ¶
func RandomTitle() string
func RandomUser ¶
func RandomUser() string
Types ¶
type Config ¶
type Config struct {
Environment string `mapstructure:"ENVIRONMENT"`
DBDriver string `mapstructure:"DB_DRIVER"`
DBSource string `mapstructure:"DB_SOURCE"`
MigrationURL string `mapstructure:"MIGRATION_URL"`
RedisAddress string `mapstructure:"REDIS_ADDRESS"`
HTTPServerAddress string `mapstructure:"HTTP_SERVER_ADDRESS"`
GRPCServerAddress string `mapstructure:"GRPC_SERVER_ADDRESS"`
TokenSymmetricKye string `mapstructure:"TOKEN_SYMMETRIC_KEY"`
AccessTokenDuration time.Duration `mapstructure:"ACCESS_TOKEN_DURATION"`
RefreshTokenDuration time.Duration `mapstructure:"REFRESH_TOKEN_DURATION"`
}
func LiadConfig ¶
Click to show internal directories.
Click to hide internal directories.