Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FDataParsing ¶
FDataParsing 指定数据解析函数 返回值如bean!=nil err==nil则会向后端模块传入 func(session,bean)(result, error) 否则使用json或[]byte传参
type FSelector ¶
type FSelector func(session gate.Session, topic string, u *url.URL) (s module.ServerSession, err error)
FSelector 服务节点选择函数,可以自定义服务筛选规则 如不指定,默认使用 Scheme作为moduleType,Hostname作为服务节点nodeId 如随机到服务节点Hostname可以用modulus,cache,random等通用规则 例如: im://modulus/remove_feeds_member?msg_id=1002
type URIRoute ¶
type URIRoute struct { Selector FSelector DataParsing FDataParsing CallTimeOut time.Duration // contains filtered or unexported fields }
URIRoute URIRoute
func NewURIRoute ¶
NewURIRoute NewURIRoute
Click to show internal directories.
Click to hide internal directories.