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) 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) 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 TopParam
- func (p *TopParam) BLength() int
- func (p *TopParam) DeepEqual(ano *TopParam) bool
- func (p *TopParam) FastRead(buf []byte) (int, error)
- func (p *TopParam) FastReadField1(buf []byte) (int, error)
- func (p *TopParam) FastReadField10(buf []byte) (int, error)
- func (p *TopParam) FastReadField11(buf []byte) (int, error)
- func (p *TopParam) FastReadField2(buf []byte) (int, error)
- func (p *TopParam) FastReadField3(buf []byte) (int, error)
- func (p *TopParam) FastReadField4(buf []byte) (int, error)
- func (p *TopParam) FastReadField5(buf []byte) (int, error)
- func (p *TopParam) FastReadField6(buf []byte) (int, error)
- func (p *TopParam) FastReadField7(buf []byte) (int, error)
- func (p *TopParam) FastReadField8(buf []byte) (int, error)
- func (p *TopParam) FastReadField9(buf []byte) (int, error)
- func (p *TopParam) FastWrite(buf []byte) int
- func (p *TopParam) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *TopParam) Field10DeepEqual(src *string) bool
- func (p *TopParam) Field11DeepEqual(src *string) bool
- func (p *TopParam) Field1DeepEqual(src string) bool
- func (p *TopParam) Field2DeepEqual(src int64) bool
- func (p *TopParam) Field3DeepEqual(src *int64) bool
- func (p *TopParam) Field4DeepEqual(src *int64) bool
- func (p *TopParam) Field5DeepEqual(src string) bool
- func (p *TopParam) Field6DeepEqual(src string) bool
- func (p *TopParam) Field7DeepEqual(src *string) bool
- func (p *TopParam) Field8DeepEqual(src *string) bool
- func (p *TopParam) Field9DeepEqual(src *int32) bool
- func (p *TopParam) GetAccountId() (v int64)
- func (p *TopParam) GetDestService() (v string)
- func (p *TopParam) GetIsInternal() (v int32)
- func (p *TopParam) GetPsm() (v string)
- func (p *TopParam) GetRealIp() (v string)
- func (p *TopParam) GetRegion() (v string)
- func (p *TopParam) GetRequestId() (v string)
- func (p *TopParam) GetRoleId() (v int64)
- func (p *TopParam) GetSite() (v string)
- func (p *TopParam) GetSourceService() (v string)
- func (p *TopParam) GetUserId() (v int64)
- func (p *TopParam) IsSetIsInternal() bool
- func (p *TopParam) IsSetPsm() bool
- func (p *TopParam) IsSetRealIp() bool
- func (p *TopParam) IsSetRegion() bool
- func (p *TopParam) IsSetRoleId() bool
- func (p *TopParam) IsSetSite() bool
- func (p *TopParam) IsSetUserId() bool
- func (p *TopParam) Read(iprot thrift.TProtocol) (err error)
- func (p *TopParam) ReadField1(iprot thrift.TProtocol) error
- func (p *TopParam) ReadField10(iprot thrift.TProtocol) error
- func (p *TopParam) ReadField11(iprot thrift.TProtocol) error
- func (p *TopParam) ReadField2(iprot thrift.TProtocol) error
- func (p *TopParam) ReadField3(iprot thrift.TProtocol) error
- func (p *TopParam) ReadField4(iprot thrift.TProtocol) error
- func (p *TopParam) ReadField5(iprot thrift.TProtocol) error
- func (p *TopParam) ReadField6(iprot thrift.TProtocol) error
- func (p *TopParam) ReadField7(iprot thrift.TProtocol) error
- func (p *TopParam) ReadField8(iprot thrift.TProtocol) error
- func (p *TopParam) ReadField9(iprot thrift.TProtocol) error
- func (p *TopParam) SetAccountId(val int64)
- func (p *TopParam) SetDestService(val string)
- func (p *TopParam) SetIsInternal(val *int32)
- func (p *TopParam) SetPsm(val *string)
- func (p *TopParam) SetRealIp(val *string)
- func (p *TopParam) SetRegion(val *string)
- func (p *TopParam) SetRequestId(val string)
- func (p *TopParam) SetRoleId(val *int64)
- func (p *TopParam) SetSite(val *string)
- func (p *TopParam) SetSourceService(val string)
- func (p *TopParam) SetUserId(val *int64)
- func (p *TopParam) String() string
- func (p *TopParam) 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) 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.
View Source
var TopParam_IsInternal_DEFAULT int32
View Source
var TopParam_Psm_DEFAULT string
View Source
var TopParam_RealIp_DEFAULT string
View Source
var TopParam_Region_DEFAULT string
View Source
var TopParam_RoleId_DEFAULT int64
View Source
var TopParam_Site_DEFAULT string
View Source
var TopParam_UserId_DEFAULT int64
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 (*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) IsSetExtra ¶
func (*Base) IsSetTrafficEnv ¶
func (*Base) SetTrafficEnv ¶
func (p *Base) SetTrafficEnv(val *TrafficEnv)
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) 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) IsSetExtra ¶
func (*BaseResp) SetStatusCode ¶
func (*BaseResp) SetStatusMessage ¶
type TopParam ¶
type TopParam struct { RequestId string `thrift:"RequestId,1,required" header:"X-Top-Request-Id"` AccountId int64 `thrift:"AccountId,2,required" header:"X-Top-Account-Id" validate:"gt=0"` UserId *int64 `thrift:"UserId,3" header:"X-Top-User-Id"` RoleId *int64 `thrift:"RoleId,4" header:"X-Top-Role-Id"` DestService string `thrift:"DestService,5,required" header:"X-Top-Service"` SourceService string `thrift:"SourceService,6,required" header:"X-Top-Source"` Region *string `thrift:"Region,7" header:"X-Top-Region"` RealIp *string `thrift:"RealIp,8" header:"X-Top-Real-Ip"` IsInternal *int32 `thrift:"IsInternal,9" header:"X-Top-Account-IsInternal"` Psm *string `thrift:"Psm,10" header:"X-Psm"` Site *string `thrift:"Site,11" header:"X-Top-Site"` }
func NewTopParam ¶
func NewTopParam() *TopParam
func (*TopParam) FastWriteNocopy ¶
func (p *TopParam) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*TopParam) Field10DeepEqual ¶
func (*TopParam) Field11DeepEqual ¶
func (*TopParam) Field1DeepEqual ¶
func (*TopParam) Field2DeepEqual ¶
func (*TopParam) Field3DeepEqual ¶
func (*TopParam) Field4DeepEqual ¶
func (*TopParam) Field5DeepEqual ¶
func (*TopParam) Field6DeepEqual ¶
func (*TopParam) Field7DeepEqual ¶
func (*TopParam) Field8DeepEqual ¶
func (*TopParam) Field9DeepEqual ¶
func (*TopParam) GetAccountId ¶
func (*TopParam) GetDestService ¶
func (*TopParam) GetIsInternal ¶
func (*TopParam) GetRequestId ¶
func (*TopParam) GetSourceService ¶
func (*TopParam) IsSetIsInternal ¶
func (*TopParam) IsSetRealIp ¶
func (*TopParam) IsSetRegion ¶
func (*TopParam) IsSetRoleId ¶
func (*TopParam) IsSetUserId ¶
func (*TopParam) SetAccountId ¶
func (*TopParam) SetDestService ¶
func (*TopParam) SetIsInternal ¶
func (*TopParam) SetRequestId ¶
func (*TopParam) SetSourceService ¶
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) 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) 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.