add using lazy connect (#361)
#357 Co-authored-by: Василий Толстов <v.tolstov@unistack.org> Reviewed-on: #361 Reviewed-by: Василий Толстов <v.tolstov@unistack.org> Co-authored-by: Evstigneev Denis <danteevstigneev@yandex.ru> Co-committed-by: Evstigneev Denis <danteevstigneev@yandex.ru>
This commit is contained in:
@@ -41,6 +41,8 @@ type Options struct {
|
||||
Timeout time.Duration
|
||||
// Hooks can be run before/after store Read/List/Write/Exists/Delete
|
||||
Hooks options.Hooks
|
||||
// LazyConnect creates a connection when using store
|
||||
LazyConnect bool
|
||||
}
|
||||
|
||||
// NewOptions creates options struct
|
||||
|
Reference in New Issue
Block a user