mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 01:28:27 +08:00
12 lines
369 B
Go
12 lines
369 B
Go
package hook
|
|
|
|
import "context"
|
|
|
|
type Hook interface {
|
|
Init(params map[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
|
|
Release()
|
|
}
|