thrift_reflection_test

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 MyAnotherServiceM33Result_Success_DEFAULT string
View Source
var MyAnotherServiceM44Result_Success_DEFAULT string
View Source
var MyParentServiceM11Result_Success_DEFAULT string
View Source
var MyParentServiceM22Result_Success_DEFAULT string
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

func GetFileDescriptorForReflectionTestIdl2 added in v0.3.11

func GetFileDescriptorForReflectionTestIdl2() *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 NewA0

func NewA0() *A0

func (*A0) GetDescriptor

func (p *A0) GetDescriptor() *thrift_reflection.StructDescriptor

func (*A0) GetF1

func (p *A0) GetF1() (v string)

func (*A0) GetF2

func (p *A0) GetF2() (v *B)

func (*A0) GetF3

func (p *A0) GetF3() (v map[string]*C)

func (*A0) GetF4

func (p *A0) GetF4() (v map[*D]map[*E][]*F)

func (*A0) GetTypeDescriptor added in v0.3.11

func (p *A0) GetTypeDescriptor() *thrift_reflection.TypeDescriptor

func (*A0) InitDefault added in v0.3.16

func (p *A0) InitDefault()

func (*A0) IsSetF2

func (p *A0) IsSetF2() bool

func (*A0) String

func (p *A0) String() string

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 NewA1

func NewA1() *A1

func (*A1) GetDescriptor

func (p *A1) GetDescriptor() *thrift_reflection.StructDescriptor

func (*A1) GetF1

func (p *A1) GetF1() (v string)

func (*A1) GetF2

func (p *A1) GetF2() (v *A2)

func (*A1) GetTypeDescriptor added in v0.3.11

func (p *A1) GetTypeDescriptor() *thrift_reflection.TypeDescriptor

func (*A1) InitDefault added in v0.3.16

func (p *A1) InitDefault()

func (*A1) IsSetF2

func (p *A1) IsSetF2() bool

func (*A1) String

func (p *A1) String() string

type A2

type A2 struct {
	F1 string `thrift:"f1,1,required" json:"f1"`
}
var A1_F2_DEFAULT *A2

func NewA2

func NewA2() *A2

func (*A2) GetDescriptor

func (p *A2) GetDescriptor() *thrift_reflection.StructDescriptor

func (*A2) GetF1

func (p *A2) GetF1() (v string)

func (*A2) GetTypeDescriptor added in v0.3.11

func (p *A2) GetTypeDescriptor() *thrift_reflection.TypeDescriptor

func (*A2) InitDefault added in v0.3.16

func (p *A2) InitDefault()

func (*A2) String

func (p *A2) String() string

type A3

type A3 struct {
	F1 string `thrift:"f1,1,required" json:"f1"`
}
var MyServiceM3Args_A3_DEFAULT *A3

func NewA3

func NewA3() *A3

func (*A3) GetDescriptor

func (p *A3) GetDescriptor() *thrift_reflection.StructDescriptor

func (*A3) GetF1

func (p *A3) GetF1() (v string)

func (*A3) GetTypeDescriptor added in v0.3.11

func (p *A3) GetTypeDescriptor() *thrift_reflection.TypeDescriptor

func (*A3) InitDefault added in v0.3.16

func (p *A3) InitDefault()

func (*A3) String

func (p *A3) String() string

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 NewB

func NewB() *B

func (*B) GetDescriptor

func (p *B) GetDescriptor() *thrift_reflection.StructDescriptor

func (*B) GetF1

func (p *B) GetF1() (v *B1)

func (*B) GetF2

func (p *B) GetF2() (v *E)

func (*B) GetTypeDescriptor added in v0.3.11

func (p *B) GetTypeDescriptor() *thrift_reflection.TypeDescriptor

func (*B) InitDefault added in v0.3.16

func (p *B) InitDefault()

func (*B) IsSetF1

func (p *B) IsSetF1() bool

func (*B) IsSetF2

func (p *B) IsSetF2() bool

func (*B) String

func (p *B) String() string

type B1

type B1 struct {
	Name string `thrift:"name,1,required" json:"name"`
}
var B_F1_DEFAULT *B1

