endpointf

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: BSD-3-Clause Imports: 2 Imported by: 7

Documentation

Overview

Code generated by tars2go 1.2.3, DO NOT EDIT. This file was generated from ./EndpointF.tars Package endpointf comment

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EndpointF

type EndpointF struct {
	Host        string `json:"host" tars:"host,tag:0,require:true"`
	Port        int32  `json:"port" tars:"port,tag:1,require:true"`
	Timeout     int32  `json:"timeout" tars:"timeout,tag:2,require:true"`
	Istcp       int32  `json:"istcp" tars:"istcp,tag:3,require:true"`
	Grid        int32  `json:"grid" tars:"grid,tag:4,require:true"`
	Groupworkid int32  `json:"groupworkid" tars:"groupworkid,tag:5,require:false"`
	Grouprealid int32  `json:"grouprealid" tars:"grouprealid,tag:6,require:false"`
	SetId       string `json:"setId" tars:"setId,tag:7,require:false"`
	Qos         int32  `json:"qos" tars:"qos,tag:8,require:false"`
	BakFlag     int32  `json:"bakFlag" tars:"bakFlag,tag:9,require:false"`
	Weight      int32  `json:"weight" tars:"weight,tag:11,require:false"`
	WeightType  int32  `json:"weightType" tars:"weightType,tag:12,require:false"`
	AuthType    int32  `json:"authType" tars:"authType,tag:13,require:false"`
}

EndpointF struct implement

func (*EndpointF) ReadBlock

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

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

func (*EndpointF) ReadFrom

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

ReadFrom reads from readBuf and put into struct.

func (*EndpointF) ResetDefault added in v1.2.0

func (st *EndpointF) ResetDefault()

func (*EndpointF) WriteBlock

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

WriteBlock encode struct

func (*EndpointF) WriteTo

func (st *EndpointF) 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