diff --git a/go-api/hook/hook.go b/go-api/hook/hook.go index a5ea6ed..7de14f7 100644 --- a/go-api/hook/hook.go +++ b/go-api/hook/hook.go @@ -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