trace Read endpoint

This commit is contained in:
Asim Aslam
2020-01-24 21:24:51 +00:00
parent eeb6944ce5
commit 8d2dc8a822
3 changed files with 29 additions and 4 deletions

View File

@@ -10,3 +10,10 @@ type ReadOptions struct {
}
type ReadOption func(o *ReadOptions)
// Read the given trace
func ReadTrace(t string) ReadOption {
return func(o *ReadOptions) {
o.Trace = t
}
}