Skip to content

Commit

Permalink
Update the CommenterOptions struct (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjs994 committed Nov 23, 2022
1 parent 1afba11 commit eb0e19c
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions go/core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,34 @@ const (
Application string = "application"
)

type CommenterOptions struct {
const (
Route string = "route"
Controller string = "controller"
Action string = "action"
Framework string = "framework"
Driver string = "db_driver"
Traceparent string = "traceparent"
Application string = "application"
)

type CommenterConfig struct {
EnableDBDriver bool
EnableRoute bool
EnableFramework bool
EnableController bool
EnableAction bool
EnableTraceparent bool
EnableApplication bool
Application string
}

type StaticTags struct {
Application string
DriverName string
}

type CommenterOptions struct {
Config CommenterConfig
Tags StaticTags
}

func encodeURL(k string) string {
Expand Down

0 comments on commit eb0e19c

Please sign in to comment.