Documentation ¶
Index ¶
- Constants
- func CheckPassword(password string, hashedPassword string) error
- func HashPassword(password string) (string, error)
- func RandomAdmStatus() string
- func RandomCurrency() string
- func RandomEmail() string
- func RandomInt(min, max int64) int64
- func RandomKycStatus() string
- func RandomMoney() int64
- func RandomName() string
- func RandomString(n int) string
- func RandomSurname() string
- func RandomUUID() uuid.UUID
- type Config
Constants ¶
View Source
const ( DepositorRole = "depositor" AdminRole = "admin" )
Variables ¶
This section is empty.
Functions ¶
func CheckPassword ¶
func HashPassword ¶
func RandomString ¶
RandomString generates a random string of length n
func RandomSurname ¶
func RandomSurname() string
Types ¶
type Config ¶
type Config struct { DBSource string `mapstructure:"DB_SOURCE"` HttpServerAddress string `mapstructure:"HTTP_SERVER_ADDRESS"` GrpcServerAddress string `mapstructure:"GRPC_SERVER_ADDRESS"` TokenSymmetricKey string `mapstructure:"TOKEN_SYMMETRIC_KEY"` AccessTokenDuration time.Duration `mapstructure:"ACCESS_TOKEN_DURATION"` RefreshTokenDuration time.Duration `mapstructure:"REFRESH_TOKEN_DURATION"` }
func LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.