propertyf

package
v0.0.0-...-bc1b0c2 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Overview

Code generated by tars2go 1.2.3, DO NOT EDIT. This file was generated from PropertyF.tars Package propertyf comment

Code generated by tars2go 1.2.3, DO NOT EDIT. This file was generated from PropertyF.tars Package propertyf comment

Index

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 NewPropertyF

func NewPropertyF() *PropertyF

NewPropertyF creates a new PropertyF servant.

func (*PropertyF) Dispatch

func (obj *PropertyF) Dispatch(tarsCtx context.Context, val interface{}, tarsReq *requestf.RequestPacket, tarsResp *requestf.ResponsePacket, withContext bool) (err error)

Dispatch is used to call the server side implement for the method defined in the tars file. withContext shows using context or not.

func (*PropertyF) Endpoints

func (obj *PropertyF) Endpoints() []*endpoint.Endpoint

Endpoints returns all active endpoint.Endpoint

func (*PropertyF) ReportPropMsg

func (obj *PropertyF) ReportPropMsg(statmsg map[StatPropMsgHead]StatPropMsgBody, opts ...map[string]string) (int32, error)

ReportPropMsg is the proxy function for the method defined in the tars file, with the context

func (*PropertyF) ReportPropMsgOneWayWithContext

func (obj *PropertyF) ReportPropMsgOneWayWithContext(tarsCtx context.Context, statmsg map[StatPropMsgHead]StatPropMsgBody, opts ...map[string]string) (ret int32, err error)

ReportPropMsgOneWayWithContext is the proxy function for the method defined in the tars file, with the context

func (*PropertyF) ReportPropMsgWithContext

func (obj *PropertyF) ReportPropMsgWithContext(tarsCtx context.Context, statmsg map[StatPropMsgHead]StatPropMsgBody, opts ...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

func (obj *PropertyF) SetServant(servant model.Servant)

SetServant sets servant for the service.

func (*PropertyF) TarsSetProtocol

func (obj *PropertyF) TarsSetProtocol(p model.Protocol)

TarsSetProtocol sets the protocol for the servant.

func (*PropertyF) TarsSetTimeout

func (obj *PropertyF) TarsSetTimeout(timeout int)

TarsSetTimeout sets the timeout for the servant which is in ms.

type PropertyFServant

type PropertyFServant interface {
	ReportPropMsg(statmsg map[StatPropMsgHead]StatPropMsgBody) (ret int32, err error)
}

type PropertyFServantWithContext

type PropertyFServantWithContext interface {
	ReportPropMsg(tarsCtx context.Context, statmsg map[StatPropMsgHead]StatPropMsgBody) (ret int32, err error)
}

type StatPropInfo

type StatPropInfo struct {
	Policy string `json:"policy" tars:"policy,tag:0,require:true"`
	Value  string `json:"value" tars:"value,tag:1,require:true"`
}

StatPropInfo struct implement

func (*StatPropInfo) ReadBlock

func (st *StatPropInfo) ReadBlock(readBuf *codec.Reader, tag byte, require bool) error

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

func (*StatPropInfo) ReadFrom

func (st *StatPropInfo) ReadFrom(readBuf *codec.Reader) error

ReadFrom reads from readBuf and put into struct.

func (*StatPropInfo) ResetDefault

func (st *StatPropInfo) ResetDefault()

func (*StatPropInfo) WriteBlock

func (st *StatPropInfo) WriteBlock(buf *codec.Buffer, tag byte) error

WriteBlock encode struct

func (*StatPropInfo) WriteTo

func (st *StatPropInfo) WriteTo(buf *codec.Buffer) (err error)

WriteTo encode struct to buffer

type StatPropMsgBody

type StatPropMsgBody struct {
	VInfo []StatPropInfo `json:"vInfo" tars:"vInfo,tag:0,require:true"`
}

StatPropMsgBody struct implement

func (*StatPropMsgBody) ReadBlock

func (st *StatPropMsgBody) ReadBlock(readBuf *codec.Reader, tag byte, require bool) error

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

func (*StatPropMsgBody) ReadFrom

func (st *StatPropMsgBody) ReadFrom(readBuf *codec.Reader) error

ReadFrom reads from readBuf and put into struct.

func (*StatPropMsgBody) ResetDefault

func (st *StatPropMsgBody) ResetDefault()

func (*StatPropMsgBody) WriteBlock

func (st *StatPropMsgBody) WriteBlock(buf *codec.Buffer, tag byte) error

WriteBlock encode struct

func (*StatPropMsgBody) WriteTo

func (st *StatPropMsgBody) WriteTo(buf *codec.Buffer) (err error)

WriteTo encode struct to buffer

type StatPropMsgHead

type StatPropMsgHead struct {
	ModuleName   string `json:"moduleName" tars:"moduleName,tag:0,require:true"`
	Ip           string `json:"ip" tars:"ip,tag:1,require:true"`
	PropertyName string `json:"propertyName" tars:"propertyName,tag:2,require:true"`
	SetName      string `json:"setName" tars:"setName,tag:3,require:false"`
	SetArea      string `json:"setArea" tars:"setArea,tag:4,require:false"`
	SetID        string `json:"setID" tars:"setID,tag:5,require:false"`
	SContainer   string `json:"sContainer" tars:"sContainer,tag:6,require:false"`
	IPropertyVer int32  `json:"iPropertyVer" tars:"iPropertyVer,tag:7,require:false"`
}

StatPropMsgHead struct implement

func (*StatPropMsgHead) ReadBlock

func (st *StatPropMsgHead) ReadBlock(readBuf *codec.Reader, tag byte, require bool) error

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

func (*StatPropMsgHead) ReadFrom

func (st *StatPropMsgHead) ReadFrom(readBuf *codec.Reader) error

ReadFrom reads from readBuf and put into struct.

func (*StatPropMsgHead) ResetDefault

func (st *StatPropMsgHead) ResetDefault()

func (*StatPropMsgHead) WriteBlock

func (st *StatPropMsgHead) WriteBlock(buf *codec.Buffer, tag byte) error

WriteBlock encode struct

func (*StatPropMsgHead) WriteTo

func (st *StatPropMsgHead) WriteTo(buf *codec.Buffer) (err error)

WriteTo encode struct to buffer

Jump to

Keyboard shortcuts

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