Documentation ¶
Index ¶
- Constants
- Variables
- func GetFileDescriptorForReflectionTestIdl() *thrift_reflection.FileDescriptor
- type A0
- func (p *A0) GetDescriptor() *thrift_reflection.StructDescriptor
- func (p *A0) GetF1() (v string)
- func (p *A0) GetF2() (v *B)
- func (p *A0) GetF3() (v map[string]*C)
- func (p *A0) GetF4() (v map[*D]map[*E][]*F)
- func (p *A0) IsSetF2() bool
- func (p *A0) Read(iprot thrift.TProtocol) (err error)
- func (p *A0) ReadField1(iprot thrift.TProtocol) error
- func (p *A0) ReadField2(iprot thrift.TProtocol) error
- func (p *A0) ReadField3(iprot thrift.TProtocol) error
- func (p *A0) ReadField4(iprot thrift.TProtocol) error
- func (p *A0) String() string
- func (p *A0) Write(oprot thrift.TProtocol) (err error)
- type A1
- func (p *A1) GetDescriptor() *thrift_reflection.StructDescriptor
- func (p *A1) GetF1() (v string)
- func (p *A1) GetF2() (v *A2)
- func (p *A1) IsSetF2() bool
- func (p *A1) Read(iprot thrift.TProtocol) (err error)
- func (p *A1) ReadField1(iprot thrift.TProtocol) error
- func (p *A1) ReadField2(iprot thrift.TProtocol) error
- func (p *A1) String() string
- func (p *A1) Write(oprot thrift.TProtocol) (err error)
- type A2
- type A3
- type B
- func (p *B) GetDescriptor() *thrift_reflection.StructDescriptor
- func (p *B) GetF1() (v *B1)
- func (p *B) GetF2() (v *E)
- func (p *B) IsSetF1() bool
- func (p *B) IsSetF2() bool
- func (p *B) Read(iprot thrift.TProtocol) (err error)
- func (p *B) ReadField1(iprot thrift.TProtocol) error
- func (p *B) ReadField2(iprot thrift.TProtocol) error
- func (p *B) String() string
- func (p *B) Write(oprot thrift.TProtocol) (err error)
- type B1
- type C
- func (p *C) GetDescriptor() *thrift_reflection.StructDescriptor
- func (p *C) GetF1() (v *B)
- func (p *C) IsSetF1() bool
- func (p *C) Read(iprot thrift.TProtocol) (err error)
- func (p *C) ReadField1(iprot thrift.TProtocol) error
- func (p *C) String() string
- func (p *C) Write(oprot thrift.TProtocol) (err error)
- type D
- type D1
- type D2
- type E
- func (p *E) GetDescriptor() *thrift_reflection.StructDescriptor
- func (p *E) GetF1() (v *C)
- func (p *E) IsSetF1() bool
- func (p *E) Read(iprot thrift.TProtocol) (err error)
- func (p *E) ReadField1(iprot thrift.TProtocol) error
- func (p *E) String() string
- func (p *E) Write(oprot thrift.TProtocol) (err error)
- type F
- type Gender
- type IDCard
- func (p *IDCard) GetAge() (v int8)
- func (p *IDCard) GetDescriptor() *thrift_reflection.StructDescriptor
- func (p *IDCard) GetNumber() (v string)
- func (p *IDCard) Read(iprot thrift.TProtocol) (err error)
- func (p *IDCard) ReadField1(iprot thrift.TProtocol) error
- func (p *IDCard) ReadField2(iprot thrift.TProtocol) error
- func (p *IDCard) String() string
- func (p *IDCard) Write(oprot thrift.TProtocol) (err error)
- type MyException
- func (p *MyException) Error() string
- func (p *MyException) GetCode() (v int8)
- func (p *MyException) GetDescriptor() *thrift_reflection.StructDescriptor
- func (p *MyException) GetMsg() (v string)
- func (p *MyException) Read(iprot thrift.TProtocol) (err error)
- func (p *MyException) ReadField1(iprot thrift.TProtocol) error
- func (p *MyException) ReadField2(iprot thrift.TProtocol) error
- func (p *MyException) String() string
- func (p *MyException) Write(oprot thrift.TProtocol) (err error)
- type MyService
- type MyServiceClient
- func (p *MyServiceClient) Client_() thrift.TClient
- func (p *MyServiceClient) M1(ctx context.Context, p_ *Person) (r string, err error)
- func (p *MyServiceClient) M2(ctx context.Context, p2 *Person) (r string, err error)
- func (p *MyServiceClient) M3(ctx context.Context, a0 *A0, a3 *A3) (r *A1, err error)
- type MyServiceM1Args
- func (p *MyServiceM1Args) GetP() (v *Person)
- func (p *MyServiceM1Args) IsSetP() bool
- func (p *MyServiceM1Args) Read(iprot thrift.TProtocol) (err error)
- func (p *MyServiceM1Args) ReadField1(iprot thrift.TProtocol) error
- func (p *MyServiceM1Args) String() string
- func (p *MyServiceM1Args) Write(oprot thrift.TProtocol) (err error)
- type MyServiceM1Result
- func (p *MyServiceM1Result) GetSuccess() (v string)
- func (p *MyServiceM1Result) IsSetSuccess() bool
- func (p *MyServiceM1Result) Read(iprot thrift.TProtocol) (err error)
- func (p *MyServiceM1Result) ReadField0(iprot thrift.TProtocol) error
- func (p *MyServiceM1Result) String() string
- func (p *MyServiceM1Result) Write(oprot thrift.TProtocol) (err error)
- type MyServiceM2Args
- func (p *MyServiceM2Args) GetP2() (v *Person)
- func (p *MyServiceM2Args) IsSetP2() bool
- func (p *MyServiceM2Args) Read(iprot thrift.TProtocol) (err error)
- func (p *MyServiceM2Args) ReadField1(iprot thrift.TProtocol) error
- func (p *MyServiceM2Args) String() string
- func (p *MyServiceM2Args) Write(oprot thrift.TProtocol) (err error)
- type MyServiceM2Result
- func (p *MyServiceM2Result) GetSuccess() (v string)
- func (p *MyServiceM2Result) IsSetSuccess() bool
- func (p *MyServiceM2Result) Read(iprot thrift.TProtocol) (err error)
- func (p *MyServiceM2Result) ReadField0(iprot thrift.TProtocol) error
- func (p *MyServiceM2Result) String() string
- func (p *MyServiceM2Result) Write(oprot thrift.TProtocol) (err error)
- type MyServiceM3Args
- func (p *MyServiceM3Args) GetA0() (v *A0)
- func (p *MyServiceM3Args) GetA3() (v *A3)
- func (p *MyServiceM3Args) IsSetA0() bool
- func (p *MyServiceM3Args) IsSetA3() bool
- func (p *MyServiceM3Args) Read(iprot thrift.TProtocol) (err error)
- func (p *MyServiceM3Args) ReadField1(iprot thrift.TProtocol) error
- func (p *MyServiceM3Args) ReadField2(iprot thrift.TProtocol) error
- func (p *MyServiceM3Args) String() string
- func (p *MyServiceM3Args) Write(oprot thrift.TProtocol) (err error)
- type MyServiceM3Result
- func (p *MyServiceM3Result) GetSuccess() (v *A1)
- func (p *MyServiceM3Result) IsSetSuccess() bool
- func (p *MyServiceM3Result) Read(iprot thrift.TProtocol) (err error)
- func (p *MyServiceM3Result) ReadField0(iprot thrift.TProtocol) error
- func (p *MyServiceM3Result) String() string
- func (p *MyServiceM3Result) Write(oprot thrift.TProtocol) (err error)
- type MyServiceProcessor
- func (p *MyServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *MyServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *MyServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *MyServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type MyUnion
- func (p *MyUnion) CountSetFieldsMyUnion() int
- func (p *MyUnion) GetAge() (v int8)
- func (p *MyUnion) GetDescriptor() *thrift_reflection.StructDescriptor
- func (p *MyUnion) GetNumber() (v string)
- func (p *MyUnion) IsSetAge() bool
- func (p *MyUnion) IsSetNumber() bool
- func (p *MyUnion) Read(iprot thrift.TProtocol) (err error)
- func (p *MyUnion) ReadField1(iprot thrift.TProtocol) error
- func (p *MyUnion) ReadField2(iprot thrift.TProtocol) error
- func (p *MyUnion) String() string
- func (p *MyUnion) Write(oprot thrift.TProtocol) (err error)
- type Person
- func (p *Person) GetDefaultConst() (v string)
- func (p *Person) GetDefaultValue() (v string)
- func (p *Person) GetDescriptor() *thrift_reflection.StructDescriptor
- func (p *Person) GetExp() (v *MyException)
- func (p *Person) GetGender() (v Gender)
- func (p *Person) GetID() (v *IDCard)
- func (p *Person) GetName() (v string)
- func (p *Person) GetTypedefValue() (v SpecialString)
- func (p *Person) GetUni() (v *MyUnion)
- func (p *Person) IsSetExp() bool
- func (p *Person) IsSetID() bool
- func (p *Person) IsSetUni() bool
- func (p *Person) Read(iprot thrift.TProtocol) (err error)
- func (p *Person) ReadField1(iprot thrift.TProtocol) error
- func (p *Person) ReadField2(iprot thrift.TProtocol) error
- func (p *Person) ReadField3(iprot thrift.TProtocol) error
- func (p *Person) ReadField4(iprot thrift.TProtocol) error
- func (p *Person) ReadField5(iprot thrift.TProtocol) error
- func (p *Person) ReadField6(iprot thrift.TProtocol) error
- func (p *Person) ReadField7(iprot thrift.TProtocol) error
- func (p *Person) ReadField8(iprot thrift.TProtocol) error
- func (p *Person) String() string
- func (p *Person) Write(oprot thrift.TProtocol) (err error)
- type Size
- type SpecialPerson
- type SpecialString
Constants ¶
View Source
const ( MYCONST = "hello" MYINTCONST = 123 MYFLOATCONST = 123.333 MYBOOLCONST = true MYBYTECONST = 1 )
Variables ¶
View Source
var ( MYBINARYCONST = []byte("1") MYLISTCONST = []string{ "a", "b", "c", } MYMAPCONST = map[string]string{ "k1": "v1", "k2": "v2", "k3": "v3", } )
View Source
var MyServiceM1Result_Success_DEFAULT string
View Source
var MyServiceM2Result_Success_DEFAULT string
View Source
var MyUnion_Age_DEFAULT int8
View Source
var MyUnion_Number_DEFAULT string
Functions ¶
func GetFileDescriptorForReflectionTestIdl ¶
func GetFileDescriptorForReflectionTestIdl() *thrift_reflection.FileDescriptor
Types ¶
type A0 ¶
type A0 struct { F1 string `thrift:"f1,1,required" json:"f1"` F2 *B `thrift:"f2,2,required" json:"f2"` F3 map[string]*C `thrift:"f3,3,required" json:"f3"` F4 map[*D]map[*E][]*F `thrift:"f4,4,required" json:"f4"` }
var MyServiceM3Args_A0_DEFAULT *A0
func (*A0) GetDescriptor ¶
func (p *A0) GetDescriptor() *thrift_reflection.StructDescriptor
type A1 ¶
type A1 struct { F1 string `thrift:"f1,1,required" json:"f1"` F2 *A2 `thrift:"f2,2,required" json:"f2"` }
var MyServiceM3Result_Success_DEFAULT *A1
func (*A1) GetDescriptor ¶
func (p *A1) GetDescriptor() *thrift_reflection.StructDescriptor
type A2 ¶
type A2 struct {
F1 string `thrift:"f1,1,required" json:"f1"`
}
var A1_F2_DEFAULT *A2
func (*A2) GetDescriptor ¶
func (p *A2) GetDescriptor() *thrift_reflection.StructDescriptor
type A3 ¶
type A3 struct {
F1 string `thrift:"f1,1,required" json:"f1"`
}
var MyServiceM3Args_A3_DEFAULT *A3
func (*A3) GetDescriptor ¶
func (p *A3) GetDescriptor() *thrift_reflection.StructDescriptor
type B ¶
type B struct { F1 *B1 `thrift:"f1,1,required" json:"f1"` F2 *E `thrift:"f2,2,required" json:"f2"` }
var A0_F2_DEFAULT *B
var C_F1_DEFAULT *B
func (*B) GetDescriptor ¶
func (p *B) GetDescriptor() *thrift_reflection.StructDescriptor
type B1 ¶
type B1 struct {
Name string `thrift:"name,1,required" json:"name"`
}
var B_F1_DEFAULT *B1
func (*B1) GetDescriptor ¶
func (p *B1) GetDescriptor() *thrift_reflection.StructDescriptor
type C ¶
type C struct {
F1 *B `thrift:"f1,1,required" json:"f1"`
}
var E_F1_DEFAULT *C
func (*C) GetDescriptor ¶
func (p *C) GetDescriptor() *thrift_reflection.StructDescriptor
type D ¶
func (*D) GetDescriptor ¶
func (p *D) GetDescriptor() *thrift_reflection.StructDescriptor
type D1 ¶
type D1 struct {
Name string `thrift:"name,1,required" json:"name"`
}
func (*D1) GetDescriptor ¶
func (p *D1) GetDescriptor() *thrift_reflection.StructDescriptor
type D2 ¶
type D2 struct {
Name string `thrift:"name,1,required" json:"name"`
}
func (*D2) GetDescriptor ¶
func (p *D2) GetDescriptor() *thrift_reflection.StructDescriptor
type E ¶
type E struct {
F1 *C `thrift:"f1,1,required" json:"f1"`
}
var B_F2_DEFAULT *E
func (*E) GetDescriptor ¶
func (p *E) GetDescriptor() *thrift_reflection.StructDescriptor
type F ¶
type F struct {
Name string `thrift:"name,1,required" json:"name"`
}
func (*F) GetDescriptor ¶
func (p *F) GetDescriptor() *thrift_reflection.StructDescriptor
type Gender ¶
type Gender int64
func GenderFromString ¶
func (Gender) GetDescriptor ¶
func (p Gender) GetDescriptor() *thrift_reflection.EnumDescriptor
type IDCard ¶
type IDCard struct { Number string `thrift:"number,1,required" json:"number"` Age int8 `thrift:"age,2,required" json:"age"` }
var Person_ID_DEFAULT *IDCard
func (*IDCard) GetDescriptor ¶
func (p *IDCard) GetDescriptor() *thrift_reflection.StructDescriptor
type MyException ¶
type MyException struct { Msg string `thrift:"msg,1,required" json:"msg"` Code int8 `thrift:"code,2,required" json:"code"` }
var Person_Exp_DEFAULT *MyException
func NewMyException ¶
func NewMyException() *MyException
func (*MyException) Error ¶
func (p *MyException) Error() string
func (*MyException) GetCode ¶
func (p *MyException) GetCode() (v int8)
func (*MyException) GetDescriptor ¶
func (p *MyException) GetDescriptor() *thrift_reflection.StructDescriptor
func (*MyException) GetMsg ¶
func (p *MyException) GetMsg() (v string)
func (*MyException) ReadField1 ¶
func (p *MyException) ReadField1(iprot thrift.TProtocol) error
func (*MyException) ReadField2 ¶
func (p *MyException) ReadField2(iprot thrift.TProtocol) error
func (*MyException) String ¶
func (p *MyException) String() string
type MyServiceClient ¶
type MyServiceClient struct {
// contains filtered or unexported fields
}
func NewMyServiceClient ¶
func NewMyServiceClient(c thrift.TClient) *MyServiceClient
func NewMyServiceClientFactory ¶
func NewMyServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *MyServiceClient
func NewMyServiceClientProtocol ¶
func NewMyServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *MyServiceClient
func (*MyServiceClient) Client_ ¶
func (p *MyServiceClient) Client_() thrift.TClient
type MyServiceM1Args ¶
type MyServiceM1Args struct {
P *Person `thrift:"p,1,required" json:"p"`
}
func NewMyServiceM1Args ¶
func NewMyServiceM1Args() *MyServiceM1Args
func (*MyServiceM1Args) GetP ¶
func (p *MyServiceM1Args) GetP() (v *Person)
func (*MyServiceM1Args) IsSetP ¶
func (p *MyServiceM1Args) IsSetP() bool
func (*MyServiceM1Args) ReadField1 ¶
func (p *MyServiceM1Args) ReadField1(iprot thrift.TProtocol) error
func (*MyServiceM1Args) String ¶
func (p *MyServiceM1Args) String() string
type MyServiceM1Result ¶
type MyServiceM1Result struct {
Success *string `thrift:"success,0,optional" json:"success,omitempty"`
}
func NewMyServiceM1Result ¶
func NewMyServiceM1Result() *MyServiceM1Result
func (*MyServiceM1Result) GetSuccess ¶
func (p *MyServiceM1Result) GetSuccess() (v string)
func (*MyServiceM1Result) IsSetSuccess ¶
func (p *MyServiceM1Result) IsSetSuccess() bool
func (*MyServiceM1Result) Read ¶
func (p *MyServiceM1Result) Read(iprot thrift.TProtocol) (err error)
func (*MyServiceM1Result) ReadField0 ¶
func (p *MyServiceM1Result) ReadField0(iprot thrift.TProtocol) error
func (*MyServiceM1Result) String ¶
func (p *MyServiceM1Result) String() string
type MyServiceM2Args ¶
type MyServiceM2Args struct {
P2 *Person `thrift:"p2,1,required" json:"p2"`
}
func NewMyServiceM2Args ¶
func NewMyServiceM2Args() *MyServiceM2Args
func (*MyServiceM2Args) GetP2 ¶
func (p *MyServiceM2Args) GetP2() (v *Person)
func (*MyServiceM2Args) IsSetP2 ¶
func (p *MyServiceM2Args) IsSetP2() bool
func (*MyServiceM2Args) ReadField1 ¶
func (p *MyServiceM2Args) ReadField1(iprot thrift.TProtocol) error
func (*MyServiceM2Args) String ¶
func (p *MyServiceM2Args) String() string
type MyServiceM2Result ¶
type MyServiceM2Result struct {
Success *string `thrift:"success,0,optional" json:"success,omitempty"`
}
func NewMyServiceM2Result ¶
func NewMyServiceM2Result() *MyServiceM2Result
func (*MyServiceM2Result) GetSuccess ¶
func (p *MyServiceM2Result) GetSuccess() (v string)
func (*MyServiceM2Result) IsSetSuccess ¶
func (p *MyServiceM2Result) IsSetSuccess() bool
func (*MyServiceM2Result) Read ¶
func (p *MyServiceM2Result) Read(iprot thrift.TProtocol) (err error)
func (*MyServiceM2Result) ReadField0 ¶
func (p *MyServiceM2Result) ReadField0(iprot thrift.TProtocol) error
func (*MyServiceM2Result) String ¶
func (p *MyServiceM2Result) String() string
type MyServiceM3Args ¶
type MyServiceM3Args struct { A0 *A0 `thrift:"a0,1,required" json:"a0"` A3 *A3 `thrift:"a3,2,required" json:"a3"` }
func NewMyServiceM3Args ¶
func NewMyServiceM3Args() *MyServiceM3Args
func (*MyServiceM3Args) GetA0 ¶
func (p *MyServiceM3Args) GetA0() (v *A0)
func (*MyServiceM3Args) GetA3 ¶
func (p *MyServiceM3Args) GetA3() (v *A3)
func (*MyServiceM3Args) IsSetA0 ¶
func (p *MyServiceM3Args) IsSetA0() bool
func (*MyServiceM3Args) IsSetA3 ¶
func (p *MyServiceM3Args) IsSetA3() bool
func (*MyServiceM3Args) ReadField1 ¶
func (p *MyServiceM3Args) ReadField1(iprot thrift.TProtocol) error
func (*MyServiceM3Args) ReadField2 ¶
func (p *MyServiceM3Args) ReadField2(iprot thrift.TProtocol) error
func (*MyServiceM3Args) String ¶
func (p *MyServiceM3Args) String() string
type MyServiceM3Result ¶
type MyServiceM3Result struct {
Success *A1 `thrift:"success,0,optional" json:"success,omitempty"`
}
func NewMyServiceM3Result ¶
func NewMyServiceM3Result() *MyServiceM3Result
func (*MyServiceM3Result) GetSuccess ¶
func (p *MyServiceM3Result) GetSuccess() (v *A1)
func (*MyServiceM3Result) IsSetSuccess ¶
func (p *MyServiceM3Result) IsSetSuccess() bool
func (*MyServiceM3Result) Read ¶
func (p *MyServiceM3Result) Read(iprot thrift.TProtocol) (err error)
func (*MyServiceM3Result) ReadField0 ¶
func (p *MyServiceM3Result) ReadField0(iprot thrift.TProtocol) error
func (*MyServiceM3Result) String ¶
func (p *MyServiceM3Result) String() string
type MyServiceProcessor ¶
type MyServiceProcessor struct {
// contains filtered or unexported fields
}
func NewMyServiceProcessor ¶
func NewMyServiceProcessor(handler MyService) *MyServiceProcessor
func (*MyServiceProcessor) AddToProcessorMap ¶
func (p *MyServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*MyServiceProcessor) GetProcessorFunction ¶
func (p *MyServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*MyServiceProcessor) Process ¶
func (p *MyServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*MyServiceProcessor) ProcessorMap ¶
func (p *MyServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type MyUnion ¶
type MyUnion struct { Number *string `thrift:"number,1,optional" json:"number,omitempty"` Age *int8 `thrift:"age,2,optional" json:"age,omitempty"` }
var Person_Uni_DEFAULT *MyUnion
func NewMyUnion ¶
func NewMyUnion() *MyUnion
func (*MyUnion) CountSetFieldsMyUnion ¶
func (*MyUnion) GetDescriptor ¶
func (p *MyUnion) GetDescriptor() *thrift_reflection.StructDescriptor
func (*MyUnion) IsSetNumber ¶
type Person ¶
type Person struct { Name string `thrift:"name,1,required" json:"name"` ID *IDCard `thrift:"id,2,required" json:"id"` Gender Gender `thrift:"gender,3,required" json:"gender"` Exp *MyException `thrift:"exp,4,required" json:"exp"` Uni *MyUnion `thrift:"uni,5,required" json:"uni"` TypedefValue SpecialString `thrift:"typedefValue,6,required" json:"typedefValue"` DefaultValue string `thrift:"defaultValue,7,required" json:"defaultValue"` DefaultConst string `thrift:"defaultConst,8,required" json:"defaultConst"` }
var MyServiceM1Args_P_DEFAULT *Person
var MyServiceM2Args_P2_DEFAULT *Person
func (*Person) GetDefaultConst ¶
func (*Person) GetDefaultValue ¶
func (*Person) GetDescriptor ¶
func (p *Person) GetDescriptor() *thrift_reflection.StructDescriptor
func (*Person) GetExp ¶
func (p *Person) GetExp() (v *MyException)
func (*Person) GetTypedefValue ¶
func (p *Person) GetTypedefValue() (v SpecialString)
type Size ¶
type Size int64
func SizeFromString ¶
func (Size) GetDescriptor ¶
func (p Size) GetDescriptor() *thrift_reflection.EnumDescriptor
type SpecialPerson ¶
type SpecialPerson = Person
func NewSpecialPerson ¶
func NewSpecialPerson() *SpecialPerson
type SpecialString ¶
type SpecialString = string
Click to show internal directories.
Click to hide internal directories.