nodef

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Overview

Package nodef comment This file war generated by tars2go 1.1 Generated from NodeF.tars

Package nodef comment This file war generated by tars2go 1.1 Generated from NodeF.tars

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerF

type ServerF struct {
	// contains filtered or unexported fields
}

ServerF struct

func (*ServerF) Dispatch

func (_obj *ServerF) 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 (*ServerF) KeepAlive

func (_obj *ServerF) KeepAlive(ServerInfo *ServerInfo, _opt ...map[string]string) (ret int32, err error)

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

func (*ServerF) KeepAliveWithContext

func (_obj *ServerF) KeepAliveWithContext(ctx context.Context, ServerInfo *ServerInfo, _opt ...map[string]string) (ret int32, err error)

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

func (*ServerF) ReportVersion

func (_obj *ServerF) ReportVersion(App string, ServerName string, Version string, _opt ...map[string]string) (ret int32, err error)

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

func (*ServerF) ReportVersionWithContext

func (_obj *ServerF) ReportVersionWithContext(ctx context.Context, App string, ServerName string, Version string, _opt ...map[string]string) (ret int32, err error)

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

func (*ServerF) SetServant

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

SetServant sets servant for the service.

func (*ServerF) TarsSetTimeout

func (_obj *ServerF) TarsSetTimeout(t int)

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

type ServerInfo

type ServerInfo struct {
	Application string `json:"application"`
	ServerName  string `json:"serverName"`
	Pid         int32  `json:"pid"`
	Adapter     string `json:"adapter"`
}

ServerInfo strcut implement

func (*ServerInfo) ReadBlock

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

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

func (*ServerInfo) ReadFrom

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

ReadFrom reads from _is and put into struct.

func (*ServerInfo) WriteBlock

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

WriteBlock encode struct

func (*ServerInfo) WriteTo

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

WriteTo encode struct to buffer

Jump to

Keyboard shortcuts

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