Change code generator (#4)

* Change code generator
* Remove gin
This commit is contained in:
Jonas Plum authored and GitHub committed 2022-01-08 00:48:44 +01:00
1 parent b5dd0cfacd
commit 8333ea88a8
148 files changed
+3077 -23976

No files matched your search

+1 -2
View File
@@ -4,7 +4,6 @@ import (
"context"
"github.com/arangodb/go-driver"
"github.com/gin-gonic/gin"
"github.com/SecurityBrewery/catalyst/index"
)
@@ -44,7 +43,7 @@ func (h *Hooks) TicketWriteFilter(ctx context.Context) (string, map[string]inter
return "", nil, nil
}
func (h *Hooks) GetGroups(ctx *gin.Context, username string) ([]string, error) {
func (h *Hooks) GetGroups(ctx context.Context, username string) ([]string, error) {
if h.GetGroupsFunc != nil {
return h.GetGroupsFunc(ctx, username)
}