Skip to content

Commit eb0e19c

Browse files
authored
Update the CommenterOptions struct (#190)
1 parent 1afba11 commit eb0e19c

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

go/core/core.go

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,34 @@ const (
3636
Application string = "application"
3737
)
3838

39-
type CommenterOptions struct {
39+
const (
40+
Route string = "route"
41+
Controller string = "controller"
42+
Action string = "action"
43+
Framework string = "framework"
44+
Driver string = "db_driver"
45+
Traceparent string = "traceparent"
46+
Application string = "application"
47+
)
48+
49+
type CommenterConfig struct {
4050
EnableDBDriver bool
4151
EnableRoute bool
4252
EnableFramework bool
4353
EnableController bool
4454
EnableAction bool
4555
EnableTraceparent bool
4656
EnableApplication bool
47-
Application string
57+
}
58+
59+
type StaticTags struct {
60+
Application string
61+
DriverName string
62+
}
63+
64+
type CommenterOptions struct {
65+
Config CommenterConfig
66+
Tags StaticTags
4867
}
4968

5069
func encodeURL(k string) string {

0 commit comments

Comments
 (0)