Documentation ¶
Index ¶
Constants ¶
View Source
const ( RAFFLE_IS_CLOSED = "the raffle is closed" PARTICIPANT_DUPLICATED = "participant duplicated" CANNOT_ADD_TICKET_VOID = "cannot add ticket void" CANNOT_ADD_MORE_TICKETS = "cannot add more tickets" )
Variables ¶
This section is empty.
Functions ¶
func RandomString ¶
func StructToDocument ¶
Types ¶
type Config ¶
type Config struct { DBDriver string `mapstructure:"DB_DRIVER"` DBSource string `mapstructure:"DB_SOURCE"` DBUri string `mapstructure:"DB_URI"` ServerAddress string `mapstructure:"SERVER_ADDRESS"` TokenSymmetricKey string `mapstructure:"TOKEN_SYMMETRIC_KEY"` DbName string `mapstructure:"DB_NAME"` AccessTokenDuration time.Duration `mapstructure:"ACCESS_TOKEN_DURATION"` }
func LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.