mirror of
https://github.com/go-micro/go-micro.git
synced 2024-11-24 08:02:32 +02:00
20 lines
274 B
Go
20 lines
274 B
Go
package data
|
|
|
|
type Options struct {
|
|
Nodes []string
|
|
Prefix string
|
|
}
|
|
|
|
func Nodes(a ...string) Option {
|
|
return func(o *Options) {
|
|
o.Nodes = a
|
|
}
|
|
}
|
|
|
|
// Prefix sets a prefix to any lock ids used
|
|
func Prefix(p string) Option {
|
|
return func(o *Options) {
|
|
o.Prefix = p
|
|
}
|
|
}
|