mirror of
https://github.com/go-micro/go-micro.git
synced 2025-11-29 21:47:44 +02:00
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