base

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Model_ListI64_DEFAULT []int64
View Source
var Model_MapI32_DEFAULT map[int32]int32
View Source
var Model_MapI64_DEFAULT map[int64]int64
View Source
var Request_Modset_DEFAULT []*Model
View Source
var SimpleListMap_ListString_DEFAULT []string

Functions

This section is empty.

Types

type BusinessException

type BusinessException struct {
	Message string `thrift:"message,2" frugal:"2,default,string" db:"message" json:"message"`
}
var ExampleEchoRequestResult_E_DEFAULT *BusinessException

func NewBusinessException

func NewBusinessException() *BusinessException

func (*BusinessException) DeepEqual

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

func (*BusinessException) Error

func (p *BusinessException) Error() string

func (*BusinessException) Field2DeepEqual

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

func (*BusinessException) GetMessage

func (p *BusinessException) GetMessage() (v string)

func (*BusinessException) Read

func (p *BusinessException) Read(ctx context.Context, iprot thrift.TProtocol) (err error)

func (*BusinessException) ReadField2

func (p *BusinessException) ReadField2(ctx context.Context, iprot thrift.TProtocol) error

func (*BusinessException) String

func (p *BusinessException) String() string

func (*BusinessException) Write

func (p *BusinessException) Write(ctx context.Context, oprot thrift.TProtocol) (err error)

type Common added in v0.2.0

type Common struct {
	Bin  []byte `thrift:"bin,1" frugal:"1,default,binary" db:"bin" json:"bin"`
	Bin2 string `thrift:"bin2,2" frugal:"2,default,string" db:"bin2" json:"bin2"`
	Bin3 []int8 `thrift:"bin3,3" frugal:"3,default,list<i8>" db:"bin3" json:"bin3"`
	Bin4 []int8 `thrift:"bin4,4" frugal:"4,default,list<byte>" db:"bin4" json:"bin4"`
}

func NewCommon added in v0.2.0

func NewCommon() *Common

func (*Common) DeepEqual added in v0.2.0

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

func (*Common) Field1DeepEqual added in v0.2.0

func (p *Common) Field1DeepEqual(src []byte) bool

func (*Common) Field2DeepEqual added in v0.2.0

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

func (*Common) Field3DeepEqual added in v0.2.0

func (p *Common) Field3DeepEqual(src []int8) bool

func (*Common) Field4DeepEqual added in v0.2.0

func (p *Common) Field4DeepEqual(src []int8) bool

func (*Common) GetBin added in v0.2.0

func (p *Common) GetBin() (v []byte)

func (*Common) GetBin2 added in v0.2.0

func (p *Common) GetBin2() (v string)

func (*Common) GetBin3 added in v0.2.0

func (p *Common) GetBin3() (v []int8)

func (*Common) GetBin4 added in v0.2.0

func (p *Common) GetBin4() (v []int8)

func (*Common) Read added in v0.2.0

func (p *Common) Read(ctx context.Context, iprot thrift.TProtocol) (err error)

func (*Common) ReadField1 added in v0.2.0

func (p *Common) ReadField1(ctx context.Context, iprot thrift.TProtocol) error

func (*Common) ReadField2 added in v0.2.0

func (p *Common) ReadField2(ctx context.Context, iprot thrift.TProtocol) error

func (*Common) ReadField3 added in v0.2.0

func (p *Common) ReadField3(ctx context.Context, iprot thrift.TProtocol) error

func (*Common) ReadField4 added in v0.2.0

func (p *Common) ReadField4(ctx context.Context, iprot thrift.TProtocol) error

func (*Common) String added in v0.2.0

func (p *Common) String() string

func (*Common) Write added in v0.2.0

func (p *Common) Write(ctx context.Context, oprot thrift.TProtocol) (err error)

type EmptyField

type EmptyField struct {
}

func NewEmptyField

func NewEmptyField() *EmptyField

func (*EmptyField) DeepEqual

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

func (*EmptyField) Read

