Documentation ¶
Overview ¶
Package statf comment This file war generated by tars2go 1.1 Generated from StatF.tars
Package statf comment This file war generated by tars2go 1.1 Generated from StatF.tars
Package statf comment This file war generated by tars2go 1.1 Generated from StatF.tars
Package statf comment This file war generated by tars2go 1.1 Generated from StatF.tars
Package statf comment This file war generated by tars2go 1.1 Generated from StatF.tars
Index ¶
- type ProxyInfo
- type StatF
- func (_obj *StatF) Dispatch(ctx context.Context, _val interface{}, req *requestf.RequestPacket, ...) (err error)
- func (_obj *StatF) ReportMicMsg(Msg map[StatMicMsgHead]StatMicMsgBody, BFromClient bool, ...) (ret int32, err error)
- func (_obj *StatF) ReportMicMsgWithContext(ctx context.Context, Msg map[StatMicMsgHead]StatMicMsgBody, BFromClient bool, ...) (ret int32, err error)
- func (_obj *StatF) ReportSampleMsg(Msg []StatSampleMsg, _opt ...map[string]string) (ret int32, err error)
- func (_obj *StatF) ReportSampleMsgWithContext(ctx context.Context, Msg []StatSampleMsg, _opt ...map[string]string) (ret int32, err error)
- func (_obj *StatF) SetServant(s m.Servant)
- func (_obj *StatF) TarsSetTimeout(t int)
- type StatMicMsgBody
- type StatMicMsgHead
- type StatSampleMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProxyInfo ¶
type ProxyInfo struct {
BFromClient bool `json:"bFromClient"`
}
ProxyInfo strcut implement
func (*ProxyInfo) WriteBlock ¶
WriteBlock encode struct
type StatF ¶
type StatF struct {
// contains filtered or unexported fields
}
StatF struct
func (*StatF) Dispatch ¶
func (_obj *StatF) 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 (*StatF) ReportMicMsg ¶
func (_obj *StatF) ReportMicMsg(Msg map[StatMicMsgHead]StatMicMsgBody, BFromClient bool, _opt ...map[string]string) (ret int32, err error)
ReportMicMsg is the proxy function for the method defined in the tars file, with the context
func (*StatF) ReportMicMsgWithContext ¶
func (_obj *StatF) ReportMicMsgWithContext(ctx context.Context, Msg map[StatMicMsgHead]StatMicMsgBody, BFromClient bool, _opt ...map[string]string) (ret int32, err error)
ReportMicMsgWithContext is the proxy function for the method defined in the tars file, with the context
func (*StatF) ReportSampleMsg ¶
func (_obj *StatF) ReportSampleMsg(Msg []StatSampleMsg, _opt ...map[string]string) (ret int32, err error)
ReportSampleMsg is the proxy function for the method defined in the tars file, with the context
func (*StatF) ReportSampleMsgWithContext ¶
func (_obj *StatF) ReportSampleMsgWithContext(ctx context.Context, Msg []StatSampleMsg, _opt ...map[string]string) (ret int32, err error)
ReportSampleMsgWithContext is the proxy function for the method defined in the tars file, with the context
func (*StatF) SetServant ¶
SetServant sets servant for the service.
func (*StatF) TarsSetTimeout ¶
TarsSetTimeout sets the timeout for the servant which is in ms.
type StatMicMsgBody ¶
type StatMicMsgBody struct { Count int32 `json:"count"` TimeoutCount int32 `json:"timeoutCount"` ExecCount int32 `json:"execCount"` IntervalCount map[int32]int32 `json:"intervalCount"` TotalRspTime int64 `json:"totalRspTime"` MaxRspTime int32 `json:"maxRspTime"` MinRspTime int32 `json:"minRspTime"` }
StatMicMsgBody strcut implement
func (*StatMicMsgBody) ReadFrom ¶
func (st *StatMicMsgBody) ReadFrom(_is *codec.Reader) error
ReadFrom reads from _is and put into struct.
func (*StatMicMsgBody) WriteBlock ¶
func (st *StatMicMsgBody) WriteBlock(_os *codec.Buffer, tag byte) error
WriteBlock encode struct
type StatMicMsgHead ¶
type StatMicMsgHead struct { MasterName string `json:"masterName"` SlaveName string `json:"slaveName"` InterfaceName string `json:"interfaceName"` MasterIp string `json:"masterIp"` SlaveIp string `json:"slaveIp"` SlavePort int32 `json:"slavePort"` ReturnValue int32 `json:"returnValue"` SlaveSetName string `json:"slaveSetName"` SlaveSetArea string `json:"slaveSetArea"` SlaveSetID string `json:"slaveSetID"` TarsVersion string `json:"tarsVersion"` }
StatMicMsgHead strcut implement
func (*StatMicMsgHead) ReadFrom ¶
func (st *StatMicMsgHead) ReadFrom(_is *codec.Reader) error
ReadFrom reads from _is and put into struct.
func (*StatMicMsgHead) WriteBlock ¶
func (st *StatMicMsgHead) WriteBlock(_os *codec.Buffer, tag byte) error
WriteBlock encode struct
type StatSampleMsg ¶
type StatSampleMsg struct { Unid string `json:"unid"` MasterName string `json:"masterName"` SlaveName string `json:"slaveName"` InterfaceName string `json:"interfaceName"` MasterIp string `json:"masterIp"` SlaveIp string `json:"slaveIp"` Depth int32 `json:"depth"` Width int32 `json:"width"` ParentWidth int32 `json:"parentWidth"` }
StatSampleMsg strcut implement
func (*StatSampleMsg) ReadFrom ¶
func (st *StatSampleMsg) ReadFrom(_is *codec.Reader) error
ReadFrom reads from _is and put into struct.
func (*StatSampleMsg) WriteBlock ¶
func (st *StatSampleMsg) WriteBlock(_os *codec.Buffer, tag byte) error
WriteBlock encode struct