forked from milvus-io/milvus
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: SimFG <[email protected]> Signed-off-by: SimFG <[email protected]>
- Loading branch information
Showing
3 changed files
with
14 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
package hook | ||
|
||
import "context" | ||
|
||
type Hook interface { | ||
Init(params map[string]string) error | ||
Mock(req interface{}, fullMethod string) (bool, interface{}, error) | ||
Before(req interface{}, fullMethod string) error | ||
After(result interface{}, err error, fullMethod string) error | ||
Mock(ctx context.Context, req interface{}, fullMethod string) (bool, interface{}, error) | ||
Before(ctx context.Context, req interface{}, fullMethod string) error | ||
After(ctx context.Context, result interface{}, err error, fullMethod string) error | ||
Release() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters