Skip to content

Commit

Permalink
Merge pull request #1 from milvus-io/master
Browse files Browse the repository at this point in the history
更新版本
  • Loading branch information
wangjn163 authored Dec 6, 2024
2 parents 6de3d96 + 180ce3a commit c83b92f
Show file tree
Hide file tree
Showing 10 changed files with 4,693 additions and 4,166 deletions.
1,324 changes: 695 additions & 629 deletions go-api/commonpb/common.pb.go

Large diffs are not rendered by default.

13 changes: 12 additions & 1 deletion go-api/hook/hook.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package hook

import "context"
import (
"context"
)

type Hook interface {
Init(params map[string]string) error
Expand All @@ -11,6 +13,15 @@ type Hook interface {
Release()
}

type LogInfo interface {
GetFields(fields []string) map[string]any
}

type Extension interface {
Report(info any) int
ReportRefused(ctx context.Context, req interface{}, resp interface{}, err error, fullMethod string) error
}

type HookContextKeyType string

const GinParamsKey = HookContextKeyType("gin_params")
Loading

0 comments on commit c83b92f

Please sign in to comment.