Skip to content

Commit 835bbb0

Browse files
author
Hein
committed
style(hooks): reorder fields in HookContext for consistency
1 parent 047a1cc commit 835bbb0

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

pkg/resolvemcp/hooks.go

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,22 @@ const (
3030

3131
// HookContext contains all the data available to a hook
3232
type HookContext struct {
33-
Context context.Context
34-
Handler *Handler
35-
Schema string
36-
Entity string
37-
Model interface{}
38-
Options common.RequestOptions
39-
Operation string
40-
ID string
41-
Data interface{}
42-
Result interface{}
43-
Error error
44-
Query common.SelectQuery
45-
Abort bool
33+
Context context.Context
34+
Handler *Handler
35+
Schema string
36+
Entity string
37+
Model interface{}
38+
Options common.RequestOptions
39+
Operation string
40+
ID string
41+
Data interface{}
42+
Result interface{}
43+
Error error
44+
Query common.SelectQuery
45+
Abort bool
4646
AbortMessage string
4747
AbortCode int
48-
Tx common.Database
48+
Tx common.Database
4949
}
5050

5151
// HookFunc is the signature for hook functions

0 commit comments

Comments
 (0)