Documentation ¶
Index ¶
- Variables
- type Base
- func (p *Base) BLength() int
- func (p *Base) DeepEqual(ano *Base) bool
- func (p *Base) FastRead(buf []byte) (int, error)
- func (p *Base) FastReadField1(buf []byte) (int, error)
- func (p *Base) FastReadField2(buf []byte) (int, error)
- func (p *Base) FastReadField3(buf []byte) (int, error)
- func (p *Base) FastReadField4(buf []byte) (int, error)
- func (p *Base) FastReadField5(buf []byte) (int, error)
- func (p *Base) FastReadField6(buf []byte) (int, error)
- func (p *Base) FastWrite(buf []byte) int
- func (p *Base) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *Base) Field1DeepEqual(src string) bool
- func (p *Base) Field2DeepEqual(src string) bool
- func (p *Base) Field3DeepEqual(src string) bool
- func (p *Base) Field4DeepEqual(src string) bool
- func (p *Base) Field5DeepEqual(src *TrafficEnv) bool
- func (p *Base) Field6DeepEqual(src map[string]string) bool
- func (p *Base) GetAddr() (v string)
- func (p *Base) GetCaller() (v string)
- func (p *Base) GetClient() (v string)
- func (p *Base) GetExtra() (v map[string]string)
- func (p *Base) GetLogID() (v string)
- func (p *Base) GetTrafficEnv() (v *TrafficEnv)
- func (p *Base) InitDefault()
- func (p *Base) IsSetExtra() bool
- func (p *Base) IsSetTrafficEnv() bool
- func (p *Base) Read(iprot thrift.TProtocol) (err error)
- func (p *Base) ReadField1(iprot thrift.TProtocol) error
- func (p *Base) ReadField2(iprot thrift.TProtocol) error
- func (p *Base) ReadField3(iprot thrift.TProtocol) error
- func (p *Base) ReadField4(iprot thrift.TProtocol) error
- func (p *Base) ReadField5(iprot thrift.TProtocol) error
- func (p *Base) ReadField6(iprot thrift.TProtocol) error
- func (p *Base) SetAddr(val string)
- func (p *Base) SetCaller(val string)
- func (p *Base) SetClient(val string)
- func (p *Base) SetExtra(val map[string]string)
- func (p *Base) SetLogID(val string)
- func (p *Base) SetTrafficEnv(val *TrafficEnv)
- func (p *Base) String() string
- func (p *Base) Write(oprot thrift.TProtocol) (err error)
- type BaseResp
- func (p *BaseResp) BLength() int
- func (p *BaseResp) DeepEqual(ano *BaseResp) bool
- func (p *BaseResp) FastRead(buf []byte) (int, error)
- func (p *BaseResp) FastReadField1(buf []byte) (int, error)
- func (p *BaseResp) FastReadField2(buf []byte) (int, error)
- func (p *BaseResp) FastReadField3(buf []byte) (int, error)
- func (p *BaseResp) FastWrite(buf []byte) int
- func (p *BaseResp) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *BaseResp) Field1DeepEqual(src string) bool
- func (p *BaseResp) Field2DeepEqual(src int32) bool
- func (p *BaseResp) Field3DeepEqual(src map[string]string) bool
- func (p *BaseResp) GetExtra() (v map[string]string)
- func (p *BaseResp) GetStatusCode() (v int32)
- func (p *BaseResp) GetStatusMessage() (v string)
- func (p *BaseResp) InitDefault()
- func (p *BaseResp) IsSetExtra() bool
- func (p *BaseResp) Read(iprot thrift.TProtocol) (err error)
- func (p *BaseResp) ReadField1(iprot thrift.TProtocol) error
- func (p *BaseResp) ReadField2(iprot thrift.TProtocol) error
- func (p *BaseResp) ReadField3(iprot thrift.TProtocol) error
- func (p *BaseResp) SetExtra(val map[string]string)
- func (p *BaseResp) SetStatusCode(val int32)
- func (p *BaseResp) SetStatusMessage(val string)
- func (p *BaseResp) String() string
- func (p *BaseResp) Write(oprot thrift.TProtocol) (err error)
- type TrafficEnv
- func (p *TrafficEnv) BLength() int
- func (p *TrafficEnv) DeepEqual(ano *TrafficEnv) bool
- func (p *TrafficEnv) FastRead(buf []byte) (int, error)
- func (p *TrafficEnv) FastReadField1(buf []byte) (int, error)
- func (p *TrafficEnv) FastReadField2(buf []byte) (int, error)
- func (p *TrafficEnv) FastWrite(buf []byte) int
- func (p *TrafficEnv) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *TrafficEnv) Field1DeepEqual(src bool) bool
- func (p *TrafficEnv) Field2DeepEqual(src string) bool
- func (p *TrafficEnv) GetEnv() (v string)
- func (p *TrafficEnv) GetOpen() (v bool)
- func (p *TrafficEnv) InitDefault()
- func (p *TrafficEnv) Read(iprot thrift.TProtocol) (err error)
- func (p *TrafficEnv) ReadField1(iprot thrift.TProtocol) error
- func (p *TrafficEnv) ReadField2(iprot thrift.TProtocol) error
- func (p *TrafficEnv) SetEnv(val string)
- func (p *TrafficEnv) SetOpen(val bool)
- func (p *TrafficEnv) String() string
- func (p *TrafficEnv) Write(oprot thrift.TProtocol) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var BaseResp_Extra_DEFAULT map[string]string
View Source
var Base_Extra_DEFAULT map[string]string
View Source
var KitexUnusedProtection = struct{}{}
KitexUnusedProtection is used to prevent 'imported and not used' error.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct { LogID string `thrift:"LogID,1" frugal:"1,default,string" json:"LogID"` Caller string `thrift:"Caller,2" frugal:"2,default,string" json:"Caller"` Addr string `thrift:"Addr,3" frugal:"3,default,string" json:"Addr"` Client string `thrift:"Client,4" frugal:"4,default,string" json:"Client"` TrafficEnv *TrafficEnv `thrift:"TrafficEnv,5,optional" frugal:"5,optional,TrafficEnv" json:"TrafficEnv,omitempty"` Extra map[string]string `thrift:"Extra,6,optional" frugal:"6,optional,map<string:string>" json:"Extra,omitempty"` }
func (*Base) FastWriteNocopy ¶
func (p *Base) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*Base) Field1DeepEqual ¶
func (*Base) Field2DeepEqual ¶
func (*Base) Field3DeepEqual ¶
func (*Base) Field4DeepEqual ¶
func (*Base) Field5DeepEqual ¶
func (p *Base) Field5DeepEqual(src *TrafficEnv) bool
func (*Base) GetTrafficEnv ¶
func (p *Base) GetTrafficEnv() (v *TrafficEnv)
func (*Base) InitDefault ¶
func (p *Base) InitDefault()
func (*Base) IsSetExtra ¶
func (*Base) IsSetTrafficEnv ¶
func (*Base) SetTrafficEnv ¶
func (p *Base) SetTrafficEnv(val *TrafficEnv)
type BaseResp ¶
type BaseResp struct { StatusMessage string `thrift:"StatusMessage,1" frugal:"1,default,string" json:"StatusMessage"` StatusCode int32 `thrift:"StatusCode,2" frugal:"2,default,i32" json:"StatusCode"` Extra map[string]string `thrift:"Extra,3,optional" frugal:"3,optional,map<string:string>" json:"Extra,omitempty"` }
func NewBaseResp ¶
func NewBaseResp() *BaseResp
func (*BaseResp) FastWriteNocopy ¶
func (p *BaseResp) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*BaseResp) Field1DeepEqual ¶
func (*BaseResp) Field2DeepEqual ¶
func (*BaseResp) GetStatusCode ¶
func (*BaseResp) GetStatusMessage ¶
func (*BaseResp) InitDefault ¶
func (p *BaseResp) InitDefault()
func (*BaseResp) IsSetExtra ¶
func (*BaseResp) SetStatusCode ¶
func (*BaseResp) SetStatusMessage ¶
type TrafficEnv ¶
type TrafficEnv struct { Open bool `thrift:"Open,1" frugal:"1,default,bool" json:"Open"` Env string `thrift:"Env,2" frugal:"2,default,string" 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) FastReadField1 ¶
func (p *TrafficEnv) FastReadField1(buf []byte) (int, error)
func (*TrafficEnv) FastReadField2 ¶
func (p *TrafficEnv) FastReadField2(buf []byte) (int, error)
func (*TrafficEnv) FastWriteNocopy ¶
func (p *TrafficEnv) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
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) InitDefault ¶
func (p *TrafficEnv) InitDefault()
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
Click to show internal directories.
Click to hide internal directories.