Documentation ¶
Index ¶
- Variables
- func GetFileDescriptorForEntity() *thrift_reflection.FileDescriptor
- func GetFileDescriptorForEntityStruct() *thrift_reflection.FileDescriptor
- func New_FieldOptions() *_FieldOptions
- func New_StructOptions() *_StructOptions
- type InnerStruct
- type PersonBasicInfo
- func (p *PersonBasicInfo) GetDescriptor() *thrift_reflection.StructDescriptor
- func (p *PersonBasicInfo) GetTypeDescriptor() *thrift_reflection.TypeDescriptor
- func (p *PersonBasicInfo) GetValuebinary() (v []byte)
- func (p *PersonBasicInfo) GetValuebool() (v bool)
- func (p *PersonBasicInfo) GetValuebyte() (v int8)
- func (p *PersonBasicInfo) GetValuedouble() (v float64)
- func (p *PersonBasicInfo) GetValuei16() (v int16)
- func (p *PersonBasicInfo) GetValuei32() (v int32)
- func (p *PersonBasicInfo) GetValuei64() (v int64)
- func (p *PersonBasicInfo) GetValuei8() (v int8)
- func (p *PersonBasicInfo) GetValuestring() (v string)
- func (p *PersonBasicInfo) InitDefault()
- func (p *PersonBasicInfo) String() string
- type PersonContainerInfo
- func (p *PersonContainerInfo) GetDescriptor() *thrift_reflection.StructDescriptor
- func (p *PersonContainerInfo) GetTypeDescriptor() *thrift_reflection.TypeDescriptor
- func (p *PersonContainerInfo) GetValuelist() (v []string)
- func (p *PersonContainerInfo) GetValuelistset() (v [][]string)
- func (p *PersonContainerInfo) GetValuelistsetstruct() (v [][]*InnerStruct)
- func (p *PersonContainerInfo) GetValuemap() (v map[string]string)
- func (p *PersonContainerInfo) GetValuemapstruct() (v map[string]*InnerStruct)
- func (p *PersonContainerInfo) GetValueset() (v []string)
- func (p *PersonContainerInfo) InitDefault()
- func (p *PersonContainerInfo) String() string
- type PersonStructInfo
- func (p *PersonStructInfo) GetDescriptor() *thrift_reflection.StructDescriptor
- func (p *PersonStructInfo) GetTypeDescriptor() *thrift_reflection.TypeDescriptor
- func (p *PersonStructInfo) GetValuebasictypedef() (v TestBasicTypedef)
- func (p *PersonStructInfo) GetValueenum() (v TestEnum)
- func (p *PersonStructInfo) GetValuestruct() (v *InnerStruct)
- func (p *PersonStructInfo) GetValuestructtypedef() (v *TestStructTypedef)
- func (p *PersonStructInfo) GetValueteststruct() (v *TestStruct)
- func (p *PersonStructInfo) InitDefault()
- func (p *PersonStructInfo) IsSetValuestruct() bool
- func (p *PersonStructInfo) IsSetValuestructtypedef() bool
- func (p *PersonStructInfo) IsSetValueteststruct() bool
- func (p *PersonStructInfo) String() string
- type TestBasicTypedef
- type TestEnum
- type TestStruct
- func (p *TestStruct) GetAge() (v string)
- func (p *TestStruct) GetDescriptor() *thrift_reflection.StructDescriptor
- func (p *TestStruct) GetInnerStruct() (v *InnerStruct)
- func (p *TestStruct) GetName() (v string)
- func (p *TestStruct) GetTypeDescriptor() *thrift_reflection.TypeDescriptor
- func (p *TestStruct) InitDefault()
- func (p *TestStruct) IsSetInnerStruct() bool
- func (p *TestStruct) String() string
- type TestStructTypedef
Constants ¶
This section is empty.
Variables ¶
View Source
var ( STRUCT_OPTION_PERSON_BASIC_INFO = thrift_option.NewStructOption("../option_idl/annotations/entity/entity.thrift", "person_basic_info") STRUCT_OPTION_PERSON_STRUCT_INFO = thrift_option.NewStructOption("../option_idl/annotations/entity/entity.thrift", "person_struct_info") STRUCT_OPTION_PERSON_CONTAINER_INFO = thrift_option.NewStructOption("../option_idl/annotations/entity/entity.thrift", "person_container_info") FIELD_OPTION_PERSON_FIELD_INFO = thrift_option.NewFieldOption("../option_idl/annotations/entity/entity.thrift", "person_field_info") )
Functions ¶
func GetFileDescriptorForEntity ¶
func GetFileDescriptorForEntity() *thrift_reflection.FileDescriptor
func GetFileDescriptorForEntityStruct ¶
func GetFileDescriptorForEntityStruct() *thrift_reflection.FileDescriptor
func New_FieldOptions ¶
func New_FieldOptions() *_FieldOptions
func New_StructOptions ¶
func New_StructOptions() *_StructOptions
Types ¶
type InnerStruct ¶
type InnerStruct struct {
Email string `thrift:"email,1,required" json:"email"`
}
var PersonStructInfo_Valuestruct_DEFAULT *InnerStruct
var TestStruct_InnerStruct_DEFAULT *InnerStruct
func NewInnerStruct ¶
func NewInnerStruct() *InnerStruct
func (*InnerStruct) GetDescriptor ¶
func (p *InnerStruct) GetDescriptor() *thrift_reflection.StructDescriptor
func (*InnerStruct) GetEmail ¶
func (p *InnerStruct) GetEmail() (v string)
func (*InnerStruct) GetTypeDescriptor ¶ added in v0.3.11
func (p *InnerStruct) GetTypeDescriptor() *thrift_reflection.TypeDescriptor
func (*InnerStruct) InitDefault ¶ added in v0.3.16
func (p *InnerStruct) InitDefault()
func (*InnerStruct) String ¶
func (p *InnerStruct) String() string
type PersonBasicInfo ¶
type PersonBasicInfo struct { Valuei8 int8 `thrift:"valuei8,1,required" json:"valuei8"` Valuei16 int16 `thrift:"valuei16,2,required" json:"valuei16"` Valuei32 int32 `thrift:"valuei32,3,required" json:"valuei32"` Valuei64 int64 `thrift:"valuei64,4,required" json:"valuei64"` Valuestring string `thrift:"valuestring,5,required" json:"valuestring"` Valuebyte int8 `thrift:"valuebyte,6,required" json:"valuebyte"` Valuedouble float64 `thrift:"valuedouble,7,required" json:"valuedouble"` Valuebinary []byte `thrift:"valuebinary,8,required" json:"valuebinary"` Valuebool bool `thrift:"valuebool,9,required" json:"valuebool"` }
func NewPersonBasicInfo ¶
func NewPersonBasicInfo() *PersonBasicInfo
func (*PersonBasicInfo) GetDescriptor ¶
func (p *PersonBasicInfo) GetDescriptor() *thrift_reflection.StructDescriptor
func (*PersonBasicInfo) GetTypeDescriptor ¶ added in v0.3.11
func (p *PersonBasicInfo) GetTypeDescriptor() *thrift_reflection.TypeDescriptor
func (*PersonBasicInfo) GetValuebinary ¶
func (p *PersonBasicInfo) GetValuebinary() (v []byte)
func (*PersonBasicInfo) GetValuebool ¶
func (p *PersonBasicInfo) GetValuebool() (v bool)
func (*PersonBasicInfo) GetValuebyte ¶
func (p *PersonBasicInfo) GetValuebyte() (v int8)
func (*PersonBasicInfo) GetValuedouble ¶
func (p *PersonBasicInfo) GetValuedouble() (v float64)
func (*PersonBasicInfo) GetValuei16 ¶
func (p *PersonBasicInfo) GetValuei16() (v int16)
func (*PersonBasicInfo) GetValuei32 ¶
func (p *PersonBasicInfo) GetValuei32() (v int32)
func (*PersonBasicInfo) GetValuei64 ¶
func (p *PersonBasicInfo) GetValuei64() (v int64)
func (*PersonBasicInfo) GetValuei8 ¶
func (p *PersonBasicInfo) GetValuei8() (v int8)
func (*PersonBasicInfo) GetValuestring ¶
func (p *PersonBasicInfo) GetValuestring() (v string)
func (*PersonBasicInfo) InitDefault ¶ added in v0.3.16
func (p *PersonBasicInfo) InitDefault()
func (*PersonBasicInfo) String ¶
func (p *PersonBasicInfo) String() string
type PersonContainerInfo ¶
type PersonContainerInfo struct { Valuemap map[string]string `thrift:"valuemap,1,required" json:"valuemap"` Valuelist []string `thrift:"valuelist,2,required" json:"valuelist"` Valueset []string `thrift:"valueset,3,required" json:"valueset"` Valuelistset [][]string `thrift:"valuelistset,4,required" json:"valuelistset"` Valuelistsetstruct [][]*InnerStruct `thrift:"valuelistsetstruct,5,required" json:"valuelistsetstruct"` Valuemapstruct map[string]*InnerStruct `thrift:"valuemapstruct,6,required" json:"valuemapstruct"` }
func NewPersonContainerInfo ¶
func NewPersonContainerInfo() *PersonContainerInfo
func (*PersonContainerInfo) GetDescriptor ¶
func (p *PersonContainerInfo) GetDescriptor() *thrift_reflection.StructDescriptor
func (*PersonContainerInfo) GetTypeDescriptor ¶ added in v0.3.11
func (p *PersonContainerInfo) GetTypeDescriptor() *thrift_reflection.TypeDescriptor
func (*PersonContainerInfo) GetValuelist ¶
func (p *PersonContainerInfo) GetValuelist() (v []string)
func (*PersonContainerInfo) GetValuelistset ¶
func (p *PersonContainerInfo) GetValuelistset() (v [][]string)
func (*PersonContainerInfo) GetValuelistsetstruct ¶
func (p *PersonContainerInfo) GetValuelistsetstruct() (v [][]*InnerStruct)
func (*PersonContainerInfo) GetValuemap ¶
func (p *PersonContainerInfo) GetValuemap() (v map[string]string)
func (*PersonContainerInfo) GetValuemapstruct ¶
func (p *PersonContainerInfo) GetValuemapstruct() (v map[string]*InnerStruct)
func (*PersonContainerInfo) GetValueset ¶
func (p *PersonContainerInfo) GetValueset() (v []string)
func (*PersonContainerInfo) InitDefault ¶ added in v0.3.16
func (p *PersonContainerInfo) InitDefault()
func (*PersonContainerInfo) String ¶
func (p *PersonContainerInfo) String() string
type PersonStructInfo ¶
type PersonStructInfo struct { Valueteststruct *TestStruct `thrift:"valueteststruct,1,required" json:"valueteststruct"` Valuestruct *InnerStruct `thrift:"valuestruct,2,required" json:"valuestruct"` Valueenum TestEnum `thrift:"valueenum,3,required" json:"valueenum"` Valuestructtypedef *TestStructTypedef `thrift:"valuestructtypedef,4,required" json:"valuestructtypedef"` Valuebasictypedef TestBasicTypedef `thrift:"valuebasictypedef,5,required" json:"valuebasictypedef"` }
func NewPersonStructInfo ¶
func NewPersonStructInfo() *PersonStructInfo
func (*PersonStructInfo) GetDescriptor ¶
func (p *PersonStructInfo) GetDescriptor() *thrift_reflection.StructDescriptor
func (*PersonStructInfo) GetTypeDescriptor ¶ added in v0.3.11
func (p *PersonStructInfo) GetTypeDescriptor() *thrift_reflection.TypeDescriptor
func (*PersonStructInfo) GetValuebasictypedef ¶
func (p *PersonStructInfo) GetValuebasictypedef() (v TestBasicTypedef)
func (*PersonStructInfo) GetValueenum ¶
func (p *PersonStructInfo) GetValueenum() (v TestEnum)
func (*PersonStructInfo) GetValuestruct ¶
func (p *PersonStructInfo) GetValuestruct() (v *InnerStruct)
func (*PersonStructInfo) GetValuestructtypedef ¶
func (p *PersonStructInfo) GetValuestructtypedef() (v *TestStructTypedef)
func (*PersonStructInfo) GetValueteststruct ¶
func (p *PersonStructInfo) GetValueteststruct() (v *TestStruct)
func (*PersonStructInfo) InitDefault ¶ added in v0.3.16
func (p *PersonStructInfo) InitDefault()
func (*PersonStructInfo) IsSetValuestruct ¶
func (p *PersonStructInfo) IsSetValuestruct() bool
func (*PersonStructInfo) IsSetValuestructtypedef ¶
func (p *PersonStructInfo) IsSetValuestructtypedef() bool
func (*PersonStructInfo) IsSetValueteststruct ¶
func (p *PersonStructInfo) IsSetValueteststruct() bool
func (*PersonStructInfo) String ¶
func (p *PersonStructInfo) String() string
type TestBasicTypedef ¶
type TestBasicTypedef = string
type TestEnum ¶
type TestEnum int64
func TestEnumFromString ¶
func TestEnumPtr ¶
func (TestEnum) GetDescriptor ¶
func (p TestEnum) GetDescriptor() *thrift_reflection.EnumDescriptor
func (*TestEnum) GetTypeDescriptor ¶ added in v0.3.11
func (p *TestEnum) GetTypeDescriptor() *thrift_reflection.TypeDescriptor
type TestStruct ¶
type TestStruct struct { Name string `thrift:"name,1,required" json:"name"` Age string `thrift:"age,2,required" json:"age"` InnerStruct *InnerStruct `thrift:"innerStruct,3,required" json:"innerStruct"` }
var PersonStructInfo_Valueteststruct_DEFAULT *TestStruct
func NewTestStruct ¶
func NewTestStruct() *TestStruct
func (*TestStruct) GetAge ¶
func (p *TestStruct) GetAge() (v string)
func (*TestStruct) GetDescriptor ¶
func (p *TestStruct) GetDescriptor() *thrift_reflection.StructDescriptor
func (*TestStruct) GetInnerStruct ¶
func (p *TestStruct) GetInnerStruct() (v *InnerStruct)
func (*TestStruct) GetName ¶
func (p *TestStruct) GetName() (v string)
func (*TestStruct) GetTypeDescriptor ¶ added in v0.3.11
func (p *TestStruct) GetTypeDescriptor() *thrift_reflection.TypeDescriptor
func (*TestStruct) InitDefault ¶ added in v0.3.16
func (p *TestStruct) InitDefault()
func (*TestStruct) IsSetInnerStruct ¶
func (p *TestStruct) IsSetInnerStruct() bool
func (*TestStruct) String ¶
func (p *TestStruct) String() string
type TestStructTypedef ¶
type TestStructTypedef = InnerStruct
var PersonStructInfo_Valuestructtypedef_DEFAULT *TestStructTypedef
func NewTestStructTypedef ¶
func NewTestStructTypedef() *TestStructTypedef
Click to show internal directories.
Click to hide internal directories.