func (p *EmptyField) Read(ctx context.Context, iprot thrift.TProtocol) (err error)

func (*EmptyField) String

func (p *EmptyField) String() string

func (*EmptyField) Write

func (p *EmptyField) Write(ctx context.Context, oprot thrift.TProtocol) (err error)

type Example

type Example interface {
	EchoRequest(ctx context.Context, request *Request) (r *Request, err error)

	PushAnalytics(ctx context.Context, request *Request) (err error)
}

type ExampleClient

type ExampleClient struct {
	// contains filtered or unexported fields
}

func NewExampleClient

func NewExampleClient(c thrift.TClient) *ExampleClient

func NewExampleClientProtocol

func NewExampleClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *ExampleClient

func (*ExampleClient) Client_

func (p *ExampleClient) Client_() thrift.TClient

func (*ExampleClient) EchoRequest

func (p *ExampleClient) EchoRequest(ctx context.Context, request *Request) (r *Request, err error)

func (*ExampleClient) PushAnalytics

func (p *ExampleClient) PushAnalytics(ctx context.Context, request *Request) (err error)

type ExampleEchoRequestArgs

type ExampleEchoRequestArgs struct {
	Request *Request `thrift:"request,2" frugal:"2,default,Request" db:"request" json:"request"`
}

func NewExampleEchoRequestArgs

func NewExampleEchoRequestArgs() *ExampleEchoRequestArgs

func (*ExampleEchoRequestArgs) DeepEqual

func (*ExampleEchoRequestArgs) Field2DeepEqual

func (p *ExampleEchoRequestArgs) Field2DeepEqual(src *Request) bool

func (*ExampleEchoRequestArgs) GetRequest

func (p *ExampleEchoRequestArgs) GetRequest() (v *Request)

func (*ExampleEchoRequestArgs) IsSetRequest

func (p *ExampleEchoRequestArgs) IsSetRequest() bool

func (*ExampleEchoRequestArgs) Read

func (p *ExampleEchoRequestArgs) Read(ctx context.Context, iprot thrift.TProtocol) (err error)

func (*ExampleEchoRequestArgs) ReadField2

func (p *ExampleEchoRequestArgs) ReadField2(ctx context.Context, iprot thrift.TProtocol) error

func (*ExampleEchoRequestArgs) String

func (p *ExampleEchoRequestArgs) String() string

func (*ExampleEchoRequestArgs) Write

func (p *ExampleEchoRequestArgs) Write(ctx context.Context, oprot thrift.TProtocol) (err error)

type ExampleEchoRequestResult

type ExampleEchoRequestResult struct {
	Success *Request           `thrift:"success,0" frugal:"0,optional,Request" db:"success" json:"success,omitempty"`
	E       *BusinessException `thrift:"e,1" frugal:"1,optional,BusinessException" db:"e" json:"e,omitempty"`
}

func NewExampleEchoRequestResult

func NewExampleEchoRequestResult() *ExampleEchoRequestResult

func (*ExampleEchoRequestResult) DeepEqual

func (*ExampleEchoRequestResult) Field0DeepEqual

func (p *ExampleEchoRequestResult) Field0DeepEqual(src *Request) bool

func (*ExampleEchoRequestResult) Field1DeepEqual

func (p *ExampleEchoRequestResult) Field1DeepEqual(src *BusinessException) bool

func (*ExampleEchoRequestResult) GetE

func (*ExampleEchoRequestResult) GetSuccess

func (p *ExampleEchoRequestResult) GetSuccess() (v *Request)

func (*ExampleEchoRequestResult) IsSetE

func (p *ExampleEchoRequestResult) IsSetE() bool

func (*ExampleEchoRequestResult) IsSetSuccess

func (p *ExampleEchoRequestResult) IsSetSuccess() bool

func (*ExampleEchoRequestResult) Read

func (p *ExampleEchoRequestResult) Read(ctx context.Context, iprot thrift.TProtocol) (err error)

func (*ExampleEchoRequestResult) ReadField0

