notifyf

package
v0.0.0-...-10d78e3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2020 License: BSD-3-Clause Imports: 7 Imported by: 0

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

View Source
const (
	NOTIFYLEVEL_NOTIFYNORMAL = 0
	NOTIFYLEVEL_NOTIFYWARN   = 1
	NOTIFYLEVEL_NOTIFYERROR  = 2
)
View Source
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

func (_obj *Notify) SetServant(s m.Servant)

SetServant sets servant for the service.

func (*Notify) TarsSetTimeout

func (_obj *Notify) TarsSetTimeout(t int)

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) ReadBlock

func (st *NotifyInfo) ReadBlock(_is *codec.Reader, tag byte, require bool) error

ReadBlock reads struct from the given tag , require or optional.

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

func (*NotifyInfo) WriteTo

func (st *NotifyInfo) WriteTo(_os *codec.Buffer) error

WriteTo encode struct to buffer

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) ReadBlock

func (st *NotifyItem) ReadBlock(_is *codec.Reader, tag byte, require bool) error

ReadBlock reads struct from the given tag , require or optional.

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

func (*NotifyItem) WriteTo

func (st *NotifyItem) WriteTo(_os *codec.Buffer) error

WriteTo encode struct to buffer

type NotifyKey

type NotifyKey struct {
	Name string `json:"name"`
	Ip   string `json:"ip"`
	Page int32  `json:"page"`
}

NotifyKey strcut implement

func (*NotifyKey) ReadBlock

func (st *NotifyKey) ReadBlock(_is *codec.Reader, tag byte, require bool) error

ReadBlock reads struct from the given tag , require or optional.

func (*NotifyKey) ReadFrom

func (st *NotifyKey) ReadFrom(_is *codec.Reader) error

ReadFrom reads from _is and put into struct.

func (*NotifyKey) WriteBlock

func (st *NotifyKey) WriteBlock(_os *codec.Buffer, tag byte) error

WriteBlock encode struct

func (*NotifyKey) WriteTo

func (st *NotifyKey) WriteTo(_os *codec.Buffer) error

WriteTo encode struct to buffer

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) ReadBlock

func (st *ReportInfo) ReadBlock(_is *codec.Reader, tag byte, require bool) error

ReadBlock reads struct from the given tag , require or optional.

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

func (*ReportInfo) WriteTo

func (st *ReportInfo) WriteTo(_os *codec.Buffer) error

WriteTo encode struct to buffer

type ReportType

type ReportType int32

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL