Documentation
¶
Index ¶
- func ShutdownRestServer() bool
- func StartRestServer(addr string, repo *msd.DiscoverdRepo, logger *log.Logger, ...)
- type Context
- type Discoverd
- func (s *Discoverd) AddRouter(name string, addr string, mss []string)
- func (s *Discoverd) ListMicroApps() []api.MicroApp
- func (s *Discoverd) ListRouters() []api.Router
- func (s *Discoverd) RemoveRouter(addr string)
- func (s *Discoverd) RemoveRouterByHost(name string)
- func (d *Discoverd) Shutdown()
- func (d *Discoverd) ShutdownCh() <-chan struct{}
- func (s *Discoverd) UpdateRouters(rs []api.Router)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ShutdownRestServer ¶
func ShutdownRestServer() bool
func StartRestServer ¶
func StartRestServer(addr string, repo *msd.DiscoverdRepo, logger *log.Logger, shutdownCh chan struct{})
Types ¶
type Discoverd ¶
type Discoverd struct {
// contains filtered or unexported fields
}
func (*Discoverd) ListMicroApps ¶
func (*Discoverd) ListRouters ¶
func (*Discoverd) RemoveRouter ¶
func (*Discoverd) RemoveRouterByHost ¶
func (*Discoverd) ShutdownCh ¶
func (d *Discoverd) ShutdownCh() <-chan struct{}
ShutdownCh returns a channel that can be used to wait for discoverd to shutdown.
func (*Discoverd) UpdateRouters ¶
Click to show internal directories.
Click to hide internal directories.