base

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BaseResp_Extra_DEFAULT map[string]string
View Source
var Base_Extra_DEFAULT map[string]string

Functions

This section is empty.

Types

type Base

type Base struct {
	LogID      string            `thrift:"LogID,1" json:"LogID"`
	Caller     string            `thrift:"Caller,2" json:"Caller"`
	Addr       string            `thrift:"Addr,3" json:"Addr"`
	Client     string            `thrift:"Client,4" json:"Client"`
	TrafficEnv *TrafficEnv       `thrift:"TrafficEnv,5" json:"TrafficEnv,omitempty"`
	Extra      map[string]string `thrift:"Extra,6" json:"Extra,omitempty"`
}

func NewBase

func NewBase() *Base

func (*Base) BLength

func (p *Base) BLength() int

func (*Base) DeepEqual

func (p *Base) DeepEqual(ano *Base) bool

func (*Base) FastRead

func (p *Base) FastRead(buf []byte) (int, error)

func (*Base) FastReadField1

func (p *Base) FastReadField1(buf []byte) (int, error)

func (*Base) FastReadField2

func (p *Base) FastReadField2(buf []byte) (int, error)

func (*Base) FastReadField3

func (p *Base) FastReadField3(buf []byte) (int, error)

func (*Base) FastReadField4

func (p *Base) FastReadField4(buf []byte) (int, error)

func (*Base) FastReadField5

func (p *Base) FastReadField5(buf []byte) (int, error)

func (*Base) FastReadField6

func (p *Base) FastReadField6(buf []byte) (int, error)

func (*Base) FastWrite

func (p *Base) FastWrite(buf []byte) int

for compatibility

func (*Base) Field1DeepEqual

func (p *Base) Field1DeepEqual(src string) bool

func (*Base) Field2DeepEqual

func (p *Base) Field2DeepEqual(src string) bool

func (*Base) Field3DeepEqual

func (p *Base) Field3DeepEqual(src string) bool

func (*Base) Field4DeepEqual

func (p *Base) Field4DeepEqual(src string) bool

func (*Base) Field5DeepEqual

func (p *Base) Field5DeepEqual(src *TrafficEnv) bool

func (*Base) Field6DeepEqual

func (p *Base) Field6DeepEqual(src map[string]string) bool

func (*Base) GetAddr

func (p *Base) GetAddr() (v string)

func (*Base) GetCaller

func (p *Base) GetCaller() (v string)

func (*Base) GetClient

func (p *Base) GetClient() (v string)

func (*Base) GetExtra

func (p *Base) GetExtra() (v map[string]string)

func (*Base) GetLogID

func (p *Base) GetLogID() (v string)

func (*Base) GetTrafficEnv

func (p *Base) GetTrafficEnv() (v *TrafficEnv)

func (*Base) IsSetExtra

func (p *Base) IsSetExtra() bool

func (*Base) IsSetTrafficEnv

func (p *Base) IsSetTrafficEnv() bool

func (*Base) Read

func (p *Base) Read(iprot thrift.TProtocol) (err error)

func (*Base) ReadField1

func (p *Base) ReadField1(iprot thrift.TProtocol) error

func (*Base) ReadField2

func (p *Base) ReadField2(iprot thrift.TProtocol) error

func (*Base) ReadField3

func (p *Base) ReadField3(iprot thrift.TProtocol) error

func (*Base) ReadField4

func (p *Base) ReadField4(iprot thrift.TProtocol) error

func (*Base) ReadField5

func (p *Base) ReadField5(iprot thrift.TProtocol) error

func (*Base) ReadField6

func (p *Base) ReadField6(iprot thrift.TProtocol) error

func (*Base) SetAddr

func (p *Base) SetAddr(val string)

func (*Base) SetCaller

func (p *Base) SetCaller(val string)

func (*Base) SetClient

func (p *Base) SetClient(val string)

func (*Base) SetExtra

func (p *Base) SetExtra(val map[string]string)

func (*Base) SetLogID

func (p *Base) SetLogID(val string)

func (*Base) SetTrafficEnv

func (p *Base) SetTrafficEnv(val *TrafficEnv)

func (*Base) String

func (p *Base) String() string

func (*Base) Write

func (p *Base) Write(oprot thrift.TProtocol) (err error)

type BaseResp

type BaseResp struct {
	StatusMessage string            `thrift:"StatusMessage,1" json:"StatusMessage"`
	StatusCode    int32             `thrift:"StatusCode,2" json:"StatusCode"`
	Extra         map[string]string `thrift:"Extra,3" json:"Extra,omitempty"`
}

func NewBaseResp

func NewBaseResp() *BaseResp

func (*BaseResp) BLength

