Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ondispatch ¶
type Ondispatch interface {
Ondispatch(resp *requestf.ResponsePacket)
}
type Protocol ¶
type Servant ¶
type Servant interface { KsfProxy(ctx context.Context, req requestf.RequestPacket, status map[string]string, resp *requestf.ResponsePacket) error KsfInvoke(ctx context.Context, cType byte, sFuncName string, buf []byte, status map[string]string, context map[string]string, resp *requestf.ResponsePacket) error KsfPing(ctx context.Context) KsfSetTimeout(t int) KsfSetProtocol(Protocol) KsfSetVersion(version int16) Name() string SetKsfCallback(callback Ondispatch) SetPushCallback(callback func([]byte)) SetOnCloseCallback(callback func(string)) SetOnConnectCallback(callback func(string)) Endpoints() []*endpoint.Endpoint AllEndpoints() ([]*endpoint.Endpoint, []*endpoint.Endpoint) }
Servant is interface for call the remote server.
Click to show internal directories.
Click to hide internal directories.