Documentation ¶
Index ¶
- Variables
- func GetFileDescriptorForTest() *thrift_reflection.FileDescriptor
- type IDCard
- type MyEnum
- type MyService
- type MyServiceM1Args
- type MyServiceM1Result
- type MyServiceM2Args
- type MyServiceM2Result
- type Person
- func (p *Person) GetDescriptor() *thrift_reflection.StructDescriptor
- func (p *Person) GetID() (v *IDCard)
- func (p *Person) GetName() (v string)
- func (p *Person) GetTypeDescriptor() *thrift_reflection.TypeDescriptor
- func (p *Person) InitDefault()
- func (p *Person) IsSetID() bool
- func (p *Person) String() string
- type PersonB
- type PersonC
- type TinyStruct
Constants ¶
This section is empty.
Variables ¶
View Source
var MyServiceM1Result_Success_DEFAULT string
View Source
var MyServiceM2Result_Success_DEFAULT string
Functions ¶
func GetFileDescriptorForTest ¶
func GetFileDescriptorForTest() *thrift_reflection.FileDescriptor
Types ¶
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
func (*IDCard) GetTypeDescriptor ¶ added in v0.3.11
func (p *IDCard) GetTypeDescriptor() *thrift_reflection.TypeDescriptor
func (*IDCard) InitDefault ¶ added in v0.3.16
func (p *IDCard) InitDefault()
type MyEnum ¶
type MyEnum int64
func MyEnumFromString ¶
func (MyEnum) GetDescriptor ¶
func (p MyEnum) GetDescriptor() *thrift_reflection.EnumDescriptor
func (*MyEnum) GetTypeDescriptor ¶ added in v0.3.11
func (p *MyEnum) GetTypeDescriptor() *thrift_reflection.TypeDescriptor
type MyServiceM1Args ¶
type MyServiceM1Args struct { }
func NewMyServiceM1Args ¶
func NewMyServiceM1Args() *MyServiceM1Args
func (*MyServiceM1Args) InitDefault ¶ added in v0.3.16
func (p *MyServiceM1Args) InitDefault()
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) InitDefault ¶ added in v0.3.16
func (p *MyServiceM1Result) InitDefault()
func (*MyServiceM1Result) IsSetSuccess ¶
func (p *MyServiceM1Result) IsSetSuccess() bool
func (*MyServiceM1Result) String ¶
func (p *MyServiceM1Result) String() string
type MyServiceM2Args ¶
type MyServiceM2Args struct { }
func NewMyServiceM2Args ¶
func NewMyServiceM2Args() *MyServiceM2Args
func (*MyServiceM2Args) InitDefault ¶ added in v0.3.16
func (p *MyServiceM2Args) InitDefault()
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) InitDefault ¶ added in v0.3.16
func (p *MyServiceM2Result) InitDefault()
func (*MyServiceM2Result) IsSetSuccess ¶
func (p *MyServiceM2Result) IsSetSuccess() bool
func (*MyServiceM2Result) String ¶
func (p *MyServiceM2Result) String() string
type Person ¶
type Person struct { Name string `thrift:"name,1,required" json:"name"` ID *IDCard `thrift:"id,2,required" json:"id"` }
func (*Person) GetDescriptor ¶
func (p *Person) GetDescriptor() *thrift_reflection.StructDescriptor
func (*Person) GetTypeDescriptor ¶ added in v0.3.11
func (p *Person) GetTypeDescriptor() *thrift_reflection.TypeDescriptor
func (*Person) InitDefault ¶ added in v0.3.16
func (p *Person) InitDefault()
type PersonB ¶
type PersonB struct { }
func NewPersonB ¶
func NewPersonB() *PersonB
func (*PersonB) GetDescriptor ¶
func (p *PersonB) GetDescriptor() *thrift_reflection.StructDescriptor
func (*PersonB) GetTypeDescriptor ¶ added in v0.3.11
func (p *PersonB) GetTypeDescriptor() *thrift_reflection.TypeDescriptor
func (*PersonB) InitDefault ¶ added in v0.3.16
func (p *PersonB) InitDefault()
type PersonC ¶
type PersonC struct { }
func NewPersonC ¶
func NewPersonC() *PersonC
func (*PersonC) GetDescriptor ¶
func (p *PersonC) GetDescriptor() *thrift_reflection.StructDescriptor
func (*PersonC) GetTypeDescriptor ¶ added in v0.3.11
func (p *PersonC) GetTypeDescriptor() *thrift_reflection.TypeDescriptor
func (*PersonC) InitDefault ¶ added in v0.3.16
func (p *PersonC) InitDefault()
type TinyStruct ¶
type TinyStruct struct { B1 bool `thrift:"b1,1,required" json:"b1"` B2 bool `thrift:"b2,2,required" json:"b2"` }
func NewTinyStruct ¶
func NewTinyStruct() *TinyStruct
func (*TinyStruct) GetB1 ¶
func (p *TinyStruct) GetB1() (v bool)
func (*TinyStruct) GetB2 ¶
func (p *TinyStruct) GetB2() (v bool)
func (*TinyStruct) GetDescriptor ¶
func (p *TinyStruct) GetDescriptor() *thrift_reflection.StructDescriptor
func (*TinyStruct) GetTypeDescriptor ¶ added in v0.3.11
func (p *TinyStruct) GetTypeDescriptor() *thrift_reflection.TypeDescriptor
func (*TinyStruct) InitDefault ¶ added in v0.3.16
func (p *TinyStruct) InitDefault()
func (*TinyStruct) String ¶
func (p *TinyStruct) String() string
Click to show internal directories.
Click to hide internal directories.