store: fix comment

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2020-11-06 00:03:40 +03:00
parent dc63d96e0b
commit 3542d6c824
2 changed files with 1 additions and 8 deletions

View File

@ -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 // ReadOptions configures an individual Read operation
type ReadOptions struct { type ReadOptions struct {
Database, Table string Database, Table string

View File

@ -17,7 +17,7 @@ var (
// Store is a data storage interface // Store is a data storage interface
type Store 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 Init(opts ...Option) error
// Connect is used when store needs to be connected // Connect is used when store needs to be connected
Connect(ctx context.Context) error Connect(ctx context.Context) error