func (p *ExampleEchoRequestResult) ReadField0(ctx context.Context, iprot thrift.TProtocol) error

func (*ExampleEchoRequestResult) ReadField1

func (p *ExampleEchoRequestResult) ReadField1(ctx context.Context, iprot thrift.TProtocol) error

func (*ExampleEchoRequestResult) String

func (p *ExampleEchoRequestResult) String() string

func (*ExampleEchoRequestResult) Write

func (p *ExampleEchoRequestResult) Write(ctx context.Context, oprot thrift.TProtocol) (err error)

type ExampleProcessor

type ExampleProcessor struct {
	// contains filtered or unexported fields
}

func NewExampleProcessor

func NewExampleProcessor(handler Example) *ExampleProcessor

func (*ExampleProcessor) AddToProcessorMap

func (p *ExampleProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)

func (*ExampleProcessor) GetProcessorFunction

func (p *ExampleProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)

func (*ExampleProcessor) Process

func (p *ExampleProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)

func (*ExampleProcessor) ProcessorMap

func (p *ExampleProcessor) ProcessorMap() map[string]thrift.TProcessorFunction

type ExamplePushAnalyticsArgs

type ExamplePushAnalyticsArgs struct {
	Request *Request `thrift:"request,3" frugal:"3,default,Request" db:"request" json:"request"`
}

func NewExamplePushAnalyticsArgs

func NewExamplePushAnalyticsArgs() *ExamplePushAnalyticsArgs

func (*ExamplePushAnalyticsArgs) DeepEqual

func (*ExamplePushAnalyticsArgs) Field3DeepEqual

func (p *ExamplePushAnalyticsArgs) Field3DeepEqual(src *Request) bool

func (*ExamplePushAnalyticsArgs) GetRequest

func (p *ExamplePushAnalyticsArgs) GetRequest() (v *Request)

func (*ExamplePushAnalyticsArgs) IsSetRequest

func (p *ExamplePushAnalyticsArgs) IsSetRequest() bool

func (*ExamplePushAnalyticsArgs) Read

func (p *ExamplePushAnalyticsArgs) Read(ctx context.Context, iprot thrift.TProtocol) (err error)

func (*ExamplePushAnalyticsArgs) ReadField3

func (p *ExamplePushAnalyticsArgs) ReadField3(ctx context.Context, iprot thrift.TProtocol) error

func (*ExamplePushAnalyticsArgs) String

func (p *ExamplePushAnalyticsArgs) String() string

func (*ExamplePushAnalyticsArgs) Write

func (p *ExamplePushAnalyticsArgs) Write(ctx context.Context, oprot thrift.TProtocol) (err error)

type ListOnly

type ListOnly struct {
	Names []string `thrift:"names,91" frugal:"91,default,list<string>" db:"names" json:"names"`
}

func NewListOnly

func NewListOnly() *ListOnly

func (*ListOnly) DeepEqual

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

func (*ListOnly) Field91DeepEqual

func (p *ListOnly) Field91DeepEqual(src []string) bool

func (*ListOnly) GetNames

func (p *ListOnly) GetNames() (v []string)

func (*ListOnly) Read

func (p *ListOnly) Read(ctx context.Context, iprot thrift.TProtocol) (err error)

func (*ListOnly) ReadField91

func (p *ListOnly) ReadField91(ctx context.Context, iprot thrift.TProtocol) error

func (*ListOnly) String

func (p *ListOnly) String() string

func (*ListOnly) Write

func (p *ListOnly) Write(ctx context.Context, oprot thrift.TProtocol) (err error)

type MapOnly

type MapOnly struct {
	ListById   map[int64][]int32 `thrift:"listById,10" frugal:"10,default,map<i64:list<i32>>" db:"listById" json:"listById"`
	StringById map[int64]string  `thrift:"stringById,77" frugal:"77,default,map<i64:string>" db:"stringById" json:"stringById"`
	ModelById  map[int64]*Model  `thrift:"modelById,88" frugal:"88,default,map<i64:Model>" db:"modelById" json:"modelById"`
}