func NewB1

func NewB1() *B1

func (*B1) GetDescriptor

func (p *B1) GetDescriptor() *thrift_reflection.StructDescriptor

func (*B1) GetName

func (p *B1) GetName() (v string)

func (*B1) GetTypeDescriptor added in v0.3.11

func (p *B1) GetTypeDescriptor() *thrift_reflection.TypeDescriptor

func (*B1) InitDefault added in v0.3.16

func (p *B1) InitDefault()

func (*B1) String

func (p *B1) String() string

type C

type C struct {
	F1 *B `thrift:"f1,1,required" json:"f1"`
}
var E_F1_DEFAULT *C

func NewC

func NewC() *C

func (*C) GetDescriptor

func (p *C) GetDescriptor() *thrift_reflection.StructDescriptor

func (*C) GetF1

func (p *C) GetF1() (v *B)

func (*C) GetTypeDescriptor added in v0.3.11

func (p *C) GetTypeDescriptor() *thrift_reflection.TypeDescriptor

func (*C) InitDefault added in v0.3.16

func (p *C) InitDefault()

func (*C) IsSetF1

func (p *C) IsSetF1() bool

func (*C) String

func (p *C) String() string

type D

type D struct {
	F1 map[*D1]*D2 `thrift:"f1,1,required" json:"f1"`
}

func NewD

func NewD() *D

func (*D) GetDescriptor

func (p *D) GetDescriptor() *thrift_reflection.StructDescriptor

func (*D) GetF1

func (p *D) GetF1() (v map[*D1]*D2)

func (*D) GetTypeDescriptor added in v0.3.11

func (p *D) GetTypeDescriptor() *thrift_reflection.TypeDescriptor

func (*D) InitDefault added in v0.3.16

func (p *D) InitDefault()

func (*D) String

func (p *D) String() string

type D1

type D1 struct {
	Name string `thrift:"name,1,required" json:"name"`
}

func NewD1

func NewD1() *D1

func (*D1) GetDescriptor

func (p *D1) GetDescriptor() *thrift_reflection.StructDescriptor

func (*D1) GetName

func (p *D1) GetName() (v string)

func (*D1) GetTypeDescriptor added in v0.3.11

func (p *D1) GetTypeDescriptor() *thrift_reflection.TypeDescriptor

func (*D1) InitDefault added in v0.3.16

func (p *D1) InitDefault()

func (*D1) String

func (p *D1) String() string

type D2

type D2 struct {
	Name string `thrift:"name,1,required" json:"name"`
}

func NewD2

func NewD2() *D2

func (*D2) GetDescriptor

func (p *D2) GetDescriptor() *thrift_reflection.StructDescriptor

func (*D2) GetName

func (p *D2) GetName() (v string)

func (*D2) GetTypeDescriptor added in v0.3.11

func (p *D2) GetTypeDescriptor() *thrift_reflection.TypeDescriptor

func (*D2) InitDefault added in v0.3.16

func (p *D2) InitDefault()

func (*D2) String

func (p *D2) String() string

type E

type E struct {
	F1 *C `thrift:"f1,1,required" json:"f1"`
}
var B_F2_DEFAULT *E

func NewE

func NewE() *E

func (*E) GetDescriptor

func (p *E) GetDescriptor() *thrift_reflection.StructDescriptor

func (*E) GetF1

func (p *E) GetF1() (v *C)

func (*E) GetTypeDescriptor added in v0.3.11

func (p *E) GetTypeDescriptor() *thrift_reflection.TypeDescriptor

func (*E) InitDefault added in v0.3.16

func (p *E) InitDefault()

func (*E) IsSetF1

func (p *E) IsSetF1() bool

func (*E) String

func (p *E) String() string

type F

type F struct {
	Name string `thrift:"name,1,required" json:"name"`
}

func NewF

func NewF() *F

func (*F) GetDescriptor

func (p *F) GetDescriptor() *thrift_reflection.StructDescriptor

func (*F) GetName

func (p *F) GetName() (v string)

