entity

package
v0.3.12 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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

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

func (*InnerStruct) ReadField1

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

func (*InnerStruct) String

func (p *InnerStruct) String() string

func (*InnerStruct) Write

func (p *InnerStruct) Write(oprot thrift.TProtocol) (err error)

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 (*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) Read

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

func (*PersonBasicInfo) ReadField1

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

func (*PersonBasicInfo) ReadField2

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

func (*PersonBasicInfo) ReadField3

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

func (*PersonBasicInfo) ReadField4

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

func (*PersonBasicInfo) ReadField5

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

func (*PersonBasicInfo) ReadField6

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

func (*PersonBasicInfo) ReadField7

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

func (*PersonBasicInfo) ReadField8

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

func (*PersonBasicInfo) ReadField9

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

func (*PersonBasicInfo) String

func (p *PersonBasicInfo) String() string

func (*PersonBasicInfo) Write

func (p *PersonBasicInfo) Write(oprot thrift.TProtocol) (err error)

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 (*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) Read

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

func (*PersonContainerInfo) ReadField1

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

func (*PersonContainerInfo) ReadField2

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

func (*PersonContainerInfo) ReadField3

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

func (*PersonContainerInfo) ReadField4

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

func (*PersonContainerInfo) ReadField5

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

func (*PersonContainerInfo) ReadField6

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

func (*PersonContainerInfo) String

func (p *PersonContainerInfo) String() string

func (*PersonContainerInfo) Write

func (p *PersonContainerInfo) Write(oprot thrift.TProtocol) (err error)

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 (*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) IsSetValuestruct

func (p *PersonStructInfo) IsSetValuestruct() bool

func (*PersonStructInfo) IsSetValuestructtypedef

func (p *PersonStructInfo) IsSetValuestructtypedef() bool

func (*PersonStructInfo) IsSetValueteststruct

func (p *PersonStructInfo) IsSetValueteststruct() bool

func (*PersonStructInfo) Read

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

func (*PersonStructInfo) ReadField1

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

func (*PersonStructInfo) ReadField2

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

func (*PersonStructInfo) ReadField3

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

func (*PersonStructInfo) ReadField4

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

func (*PersonStructInfo) ReadField5

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

func (*PersonStructInfo) String

func (p *PersonStructInfo) String() string

func (*PersonStructInfo) Write

func (p *PersonStructInfo) Write(oprot thrift.TProtocol) (err error)

type TestBasicTypedef

type TestBasicTypedef = string

type TestEnum

type TestEnum int64
const (
	TestEnum_A TestEnum = 0
	TestEnum_B TestEnum = 1
	TestEnum_C TestEnum = 2
)

func TestEnumFromString

func TestEnumFromString(s string) (TestEnum, error)

func TestEnumPtr

func TestEnumPtr(v TestEnum) *TestEnum

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

func (*TestEnum) Scan

func (p *TestEnum) Scan(value interface{}) (err error)

func (TestEnum) String

func (p TestEnum) String() string

func (*TestEnum) Value

func (p *TestEnum) Value() (driver.Value, error)

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

func (p *TestStruct) IsSetInnerStruct() bool

func (*TestStruct) Read

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

func (*TestStruct) ReadField1

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

func (*TestStruct) ReadField2

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

func (*TestStruct) ReadField3

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

func (*TestStruct) String

func (p *TestStruct) String() string

func (*TestStruct) Write

func (p *TestStruct) Write(oprot thrift.TProtocol) (err error)

type TestStructTypedef

type TestStructTypedef = InnerStruct
var PersonStructInfo_Valuestructtypedef_DEFAULT *TestStructTypedef

func NewTestStructTypedef

func NewTestStructTypedef() *TestStructTypedef

Jump to

Keyboard shortcuts

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