func NewMapOnly

func NewMapOnly() *MapOnly

func (*MapOnly) DeepEqual

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

func (*MapOnly) Field10DeepEqual added in v0.2.0

func (p *MapOnly) Field10DeepEqual(src map[int64][]int32) bool

func (*MapOnly) Field77DeepEqual

func (p *MapOnly) Field77DeepEqual(src map[int64]string) bool

func (*MapOnly) Field88DeepEqual

func (p *MapOnly) Field88DeepEqual(src map[int64]*Model) bool

func (*MapOnly) GetListById added in v0.2.0

func (p *MapOnly) GetListById() (v map[int64][]int32)

func (*MapOnly) GetModelById

func (p *MapOnly) GetModelById() (v map[int64]*Model)

func (*MapOnly) GetStringById

func (p *MapOnly) GetStringById() (v map[int64]string)

func (*MapOnly) Read

func (p *MapOnly) Read(ctx context.Context, iprot thrift.TProtocol) (err error)

func (*MapOnly) ReadField10 added in v0.2.0

func (p *MapOnly) ReadField10(ctx context.Context, iprot thrift.TProtocol) error

func (*MapOnly) ReadField77

func (p *MapOnly) ReadField77(ctx context.Context, iprot thrift.TProtocol) error

func (*MapOnly) ReadField88

func (p *MapOnly) ReadField88(ctx context.Context, iprot thrift.TProtocol) error

func (*MapOnly) String

func (p *MapOnly) String() string

func (*MapOnly) Write

func (p *MapOnly) Write(ctx context.Context, oprot thrift.TProtocol) (err error)

type Model

type Model struct {
	Abc     string          `thrift:"abc,1" frugal:"1,default,string" db:"abc" json:"abc"`
	Sd      int64           `thrift:"sd,4" frugal:"4,default,i64" db:"sd" json:"sd"`
	F64     float64         `thrift:"f64,9" frugal:"9,default,double" db:"f64" json:"f64"`
	ListI64 []int64         `thrift:"listI64,10" frugal:"10,optional,list<i64>" db:"listI64" json:"listI64,omitempty"`
	MapI64  map[int64]int64 `thrift:"mapI64,11" frugal:"11,optional,map<i64:i64>" db:"mapI64" json:"mapI64,omitempty"`
	MapI32  map[int32]int32 `thrift:"mapI32,12" frugal:"12,optional,map<i32:i32>" db:"mapI32" json:"mapI32,omitempty"`
}
var Request_Model2_DEFAULT *Model
var Request_Model_DEFAULT *Model

func NewModel

func NewModel() *Model

func (*Model) DeepEqual

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

func (*Model) Field10DeepEqual added in v0.2.0

func (p *Model) Field10DeepEqual(src []int64) bool

func (*Model) Field11DeepEqual added in v0.2.1

func (p *Model) Field11DeepEqual(src map[int64]int64) bool

func (*Model) Field12DeepEqual added in v0.2.1

func (p *Model) Field12DeepEqual(src map[int32]int32) bool

func (*Model) Field1DeepEqual

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

func (*Model) Field4DeepEqual

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

func (*Model) Field9DeepEqual

func (p *Model) Field9DeepEqual(src float64) bool

func (*Model) GetAbc

func (p *Model) GetAbc() (v string)

func (*Model) GetF64

func (p *Model) GetF64() (v float64)

func (*Model) GetListI64 added in v0.2.0

func (p *Model) GetListI64() (v []int64)

func (*Model) GetMapI32 added in v0.2.1

func (p *Model) GetMapI32() (v map[int32]int32)

func (*Model) GetMapI64 added in v0.2.1

func (p *Model) GetMapI64() (v map[int64]int64)

func (*Model) GetSd

func (p *Model) GetSd() (v int64)

func (*Model) IsSetListI64 added in v0.2.0

func (p *Model) IsSetListI64() bool

func (*Model) IsSetMapI32 added in v0.2.1

