Restructure go-micro layout and plugins
This commit is contained in:
@@ -11,12 +11,16 @@ type Registry interface {
|
||||
|
||||
type options struct{}
|
||||
|
||||
type Options func(*options)
|
||||
type Option func(*options)
|
||||
|
||||
var (
|
||||
DefaultRegistry = NewConsulRegistry([]string{})
|
||||
DefaultRegistry = newConsulRegistry([]string{})
|
||||
)
|
||||
|
||||
func NewRegistry(addrs []string, opt ...Option) Registry {
|
||||
return newConsulRegistry(addrs, opt...)
|
||||
}
|
||||
|
||||
func Register(s Service) error {
|
||||
return DefaultRegistry.Register(s)
|
||||
}
|
||||
|
Reference in New Issue
Block a user