support ability to set store, address and namespace via flags and env vars (#1092)
This commit is contained in:
		| @@ -28,6 +28,17 @@ type serviceStore struct { | ||||
| 	Client pb.StoreService | ||||
| } | ||||
|  | ||||
| func (s *serviceStore) Init(opts ...store.Option) error { | ||||
| 	for _, o := range opts { | ||||
| 		o(&s.options) | ||||
| 	} | ||||
| 	s.Namespace = s.options.Namespace | ||||
| 	s.Prefix = s.options.Prefix | ||||
| 	s.Nodes = s.options.Nodes | ||||
|  | ||||
| 	return nil | ||||
| } | ||||
|  | ||||
| func (s *serviceStore) Context() context.Context { | ||||
| 	ctx := context.Background() | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user