Documentation
¶
Index ¶
- Variables
- func DoChain(ctx EoContext, orgfilter Filters, append ...IFilter) error
- type Attrs
- type BalanceHandler
- type CompleteHandler
- type EoApp
- type EoContext
- type Filters
- type FinishHandler
- type IAttributes
- type IChain
- type IChainPro
- type IFilter
- type INode
- type NodeStatus
- type PassHostMod
- type UpstreamHostHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var (
FilterSkillName = config.TypeNameOf((*IFilter)(nil))
)
Functions ¶
Types ¶
type BalanceHandler ¶
type CompleteHandler ¶
type EoContext ¶
type EoContext interface { RequestId() string AcceptTime() time.Time Context() context.Context Value(key interface{}) interface{} WithValue(key, val interface{}) Scheme() string Assert(i interface{}) error SetLabel(name, value string) GetLabel(name string) string Labels() map[string]string GetComplete() CompleteHandler SetCompleteHandler(handler CompleteHandler) GetFinish() FinishHandler SetFinish(handler FinishHandler) GetApp() EoApp SetApp(app EoApp) GetBalance() BalanceHandler SetBalance(handler BalanceHandler) GetUpstreamHostHandler() UpstreamHostHandler SetUpstreamHostHandler(handler UpstreamHostHandler) LocalIP() net.IP LocalAddr() net.Addr LocalPort() int }
type FinishHandler ¶
type IAttributes ¶
IAttributes 属性接口
type INode ¶
type INode interface { IAttributes ID() string IP() string Port() int Addr() string Status() NodeStatus Up() Down() Leave() }
INode 节点接口
type NodeStatus ¶
type NodeStatus int
NodeStatus 节点状态类型
const ( //Running 节点运行中状态 Running NodeStatus = 1 //Down 节点不可用状态 Down NodeStatus = 2 //Leave 节点离开状态 Leave NodeStatus = 3 )
type UpstreamHostHandler ¶
type UpstreamHostHandler interface {
PassHost() (PassHostMod, string)
}
Click to show internal directories.
Click to hide internal directories.