Documentation ¶
Index ¶
- func CreateDockerTestContainer() (*sql.DB, *dockertest.Pool, *dockertest.Resource, error)
- func GenerateToken(expire time.Duration, userID int32) (string, error)
- func GetEnv(key, fallback string) string
- func GetEnvForTesting()
- func GetFilePath(elem ...string) (string, error)
- func MigrateDB(db *sql.DB, sourceURL string) error
- func SeedCategory(db *sql.DB) error
- func SeedDataFromSQL(db *sql.DB, sqlLocation string) error
- func SeedMatchCategory(db *sql.DB) error
- func SeedUsers(db *sql.DB) error
- func VerifyToken(token string) (*paseto.Token, error)
- type Filter
- type MetaData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateToken ¶
GenerateToken return paseto token
func GetEnvForTesting ¶
func GetEnvForTesting()
func GetFilePath ¶
func SeedCategory ¶
func SeedMatchCategory ¶
func VerifyToken ¶
VerifyToken Validate token and return nil if it successes
Types ¶
Click to show internal directories.
Click to hide internal directories.