func (*F) GetTypeDescriptor added in v0.3.11

func (p *F) GetTypeDescriptor() *thrift_reflection.TypeDescriptor

func (*F) InitDefault added in v0.3.16

func (p *F) InitDefault()

func (*F) String

func (p *F) String() string

type Gender

type Gender int64
const (
	Gender_MALE   Gender = 0
	Gender_FEMALE Gender = 1
)

func GenderFromString

func GenderFromString(s string) (Gender, error)

func GenderPtr

func GenderPtr(v Gender) *Gender

func (Gender) GetDescriptor

func (p Gender) GetDescriptor() *thrift_reflection.EnumDescriptor

func (*Gender) GetTypeDescriptor added in v0.3.11

func (p *Gender) GetTypeDescriptor() *thrift_reflection.TypeDescriptor

func (*Gender) Scan

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

func (Gender) String

func (p Gender) String() string

func (*Gender) Value

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

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 NewIDCard

func NewIDCard() *IDCard

func (*IDCard) GetAge

func (p *IDCard) GetAge() (v int8)

func (*IDCard) GetDescriptor

func (p *IDCard) GetDescriptor() *thrift_reflection.StructDescriptor

func (*IDCard) GetNumber

func (p *IDCard) GetNumber() (v string)

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

func (*IDCard) String

func (p *IDCard) String() string

type MyAnotherService added in v0.3.11

type MyAnotherService interface {
	M33(ctx context.Context) (r string, err error)

	M44(ctx context.Context) (r string, err error)
}

type MyAnotherServiceM33Args added in v0.3.11

type MyAnotherServiceM33Args struct {
}

func NewMyAnotherServiceM33Args added in v0.3.11

func NewMyAnotherServiceM33Args() *MyAnotherServiceM33Args

func (*MyAnotherServiceM33Args) InitDefault added in v0.3.16

func (p *MyAnotherServiceM33Args) InitDefault()

func (*MyAnotherServiceM33Args) String added in v0.3.11

func (p *MyAnotherServiceM33Args) String() string

type MyAnotherServiceM33Result added in v0.3.11

type MyAnotherServiceM33Result struct {
	Success *string `thrift:"success,0,optional" json:"success,omitempty"`
}

func NewMyAnotherServiceM33Result added in v0.3.11

func NewMyAnotherServiceM33Result() *MyAnotherServiceM33Result

func (*MyAnotherServiceM33Result) GetSuccess added in v0.3.11

func (p *MyAnotherServiceM33Result) GetSuccess() (v string)

func (*MyAnotherServiceM33Result) InitDefault added in v0.3.16

func (p *MyAnotherServiceM33Result) InitDefault()

func (*MyAnotherServiceM33Result) IsSetSuccess added in v0.3.11

func (p *MyAnotherServiceM33Result) IsSetSuccess() bool

func (*MyAnotherServiceM33Result) String added in v0.3.11

func (p *MyAnotherServiceM33Result) String() string

type MyAnotherServiceM44Args added in v0.3.11

type MyAnotherServiceM44Args struct {
}

func NewMyAnotherServiceM44Args added in v0.3.11

func NewMyAnotherServiceM44Args() *MyAnotherServiceM44Args

func (*MyAnotherServiceM44Args) InitDefault added in v0.3.16

func (p *MyAnotherServiceM44Args) InitDefault()

func (*MyAnotherServiceM44Args) String added in v0.3.11

func (p *MyAnotherServiceM44Args) String() string

type MyAnotherServiceM44Result added in v0.3.11

type MyAnotherServiceM44Result struct {
	Success *string `thrift:"success,0,optional" json:"success,omitempty"`
}

func NewMyAnotherServiceM44Result added in v0.3.11

func NewMyAnotherServiceM44Result() *MyAnotherServiceM44Result

func (*MyAnotherServiceM44Result) GetSuccess added in v0.3.11

func (p *MyAnotherServiceM44Result) GetSuccess() (v string)

func (*MyAnotherServiceM44Result) InitDefault added in v0.3.16

func (p *MyAnotherServiceM44Result) InitDefault()

