Documentation ¶
Index ¶
- Constants
- func CreateRenderer(templatePath string) multitemplate.Renderer
- func GetPaginatedListFromRequest(c *gin.Context, count int) *pkg.PaginatedList
- func MockApiRouter() *gin.Engine
- func MockDB() *gorm.DB
- func MockJWTAuth() gin.HandlerFunc
- func MockWebRouter() *gin.Engine
- func RunApiTests(t *testing.T, r *gin.Engine, testCases []TestCase)
- func RunWebTests(t *testing.T, r *gin.Engine, testCases []TestCase)
- type TestCase
- type User
Constants ¶
View Source
const ( DefaultPageSize int = 20 MaxPageSize int = 500 )
View Source
const (
CKUser = "user"
)
Variables ¶
This section is empty.
Functions ¶
func CreateRenderer ¶
func CreateRenderer(templatePath string) multitemplate.Renderer
func GetPaginatedListFromRequest ¶
func GetPaginatedListFromRequest(c *gin.Context, count int) *pkg.PaginatedList
func MockApiRouter ¶
func MockJWTAuth ¶
func MockJWTAuth() gin.HandlerFunc
func MockWebRouter ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.