func (p *BaseResp) BLength() int

func (*BaseResp) DeepEqual

func (p *BaseResp) DeepEqual(ano *BaseResp) bool

func (*BaseResp) FastRead

func (p *BaseResp) FastRead(buf []byte) (int, error)

func (*BaseResp) FastReadField1

func (p *BaseResp) FastReadField1(buf []byte) (int, error)

func (*BaseResp) FastReadField2

func (p *BaseResp) FastReadField2(buf []byte) (int, error)

func (*BaseResp) FastReadField3

func (p *BaseResp) FastReadField3(buf []byte) (int, error)

func (*BaseResp) FastWrite

func (p *BaseResp) FastWrite(buf []byte) int

for compatibility

func (*BaseResp) Field1DeepEqual

func (p *BaseResp) Field1DeepEqual(src string) bool

func (*BaseResp) Field2DeepEqual

func (p *BaseResp) Field2DeepEqual(src int32) bool

func (*BaseResp) Field3DeepEqual

func (p *BaseResp) Field3DeepEqual(src map[string]string) bool

func (*BaseResp) GetExtra

func (p *BaseResp) GetExtra() (v map[string]string)

func (*BaseResp) GetStatusCode

func (p *BaseResp) GetStatusCode() (v int32)

func (*BaseResp) GetStatusMessage

func (p *BaseResp) GetStatusMessage() (v string)

func (*BaseResp) IsSetExtra

func (p *BaseResp) IsSetExtra() bool

func (*BaseResp) Read

func (p *BaseResp) Read(iprot thrift.TProtocol) (err error)

func (*BaseResp) ReadField1

func (p *BaseResp) ReadField1(iprot thrift.TProtocol) error

func (*BaseResp) ReadField2

func (p *BaseResp) ReadField2(iprot thrift.TProtocol) error

func (*BaseResp) ReadField3

func (p *BaseResp) ReadField3(iprot thrift.TProtocol) error

func (*BaseResp) SetExtra

func (p *BaseResp) SetExtra(val map[string]string)

func (*BaseResp) SetStatusCode

func (p *BaseResp) SetStatusCode(val int32)

func (*BaseResp) SetStatusMessage

func (p *BaseResp) SetStatusMessage(val string)

func (*BaseResp) String

func (p *BaseResp) String() string

func (*BaseResp) Write

func (p *BaseResp) Write(oprot thrift.TProtocol) (err error)

type TrafficEnv

type TrafficEnv struct {
	Open bool   `thrift:"Open,1" json:"Open"`
	Env  string `thrift:"Env,2" json:"Env"`
}
var Base_TrafficEnv_DEFAULT *TrafficEnv

func NewTrafficEnv

func NewTrafficEnv() *TrafficEnv

func (*TrafficEnv) BLength

func (p *TrafficEnv) BLength() int

func (*TrafficEnv) DeepEqual

func (p *TrafficEnv) DeepEqual(ano *TrafficEnv) bool

func (*TrafficEnv) FastRead

func (p *TrafficEnv) FastRead(buf []byte) (int, error)

func (*TrafficEnv) FastReadField1

func (p *TrafficEnv) FastReadField1(buf []byte) (int, error)

func (*TrafficEnv) FastReadField2

func (p *TrafficEnv) FastReadField2(buf []byte) (int, error)

func (*TrafficEnv) FastWrite

func (p *TrafficEnv) FastWrite(buf []byte) int

for compatibility

func (*TrafficEnv) Field1DeepEqual

func (p *TrafficEnv) Field1DeepEqual(src bool) bool

func (*TrafficEnv) Field2DeepEqual

func (p *TrafficEnv) Field2DeepEqual(src string) bool

func (*TrafficEnv) GetEnv

func (p *TrafficEnv) GetEnv() (v string)

func (*TrafficEnv) GetOpen

func (p *TrafficEnv) GetOpen() (v bool)

func (*TrafficEnv) Read

func (p *TrafficEnv) Read(iprot thrift.TProtocol) (err error)

func (*TrafficEnv) ReadField1

func (p *TrafficEnv) ReadField1(iprot thrift.TProtocol) error

func (*TrafficEnv) ReadField2

func (p *TrafficEnv) ReadField2(iprot thrift.TProtocol) error

func (*TrafficEnv) SetEnv

func (p *TrafficEnv) SetEnv(val string)

func (*TrafficEnv) SetOpen

func (p *TrafficEnv) SetOpen(val bool)

func (*TrafficEnv) String

func (p *TrafficEnv) String() string

func (*TrafficEnv) Write

func (p *TrafficEnv) Write(oprot thrift.TProtocol) (err error)

Jump to

Keyboard shortcuts

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