func (*MyAnotherServiceM44Result) IsSetSuccess added in v0.3.11

func (p *MyAnotherServiceM44Result) IsSetSuccess() bool

func (*MyAnotherServiceM44Result) String added in v0.3.11

func (p *MyAnotherServiceM44Result) String() string

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) GetTypeDescriptor added in v0.3.11

func (p *MyException) GetTypeDescriptor() *thrift_reflection.TypeDescriptor

func (*MyException) InitDefault added in v0.3.16

func (p *MyException) InitDefault()

func (*MyException) String

func (p *MyException) String() string

type MyParentService added in v0.3.11

type MyParentService interface {
	MyAnotherService

	M11(ctx context.Context) (r string, err error)

	M22(ctx context.Context) (r string, err error)
}

type MyParentServiceM11Args added in v0.3.11

type MyParentServiceM11Args struct {
}

func NewMyParentServiceM11Args added in v0.3.11

func NewMyParentServiceM11Args() *MyParentServiceM11Args

func (*MyParentServiceM11Args) InitDefault added in v0.3.16

func (p *MyParentServiceM11Args) InitDefault()

func (*MyParentServiceM11Args) String added in v0.3.11

func (p *MyParentServiceM11Args) String() string

type MyParentServiceM11Result added in v0.3.11

type MyParentServiceM11Result struct {
	Success *string `thrift:"success,0,optional" json:"success,omitempty"`
}

func NewMyParentServiceM11Result added in v0.3.11

func NewMyParentServiceM11Result() *MyParentServiceM11Result

func (*MyParentServiceM11Result) GetSuccess added in v0.3.11

func (p *MyParentServiceM11Result) GetSuccess() (v string)

func (*MyParentServiceM11Result) InitDefault added in v0.3.16

func (p *MyParentServiceM11Result) InitDefault()

func (*MyParentServiceM11Result) IsSetSuccess added in v0.3.11

func (p *MyParentServiceM11Result) IsSetSuccess() bool

func (*MyParentServiceM11Result) String added in v0.3.11

func (p *MyParentServiceM11Result) String() string

type MyParentServiceM22Args added in v0.3.11

type MyParentServiceM22Args struct {
}

func NewMyParentServiceM22Args added in v0.3.11

func NewMyParentServiceM22Args() *MyParentServiceM22Args

func (*MyParentServiceM22Args) InitDefault added in v0.3.16

func (p *MyParentServiceM22Args) InitDefault()

func (*MyParentServiceM22Args) String added in v0.3.11

func (p *MyParentServiceM22Args) String() string

type MyParentServiceM22Result added in v0.3.11

type MyParentServiceM22Result struct {
	Success *string `thrift:"success,0,optional" json:"success,omitempty"`
}

func NewMyParentServiceM22Result added in v0.3.11

func NewMyParentServiceM22Result() *MyParentServiceM22Result

func (*MyParentServiceM22Result) GetSuccess added in v0.3.11

func (p *MyParentServiceM22Result) GetSuccess() (v string)

func (*MyParentServiceM22Result) InitDefault added in v0.3.16

func (p *MyParentServiceM22Result) InitDefault()

func (*MyParentServiceM22Result) IsSetSuccess added in v0.3.11

func (p *MyParentServiceM22Result) IsSetSuccess() bool

func (*MyParentServiceM22Result) String added in v0.3.11

func (p *MyParentServiceM22Result) String() string

type MyService

type MyService interface {
	MyParentService

	M1(ctx context.Context, p_ *Person) (r string, err error)

	M2(ctx context.Context, p2 *Person) (r string, err error)

	M3(ctx context.Context, a0 *A0, a3 *A3) (r *A1, err error)
}

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) InitDefault added in v0.3.16

func (p *MyServiceM1Args) InitDefault()

func (*MyServiceM1Args) IsSetP

func (p *MyServiceM1Args) IsSetP() bool

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 {
	P2 *Person `thrift:"p2,1,required" json:"p2"`
}

func NewMyServiceM2Args

func NewMyServiceM2Args() *MyServiceM2Args

