Documentation ¶
Overview ¶
Package notifyf comment This file war generated by tars2go 1.1 Generated from NotifyF.tars
Package notifyf comment This file war generated by tars2go 1.1 Generated from NotifyF.tars
Package notifyf comment This file war generated by tars2go 1.1 Generated from NotifyF.tars
Package notifyf comment This file war generated by tars2go 1.1 Generated from NotifyF.tars
Package notifyf comment This file war generated by tars2go 1.1 Generated from NotifyF.tars
Package notifyf comment This file war generated by tars2go 1.1 Generated from NotifyF.tars
Package notifyf comment This file war generated by tars2go 1.1 Generated from NotifyF.tars
Index ¶
- Constants
- type NOTIFYLEVEL
- type Notify
- func (_obj *Notify) Dispatch(ctx context.Context, _val interface{}, req *requestf.RequestPacket, ...) (err error)
- func (_obj *Notify) GetNotifyInfo(StKey *NotifyKey, StInfo *NotifyInfo, _opt ...map[string]string) (ret int32, err error)
- func (_obj *Notify) GetNotifyInfoWithContext(ctx context.Context, StKey *NotifyKey, StInfo *NotifyInfo, ...) (ret int32, err error)
- func (_obj *Notify) NotifyServer(SServerName string, Level NOTIFYLEVEL, SMessage string, ...) (err error)
- func (_obj *Notify) NotifyServerWithContext(ctx context.Context, SServerName string, Level NOTIFYLEVEL, SMessage string, ...) (err error)
- func (_obj *Notify) ReportNotifyInfo(Info *ReportInfo, _opt ...map[string]string) (err error)
- func (_obj *Notify) ReportNotifyInfoWithContext(ctx context.Context, Info *ReportInfo, _opt ...map[string]string) (err error)
- func (_obj *Notify) ReportServer(SServerName string, SThreadId string, SMessage string, ...) (err error)
- func (_obj *Notify) ReportServerWithContext(ctx context.Context, SServerName string, SThreadId string, SMessage string, ...) (err error)
- func (_obj *Notify) SetServant(s m.Servant)
- func (_obj *Notify) TarsSetTimeout(t int)
- type NotifyInfo
- type NotifyItem
- type NotifyKey
- type ReportInfo
- type ReportType
Constants ¶
const ( NOTIFYLEVEL_NOTIFYNORMAL = 0 NOTIFYLEVEL_NOTIFYWARN = 1 NOTIFYLEVEL_NOTIFYERROR = 2 )
const ( ReportType_REPORT = 0 ReportType_NOTIFY = 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NOTIFYLEVEL ¶
type NOTIFYLEVEL int32
type Notify ¶
type Notify struct {
// contains filtered or unexported fields
}
Notify struct
func (*Notify) Dispatch ¶
func (_obj *Notify) 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 (*Notify) GetNotifyInfo ¶
func (_obj *Notify) GetNotifyInfo(StKey *NotifyKey, StInfo *NotifyInfo, _opt ...map[string]string) (ret int32, err error)
GetNotifyInfo is the proxy function for the method defined in the tars file, with the context
func (*Notify) GetNotifyInfoWithContext ¶
func (_obj *Notify) GetNotifyInfoWithContext(ctx context.Context, StKey *NotifyKey, StInfo *NotifyInfo, _opt ...map[string]string) (ret int32, err error)
GetNotifyInfoWithContext is the proxy function for the method defined in the tars file, with the context
func (*Notify) NotifyServer ¶
func (_obj *Notify) NotifyServer(SServerName string, Level NOTIFYLEVEL, SMessage string, _opt ...map[string]string) (err error)
NotifyServer is the proxy function for the method defined in the tars file, with the context
func (*Notify) NotifyServerWithContext ¶
func (_obj *Notify) NotifyServerWithContext(ctx context.Context, SServerName string, Level NOTIFYLEVEL, SMessage string, _opt ...map[string]string) (err error)
NotifyServerWithContext is the proxy function for the method defined in the tars file, with the context
func (*Notify) ReportNotifyInfo ¶
func (_obj *Notify) ReportNotifyInfo(Info *ReportInfo, _opt ...map[string]string) (err error)
ReportNotifyInfo is the proxy function for the method defined in the tars file, with the context
func (*Notify) ReportNotifyInfoWithContext ¶
func (_obj *Notify) ReportNotifyInfoWithContext(ctx context.Context, Info *ReportInfo, _opt ...map[string]string) (err error)
ReportNotifyInfoWithContext is the proxy function for the method defined in the tars file, with the context
func (*Notify) ReportServer ¶
func (_obj *Notify) ReportServer(SServerName string, SThreadId string, SMessage string, _opt ...map[string]string) (err error)
ReportServer is the proxy function for the method defined in the tars file, with the context
func (*Notify) ReportServerWithContext ¶
func (_obj *Notify) ReportServerWithContext(ctx context.Context, SServerName string, SThreadId string, SMessage string, _opt ...map[string]string) (err error)
ReportServerWithContext is the proxy function for the method defined in the tars file, with the context
func (*Notify) SetServant ¶
SetServant sets servant for the service.
func (*Notify) TarsSetTimeout ¶
TarsSetTimeout sets the timeout for the servant which is in ms.
type NotifyInfo ¶
type NotifyInfo struct { Nextpage int32 `json:"nextpage"` NotifyItems []NotifyItem `json:"notifyItems"` }
NotifyInfo strcut implement
func (*NotifyInfo) ReadFrom ¶
func (st *NotifyInfo) ReadFrom(_is *codec.Reader) error
ReadFrom reads from _is and put into struct.
func (*NotifyInfo) WriteBlock ¶
func (st *NotifyInfo) WriteBlock(_os *codec.Buffer, tag byte) error
WriteBlock encode struct
type NotifyItem ¶
type NotifyItem struct { STimeStamp string `json:"sTimeStamp"` SServerId string `json:"sServerId"` ILevel int32 `json:"iLevel"` SMessage string `json:"sMessage"` }
NotifyItem strcut implement
func (*NotifyItem) ReadFrom ¶
func (st *NotifyItem) ReadFrom(_is *codec.Reader) error
ReadFrom reads from _is and put into struct.
func (*NotifyItem) WriteBlock ¶
func (st *NotifyItem) WriteBlock(_os *codec.Buffer, tag byte) error
WriteBlock encode struct
type NotifyKey ¶
NotifyKey strcut implement
func (*NotifyKey) WriteBlock ¶
WriteBlock encode struct
type ReportInfo ¶
type ReportInfo struct { EType ReportType `json:"eType"` SApp string `json:"sApp"` SSet string `json:"sSet"` SContainer string `json:"sContainer"` SServer string `json:"sServer"` SMessage string `json:"sMessage"` SThreadId string `json:"sThreadId"` ELevel NOTIFYLEVEL `json:"eLevel"` }
ReportInfo strcut implement
func (*ReportInfo) ReadFrom ¶
func (st *ReportInfo) ReadFrom(_is *codec.Reader) error
ReadFrom reads from _is and put into struct.
func (*ReportInfo) WriteBlock ¶
func (st *ReportInfo) WriteBlock(_os *codec.Buffer, tag byte) error
WriteBlock encode struct
type ReportType ¶
type ReportType int32