func (p *Model) IsSetMapI32() bool

func (*Model) IsSetMapI64 added in v0.2.1

func (p *Model) IsSetMapI64() bool

func (*Model) Read

func (p *Model) Read(ctx context.Context, iprot thrift.TProtocol) (err error)

func (*Model) ReadField1

func (p *Model) ReadField1(ctx context.Context, iprot thrift.TProtocol) error

func (*Model) ReadField10 added in v0.2.0

func (p *Model) ReadField10(ctx context.Context, iprot thrift.TProtocol) error

func (*Model) ReadField11 added in v0.2.1

func (p *Model) ReadField11(ctx context.Context, iprot thrift.TProtocol) error

func (*Model) ReadField12 added in v0.2.1

func (p *Model) ReadField12(ctx context.Context, iprot thrift.TProtocol) error

func (*Model) ReadField4

func (p *Model) ReadField4(ctx context.Context, iprot thrift.TProtocol) error

func (*Model) ReadField9

func (p *Model) ReadField9(ctx context.Context, iprot thrift.TProtocol) error

func (*Model) String

func (p *Model) String() string

func (*Model) Write

func (p *Model) Write(ctx context.Context, oprot thrift.TProtocol) (err error)

type Request

type Request struct {
	Model       *Model             `thrift:"model,6" frugal:"6,default,Model" db:"model" json:"model"`
	Model2      *Model             `thrift:"model2,7" frugal:"7,optional,Model" db:"model2" json:"model2,omitempty"`
	Models      []*Model           `thrift:"models,44" frugal:"44,default,list<Model>" db:"models" json:"models"`
	ModelById   map[int64]*Model   `thrift:"modelById,31" frugal:"31,default,map<i64:Model>" db:"modelById" json:"modelById"`
	Modset      []*Model           `thrift:"modset,56" frugal:"56,optional,list<Model>" db:"modset" json:"modset,omitempty"`
	ModelByTime map[int64][]*Model `thrift:"modelByTime,88" frugal:"88,default,map<i64:list<Model>>" db:"modelByTime" json:"modelByTime"`
}
var ExampleEchoRequestArgs_Request_DEFAULT *Request
var ExampleEchoRequestResult_Success_DEFAULT *Request
var ExamplePushAnalyticsArgs_Request_DEFAULT *Request

func NewRequest

func NewRequest() *Request

func (*Request) DeepEqual

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

func (*Request) Field31DeepEqual

func (p *Request) Field31DeepEqual(src map[int64]*Model) bool

func (*Request) Field44DeepEqual

func (p *Request) Field44DeepEqual(src []*Model) bool

func (*Request) Field56DeepEqual

func (p *Request) Field56DeepEqual(src []*Model) bool

func (*Request) Field6DeepEqual

func (p *Request) Field6DeepEqual(src *Model) bool

func (*Request) Field7DeepEqual added in v0.2.0

func (p *Request) Field7DeepEqual(src *Model) bool

func (*Request) Field88DeepEqual added in v0.2.0

func (p *Request) Field88DeepEqual(src map[int64][]*Model) bool

func (*Request) GetModel

func (p *Request) GetModel() (v *Model)

func (*Request) GetModel2 added in v0.2.0

func (p *Request) GetModel2() (v *Model)

func (*Request) GetModelById

func (p *Request) GetModelById() (v map[int64]*Model)

func (*Request) GetModelByTime added in v0.2.0

func (p *Request) GetModelByTime() (v map[int64][]*Model)

func (*Request) GetModels

func (p *Request) GetModels() (v []*Model)

func (*Request) GetModset

func (p *Request) GetModset() (v []*Model)

func (*Request) IsSetModel

func (p *Request) IsSetModel() bool

func (*Request) IsSetModel2 added in v0.2.0

func (p *Request) IsSetModel2() bool

func (*Request) IsSetModset

func (p *Request) IsSetModset() bool

func (*Request) Read

func (p *Request) Read(ctx context.Context, iprot thrift.TProtocol) (err error)

