micro/debug/trace/options.go
2020-01-24 21:24:51 +00:00

20 lines
274 B
Go

package trace
type Options struct{}
type Option func(o *Options)
type ReadOptions struct {
// Trace id
Trace string
}
type ReadOption func(o *ReadOptions)
// Read the given trace
func ReadTrace(t string) ReadOption {
return func(o *ReadOptions) {
o.Trace = t
}
}