Change code generator (#4)

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

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)
}