func (*MyServiceM2Args) GetP2

func (p *MyServiceM2Args) GetP2() (v *Person)

func (*MyServiceM2Args) InitDefault added in v0.3.16

func (p *MyServiceM2Args) InitDefault()

func (*MyServiceM2Args) IsSetP2

func (p *MyServiceM2Args) IsSetP2() bool

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 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) InitDefault added in v0.3.16

func (p *MyServiceM3Args) InitDefault()

func (*MyServiceM3Args) IsSetA0

func (p *MyServiceM3Args) IsSetA0() bool

func (*MyServiceM3Args) IsSetA3

func (p *MyServiceM3Args) IsSetA3() bool

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) InitDefault added in v0.3.16

func (p *MyServiceM3Result) InitDefault()

func (*MyServiceM3Result) IsSetSuccess

func (p *MyServiceM3Result) IsSetSuccess() bool

func (*MyServiceM3Result) String

func (p *MyServiceM3Result) String() string

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 (p *MyUnion) CountSetFieldsMyUnion() int

func (*MyUnion) GetAge

func (p *MyUnion) GetAge() (v int8)

func (*MyUnion) GetDescriptor

func (p *MyUnion) GetDescriptor() *thrift_reflection.StructDescriptor

func (*MyUnion) GetNumber

func (p *MyUnion) GetNumber() (v string)

func (*MyUnion) GetTypeDescriptor added in v0.3.11

func (p *MyUnion) GetTypeDescriptor() *thrift_reflection.TypeDescriptor

func (*MyUnion) InitDefault added in v0.3.16

func (p *MyUnion) InitDefault()

func (*MyUnion) IsSetAge

func (p *MyUnion) IsSetAge() bool

func (*MyUnion) IsSetNumber

func (p *MyUnion) IsSetNumber() bool

func (*MyUnion) String

func (p *MyUnion) String() string

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 NewPerson

func NewPerson() *Person

func (*Person) GetDefaultConst

func (p *Person) GetDefaultConst() (v string)

func (*Person) GetDefaultValue

func (p *Person) GetDefaultValue() (v string)

func (*Person) GetDescriptor

func (p *Person) GetDescriptor() *thrift_reflection.StructDescriptor

func (*Person) GetExp

func (p *Person) GetExp() (v *MyException)

func (*Person) GetGender

func (p *Person) GetGender() (v Gender)

func (*Person) GetID

func (p *Person) GetID() (v *IDCard)

func (*Person) GetName

func (p *Person) GetName() (v string)

func (*Person) GetTypeDescriptor added in v0.3.11

func (p *Person) GetTypeDescriptor() *thrift_reflection.TypeDescriptor

func (*Person) GetTypedefValue

func (p *Person) GetTypedefValue() (v SpecialString)

func (*Person) GetUni

func (p *Person) GetUni() (v *MyUnion)

func (*Person) InitDefault added in v0.3.16

func (p *Person) InitDefault()

func (*Person) IsSetExp

func (p *Person) IsSetExp() bool

func (*Person) IsSetID

func (p *Person) IsSetID() bool

func (*Person) IsSetUni

func (p *Person) IsSetUni() bool

func (*Person) String

func (p *Person) String() string

type Size

type Size int64
const (
	Size_S   Size = 0
	Size_M   Size = 1
	Size_L   Size = 2
	Size_XL  Size = 3
	Size_XXL Size = 4
)

func SizeFromString

func SizeFromString(s string) (Size, error)

func SizePtr

func SizePtr(v Size) *Size

func (Size) GetDescriptor

func (p Size) GetDescriptor() *thrift_reflection.EnumDescriptor

func (*Size) GetTypeDescriptor added in v0.3.11

func (p *Size) GetTypeDescriptor() *thrift_reflection.TypeDescriptor

func (*Size) Scan

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

func (Size) String

func (p Size) String() string

func (*Size) Value

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

type SpecialPerson

type SpecialPerson = Person

func NewSpecialPerson

func NewSpecialPerson() *SpecialPerson

type SpecialString

type SpecialString = string

Jump to

Keyboard shortcuts

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