Skip to content

Commit

Permalink
Add VerifyAPIKey method for the hook interface (milvus-io#204)
Browse files Browse the repository at this point in the history
Signed-off-by: SimFG <[email protected]>
  • Loading branch information
SimFG committed Oct 18, 2023
1 parent be6cc7f commit 589b00c
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 589b00c

Please sign in to comment.