Documentation ¶
Index ¶
- func NewStaticDirectory(invokers []protocol.Invoker) *staticDirectory
- type BaseDirectory
- func (dir *BaseDirectory) Destroy(doDestroy func())
- func (dir *BaseDirectory) GetDirectoryUrl() *common.URL
- func (dir *BaseDirectory) GetURL() *common.URL
- func (dir *BaseDirectory) IsAvailable() bool
- func (dir *BaseDirectory) RouterChain() router.Chain
- func (dir *BaseDirectory) SetRouterChain(routerChain router.Chain)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStaticDirectory ¶
NewStaticDirectory Create a new staticDirectory with invokers
Types ¶
type BaseDirectory ¶
type BaseDirectory struct {
// contains filtered or unexported fields
}
BaseDirectory Abstract implementation of Directory: Invoker list returned from this Directory's list method have been filtered by Routers
func NewBaseDirectory ¶
func NewBaseDirectory(url *common.URL) BaseDirectory
NewBaseDirectory Create BaseDirectory with URL
func (*BaseDirectory) GetDirectoryUrl ¶
func (dir *BaseDirectory) GetDirectoryUrl() *common.URL
GetDirectoryUrl Get URL instance
func (*BaseDirectory) IsAvailable ¶
func (dir *BaseDirectory) IsAvailable() bool
IsAvailable Once directory init finish, it will change to true
func (*BaseDirectory) RouterChain ¶
func (dir *BaseDirectory) RouterChain() router.Chain
RouterChain Return router chain in directory
func (*BaseDirectory) SetRouterChain ¶
func (dir *BaseDirectory) SetRouterChain(routerChain router.Chain)
SetRouterChain Set router chain in directory
Click to show internal directories.
Click to hide internal directories.