Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Caller ¶
type Caller interface { Call(ctx context.Context, uri interface{}, rq, rs interface{}, opts *rpc.CallOptions) (err error) AsyncCall(ctx context.Context, uri interface{}, rq interface{}, af process.RouterFunc, opts *rpc.AsyncCallOptions) (err error) Notify(ctx context.Context, uri interface{}, rq interface{}, opts *rpc.NoticeOptions) (err error) }
type CallerResponser ¶
type ClientContext ¶
type Link ¶
type Link interface { // network write or close io.WriteCloser // Caller }
type Session ¶
type Session interface { Link // GetConn get raw conn(net.Conn,websocket.Conn...) GetConn() interface{} // GetServer get raw server(*WsServer,*TcpServer...) GetServer() Server // WithSessionValue wrap context.WithValue WithSessionValue(key, value interface{}) // SessionValue wrap context.Context.Value SessionValue(key interface{}) interface{} // AddCloseSessionFunc session close notify AddCloseSessionFunc(f func(sess Session)) }
type SessionContext ¶
Click to show internal directories.
Click to hide internal directories.