Documentation
¶
Overview ¶
Package nodef comment This file war generated by tars2go 1.1 Generated from NodeF.tars
Package nodef comment This file war generated by tars2go 1.1 Generated from NodeF.tars
Index ¶
- type ServerF
- func (_obj *ServerF) Dispatch(ctx context.Context, _val interface{}, req *requestf.RequestPacket, ...) (err error)
- func (_obj *ServerF) KeepAlive(ServerInfo *ServerInfo, _opt ...map[string]string) (ret int32, err error)
- func (_obj *ServerF) KeepAliveWithContext(ctx context.Context, ServerInfo *ServerInfo, _opt ...map[string]string) (ret int32, err error)
- func (_obj *ServerF) ReportVersion(App string, ServerName string, Version string, _opt ...map[string]string) (ret int32, err error)
- func (_obj *ServerF) ReportVersionWithContext(ctx context.Context, App string, ServerName string, Version string, ...) (ret int32, err error)
- func (_obj *ServerF) SetServant(s m.Servant)
- func (_obj *ServerF) TarsSetTimeout(t int)
- type ServerInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerF ¶
type ServerF struct {
// contains filtered or unexported fields
}
ServerF struct
func (*ServerF) Dispatch ¶
func (_obj *ServerF) Dispatch(ctx context.Context, _val interface{}, req *requestf.RequestPacket, resp *requestf.ResponsePacket, withContext bool) (err error)
Dispatch is used to call the server side implemnet for the method defined in the tars file. withContext shows using context or not.
func (*ServerF) KeepAlive ¶
func (_obj *ServerF) KeepAlive(ServerInfo *ServerInfo, _opt ...map[string]string) (ret int32, err error)
KeepAlive is the proxy function for the method defined in the tars file, with the context
func (*ServerF) KeepAliveWithContext ¶
func (_obj *ServerF) KeepAliveWithContext(ctx context.Context, ServerInfo *ServerInfo, _opt ...map[string]string) (ret int32, err error)
KeepAliveWithContext is the proxy function for the method defined in the tars file, with the context
func (*ServerF) ReportVersion ¶
func (_obj *ServerF) ReportVersion(App string, ServerName string, Version string, _opt ...map[string]string) (ret int32, err error)
ReportVersion is the proxy function for the method defined in the tars file, with the context
func (*ServerF) ReportVersionWithContext ¶
func (_obj *ServerF) ReportVersionWithContext(ctx context.Context, App string, ServerName string, Version string, _opt ...map[string]string) (ret int32, err error)
ReportVersionWithContext is the proxy function for the method defined in the tars file, with the context
func (*ServerF) SetServant ¶
SetServant sets servant for the service.
func (*ServerF) TarsSetTimeout ¶
TarsSetTimeout sets the timeout for the servant which is in ms.
type ServerInfo ¶
type ServerInfo struct { Application string `json:"application"` ServerName string `json:"serverName"` Pid int32 `json:"pid"` Adapter string `json:"adapter"` }
ServerInfo strcut implement
func (*ServerInfo) ReadFrom ¶
func (st *ServerInfo) ReadFrom(_is *codec.Reader) error
ReadFrom reads from _is and put into struct.
func (*ServerInfo) WriteBlock ¶
func (st *ServerInfo) WriteBlock(_os *codec.Buffer, tag byte) error
WriteBlock encode struct