func (*Request) ReadField31

func (p *Request) ReadField31(ctx context.Context, iprot thrift.TProtocol) error

func (*Request) ReadField44

func (p *Request) ReadField44(ctx context.Context, iprot thrift.TProtocol) error

func (*Request) ReadField56

func (p *Request) ReadField56(ctx context.Context, iprot thrift.TProtocol) error

func (*Request) ReadField6

func (p *Request) ReadField6(ctx context.Context, iprot thrift.TProtocol) error

func (*Request) ReadField7 added in v0.2.0

func (p *Request) ReadField7(ctx context.Context, iprot thrift.TProtocol) error

func (*Request) ReadField88 added in v0.2.0

func (p *Request) ReadField88(ctx context.Context, iprot thrift.TProtocol) error

func (*Request) String

func (p *Request) String() string

func (*Request) Write

func (p *Request) Write(ctx context.Context, oprot thrift.TProtocol) (err error)

type SimpleListMap

type SimpleListMap struct {
	ListListI32 [][]int32       `thrift:"listListI32,10" frugal:"10,default,list<list<i32>>" db:"listListI32" json:"listListI32"`
	ListI64     []int64         `thrift:"listI64,555" frugal:"555,default,list<i64>" db:"listI64" json:"listI64"`
	I64ByI64    map[int64]int64 `thrift:"i64ByI64,2016" frugal:"2016,default,map<i64:i64>" db:"i64ByI64" json:"i64ByI64"`
	ListString  []string        `thrift:"listString,2" frugal:"2,optional,list<string>" db:"listString" json:"listString,omitempty"`
}

func NewSimpleListMap

func NewSimpleListMap() *SimpleListMap

func (*SimpleListMap) DeepEqual

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

func (*SimpleListMap) Field10DeepEqual added in v0.2.0

func (p *SimpleListMap) Field10DeepEqual(src [][]int32) bool

func (*SimpleListMap) Field2016DeepEqual

func (p *SimpleListMap) Field2016DeepEqual(src map[int64]int64) bool

func (*SimpleListMap) Field2DeepEqual added in v0.2.0

func (p *SimpleListMap) Field2DeepEqual(src []string) bool

func (*SimpleListMap) Field555DeepEqual

func (p *SimpleListMap) Field555DeepEqual(src []int64) bool

func (*SimpleListMap) GetI64ByI64

func (p *SimpleListMap) GetI64ByI64() (v map[int64]int64)

func (*SimpleListMap) GetListI64

func (p *SimpleListMap) GetListI64() (v []int64)

func (*SimpleListMap) GetListListI32 added in v0.2.0

func (p *SimpleListMap) GetListListI32() (v [][]int32)

func (*SimpleListMap) GetListString added in v0.2.0

func (p *SimpleListMap) GetListString() (v []string)

func (*SimpleListMap) IsSetListString added in v0.2.0

func (p *SimpleListMap) IsSetListString() bool

func (*SimpleListMap) Read

func (p *SimpleListMap) Read(ctx context.Context, iprot thrift.TProtocol) (err error)

func (*SimpleListMap) ReadField10 added in v0.2.0

func (p *SimpleListMap) ReadField10(ctx context.Context, iprot thrift.TProtocol) error

func (*SimpleListMap) ReadField2 added in v0.2.0

func (p *SimpleListMap) ReadField2(ctx context.Context, iprot thrift.TProtocol) error

func (*SimpleListMap) ReadField2016

func (p *SimpleListMap) ReadField2016(ctx context.Context, iprot thrift.TProtocol) error

func (*SimpleListMap) ReadField555

func (p *SimpleListMap) ReadField555(ctx context.Context, iprot thrift.TProtocol) error

func (*SimpleListMap) String

func (p *SimpleListMap) String() string

func (*SimpleListMap) Write

func (p *SimpleListMap) Write(ctx context.Context, oprot thrift.TProtocol) (err error)

Jump to

Keyboard shortcuts

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