1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-26 03:52:12 +02:00
kratos/pkg/net/trace/option.go
2019-02-01 15:57:43 +08:00

18 lines
245 B
Go

package trace
var defaultOption = option{}
type option struct {
Debug bool
}
// Option dapper Option
type Option func(*option)
// EnableDebug enable debug mode
func EnableDebug() Option {
return func(opt *option) {
opt.Debug = true
}
}