Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APP ¶
type APP interface {
GetNode(id string) (NodeAddress, bool)
All() map[string]NodeAddress
}
type Context ¶
type Context interface {
LoadBalance() LoadBalance
SetLoadBalance(balance LoadBalance)
DO() DoHandler
SetDoHandler(handler DoHandler)
Finish() FinishHandler
SetFinish(handler FinishHandler)
Assert(i interface{}) error
Scheme() string
}
type FinishHandler ¶
type FinishHandler interface {
Finish() error
}
type LoadBalance ¶
type LoadBalance interface {
Select(app APP) (NodeAddress, error)
}
type NodeAddress ¶
type NodeAddress = string
Click to show internal directories.
Click to hide internal directories.