micro/debug/trace/options.go

20 lines
274 B
Go
Raw Normal View History

2020-01-18 13:20:46 +03:00
package trace
type Options struct{}
type Option func(o *Options)
type ReadOptions struct {
// Trace id
Trace string
}
type ReadOption func(o *ReadOptions)
2020-01-25 00:24:51 +03:00
// Read the given trace
func ReadTrace(t string) ReadOption {
return func(o *ReadOptions) {
o.Trace = t
}
}