Router table.Read replaces List/Query (#1966)
* Table.REad insted of list and query * fmt
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user