Router table.Read replaces List/Query (#1966)

* Table.REad insted of list and query

* fmt
This commit is contained in:
Asim Aslam
2020-08-23 13:10:48 +01:00
committed by GitHub
parent fc54503232
commit 82e8298b73
10 changed files with 44 additions and 680 deletions

View File

@@ -77,3 +77,16 @@ func DefaultOptions() Options {
Context: context.Background(),
}
}
type ReadOptions struct {
Service string
}
type ReadOption func(o *ReadOptions)
// ReadService sets the service to read from the table
func ReadService(s string) ReadOption {
return func(o *ReadOptions) {
o.Service = s
}
}