Skip to content

Commit

Permalink
Add VerifyAPIKey method for the hook interface (#204)
Browse files Browse the repository at this point in the history
Signed-off-by: SimFG <[email protected]>
  • Loading branch information
SimFG authored Oct 17, 2023
1 parent 5f3a9bd commit 5e5a27f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions go-api/hook/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import "context"

type Hook interface {
Init(params map[string]string) error
VerifyAPIKey(key string) (string, error)
Mock(ctx context.Context, req interface{}, fullMethod string) (bool, interface{}, error)
Before(ctx context.Context, req interface{}, fullMethod string) (context.Context, error)
After(ctx context.Context, result interface{}, err error, fullMethod string) error
Expand Down

0 comments on commit 5e5a27f

Please sign in to comment.