Documentation ¶
Overview ¶
Package propertyf comment This file war generated by tars2go 1.1 Generated from PropertyF.tars
Package propertyf comment This file war generated by tars2go 1.1 Generated from PropertyF.tars
Package propertyf comment This file war generated by tars2go 1.1 Generated from PropertyF.tars
Package propertyf comment This file war generated by tars2go 1.1 Generated from PropertyF.tars
Index ¶
- type PropertyF
- func (_obj *PropertyF) Dispatch(ctx context.Context, _val interface{}, req *requestf.RequestPacket, ...) (err error)
- func (_obj *PropertyF) ReportPropMsg(Statmsg map[StatPropMsgHead]StatPropMsgBody, _opt ...map[string]string) (ret int32, err error)
- func (_obj *PropertyF) ReportPropMsgWithContext(ctx context.Context, Statmsg map[StatPropMsgHead]StatPropMsgBody, ...) (ret int32, err error)
- func (_obj *PropertyF) SetServant(s m.Servant)
- func (_obj *PropertyF) TarsSetTimeout(t int)
- type StatPropInfo
- type StatPropMsgBody
- type StatPropMsgHead
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PropertyF ¶
type PropertyF struct {
// contains filtered or unexported fields
}
PropertyF struct
func (*PropertyF) Dispatch ¶
func (_obj *PropertyF) 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 (*PropertyF) ReportPropMsg ¶
func (_obj *PropertyF) ReportPropMsg(Statmsg map[StatPropMsgHead]StatPropMsgBody, _opt ...map[string]string) (ret int32, err error)
ReportPropMsg is the proxy function for the method defined in the tars file, with the context
func (*PropertyF) ReportPropMsgWithContext ¶
func (_obj *PropertyF) ReportPropMsgWithContext(ctx context.Context, Statmsg map[StatPropMsgHead]StatPropMsgBody, _opt ...map[string]string) (ret int32, err error)
ReportPropMsgWithContext is the proxy function for the method defined in the tars file, with the context
func (*PropertyF) SetServant ¶
SetServant sets servant for the service.
func (*PropertyF) TarsSetTimeout ¶
TarsSetTimeout sets the timeout for the servant which is in ms.
type StatPropInfo ¶
StatPropInfo strcut implement
func (*StatPropInfo) ReadFrom ¶
func (st *StatPropInfo) ReadFrom(_is *codec.Reader) error
ReadFrom reads from _is and put into struct.
func (*StatPropInfo) WriteBlock ¶
func (st *StatPropInfo) WriteBlock(_os *codec.Buffer, tag byte) error
WriteBlock encode struct
type StatPropMsgBody ¶
type StatPropMsgBody struct {
VInfo []StatPropInfo `json:"vInfo"`
}
StatPropMsgBody strcut implement
func (*StatPropMsgBody) ReadBlock ¶
ReadBlock reads struct from the given tag , require or optional.
func (*StatPropMsgBody) ReadFrom ¶
func (st *StatPropMsgBody) ReadFrom(_is *codec.Reader) error
ReadFrom reads from _is and put into struct.
func (*StatPropMsgBody) WriteBlock ¶
func (st *StatPropMsgBody) WriteBlock(_os *codec.Buffer, tag byte) error
WriteBlock encode struct
type StatPropMsgHead ¶
type StatPropMsgHead struct { ModuleName string `json:"moduleName"` Ip string `json:"ip"` PropertyName string `json:"propertyName"` SetName string `json:"setName"` SetArea string `json:"setArea"` SetID string `json:"setID"` SContainer string `json:"sContainer"` IPropertyVer int32 `json:"iPropertyVer"` }
StatPropMsgHead strcut implement
func (*StatPropMsgHead) ReadBlock ¶
ReadBlock reads struct from the given tag , require or optional.
func (*StatPropMsgHead) ReadFrom ¶
func (st *StatPropMsgHead) ReadFrom(_is *codec.Reader) error
ReadFrom reads from _is and put into struct.
func (*StatPropMsgHead) WriteBlock ¶
func (st *StatPropMsgHead) WriteBlock(_os *codec.Buffer, tag byte) error
WriteBlock encode struct