Vasiliy Tolstov
06136312bb
* regen files with never protoc * rewrite import path Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
19 lines
360 B
Go
19 lines
360 B
Go
package memory
|
|
|
|
import "github.com/unistack-org/micro/v3/store"
|
|
|
|
// Options which are used to configure the in-memory stream
|
|
type Options struct {
|
|
Store store.Store
|
|
}
|
|
|
|
// Option is a function which configures options
|
|
type Option func(o *Options)
|
|
|
|
// Store sets the store to use
|
|
func Store(s store.Store) Option {
|
|
return func(o *Options) {
|
|
o.Store = s
|
|
}
|
|
}
|