store: fix comment
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
dc63d96e0b
commit
3542d6c824
@ -73,13 +73,6 @@ func Table(t string) Option {
|
||||
}
|
||||
}
|
||||
|
||||
// WithContext sets the stores context, for any extra configuration
|
||||
func WithContext(c context.Context) Option {
|
||||
return func(o *Options) {
|
||||
o.Context = c
|
||||
}
|
||||
}
|
||||
|
||||
// ReadOptions configures an individual Read operation
|
||||
type ReadOptions struct {
|
||||
Database, Table string
|
||||
|
@ -17,7 +17,7 @@ var (
|
||||
|
||||
// Store is a data storage interface
|
||||
type Store interface {
|
||||
// Init initialises the store. It must perform any required setup on the backing storage implementation and check that it is ready for use, returning any errors.
|
||||
// Init initialises the store
|
||||
Init(opts ...Option) error
|
||||
// Connect is used when store needs to be connected
|
||||
Connect(ctx context.Context) error
|
||||
|
Loading…
x
Reference in New Issue
Block a user