base

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

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
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 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) FastWriteNocopy

func (p *Base) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

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) FastWriteNocopy

func (p *BaseResp) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

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 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) BLength

func (p *TopParam) BLength() int

func (*TopParam) DeepEqual

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

func (*TopParam) FastRead

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

func (*TopParam) FastReadField1

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

func (*TopParam) FastReadField10

func (p *TopParam) FastReadField10(buf []byte) (int, error)

func (*TopParam) FastReadField11

func (p *TopParam) FastReadField11(buf []byte) (int, error)

func (*TopParam) FastReadField2

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

func (*TopParam) FastReadField3

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

func (*TopParam) FastReadField4

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

func (*TopParam) FastReadField5

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

func (*TopParam) FastReadField6

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

func (*TopParam) FastReadField7

func (p *TopParam) FastReadField7(buf []byte) (int, error)

func (*TopParam) FastReadField8

func (p *TopParam) FastReadField8(buf []byte) (int, error)

func (*TopParam) FastReadField9

func (p *TopParam) FastReadField9(buf []byte) (int, error)

func (*TopParam) FastWrite

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

for compatibility

func (*TopParam) FastWriteNocopy

func (p *TopParam) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*TopParam) Field10DeepEqual

func (p *TopParam) Field10DeepEqual(src *string) bool

func (*TopParam) Field11DeepEqual

func (p *TopParam) Field11DeepEqual(src *string) bool

func (*TopParam) Field1DeepEqual

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

func (*TopParam) Field2DeepEqual

func (p *TopParam) Field2DeepEqual(src int64) bool

func (*TopParam) Field3DeepEqual

func (p *TopParam) Field3DeepEqual(src *int64) bool

func (*TopParam) Field4DeepEqual

func (p *TopParam) Field4DeepEqual(src *int64) bool

func (*TopParam) Field5DeepEqual

func (p *TopParam) Field5DeepEqual(src string) bool

func (*TopParam) Field6DeepEqual

func (p *TopParam) Field6DeepEqual(src string) bool

func (*TopParam) Field7DeepEqual

func (p *TopParam) Field7DeepEqual(src *string) bool

func (*TopParam) Field8DeepEqual

func (p *TopParam) Field8DeepEqual(src *string) bool

func (*TopParam) Field9DeepEqual

func (p *TopParam) Field9DeepEqual(src *int32) bool

func (*TopParam) GetAccountId

func (p *TopParam) GetAccountId() (v int64)

func (*TopParam) GetDestService

func (p *TopParam) GetDestService() (v string)

func (*TopParam) GetIsInternal

func (p *TopParam) GetIsInternal() (v int32)

func (*TopParam) GetPsm

func (p *TopParam) GetPsm() (v string)

func (*TopParam) GetRealIp

func (p *TopParam) GetRealIp() (v string)

func (*TopParam) GetRegion

func (p *TopParam) GetRegion() (v string)

func (*TopParam) GetRequestId

func (p *TopParam) GetRequestId() (v string)

func (*TopParam) GetRoleId

func (p *TopParam) GetRoleId() (v int64)

func (*TopParam) GetSite

func (p *TopParam) GetSite() (v string)

func (*TopParam) GetSourceService

func (p *TopParam) GetSourceService() (v string)

func (*TopParam) GetUserId

func (p *TopParam) GetUserId() (v int64)

func (*TopParam) IsSetIsInternal

func (p *TopParam) IsSetIsInternal() bool

func (*TopParam) IsSetPsm

func (p *TopParam) IsSetPsm() bool

func (*TopParam) IsSetRealIp

func (p *TopParam) IsSetRealIp() bool

func (*TopParam) IsSetRegion

func (p *TopParam) IsSetRegion() bool

func (*TopParam) IsSetRoleId

func (p *TopParam) IsSetRoleId() bool

func (*TopParam) IsSetSite

func (p *TopParam) IsSetSite() bool

func (*TopParam) IsSetUserId

func (p *TopParam) IsSetUserId() bool

func (*TopParam) Read

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

func (*TopParam) ReadField1

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

func (*TopParam) ReadField10

func (p *TopParam) ReadField10(iprot thrift.TProtocol) error

func (*TopParam) ReadField11

func (p *TopParam) ReadField11(iprot thrift.TProtocol) error

func (*TopParam) ReadField2

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

func (*TopParam) ReadField3

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

func (*TopParam) ReadField4

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

func (*TopParam) ReadField5

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

func (*TopParam) ReadField6

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

func (*TopParam) ReadField7

func (p *TopParam) ReadField7(iprot thrift.TProtocol) error

func (*TopParam) ReadField8

func (p *TopParam) ReadField8(iprot thrift.TProtocol) error

func (*TopParam) ReadField9

func (p *TopParam) ReadField9(iprot thrift.TProtocol) error

func (*TopParam) SetAccountId

func (p *TopParam) SetAccountId(val int64)

func (*TopParam) SetDestService

func (p *TopParam) SetDestService(val string)

func (*TopParam) SetIsInternal

func (p *TopParam) SetIsInternal(val *int32)

func (*TopParam) SetPsm

func (p *TopParam) SetPsm(val *string)

func (*TopParam) SetRealIp

func (p *TopParam) SetRealIp(val *string)

func (*TopParam) SetRegion

func (p *TopParam) SetRegion(val *string)

func (*TopParam) SetRequestId

func (p *TopParam) SetRequestId(val string)

func (*TopParam) SetRoleId

func (p *TopParam) SetRoleId(val *int64)

func (*TopParam) SetSite

func (p *TopParam) SetSite(val *string)

func (*TopParam) SetSourceService

func (p *TopParam) SetSourceService(val string)

func (*TopParam) SetUserId

func (p *TopParam) SetUserId(val *int64)

func (*TopParam) String

func (p *TopParam) String() string

func (*TopParam) Write

func (p *TopParam) 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) 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) 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