thrift_reflection_test

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

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

func (p *A0) IsSetF2() bool

func (*A0) Read

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

func (*A0) ReadField1

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

func (*A0) ReadField2

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

func (*A0) ReadField3

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

func (*A0) ReadField4

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

func (*A0) String

func (p *A0) String() string

func (*A0) Write

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

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

func (p *A1) IsSetF2() bool

func (*A1) Read

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

func (*A1) ReadField1

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

func (*A1) ReadField2

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

func (*A1) String

func (p *A1) String() string

func (*A1) Write

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

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

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

func (*A2) ReadField1

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

func (*A2) String

func (p *A2) String() string

func (*A2) Write

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

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

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

func (*A3) ReadField1

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

func (*A3) String

func (p *A3) String() string

func (*A3) Write

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

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

func (p *B) IsSetF1() bool

func (*B) IsSetF2

func (p *B) IsSetF2() bool

func (*B) Read

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

func (*B) ReadField1

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

func (*B) ReadField2

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

func (*B) String

func (p *B) String() string

func (*B) Write

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

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

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

func (*B1) ReadField1

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

func (*B1) String

func (p *B1) String() string

func (*B1) Write

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

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

func (p *C) IsSetF1() bool

func (*C) Read

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

func (*C) ReadField1

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

func (*C) String

func (p *C) String() string

func (*C) Write

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

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

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

func (*D) ReadField1

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

func (*D) String

func (p *D) String() string

func (*D) Write

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

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

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

func (*D1) ReadField1

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

func (*D1) String

func (p *D1) String() string

func (*D1) Write

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

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

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

func (*D2) ReadField1

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

func (*D2) String

func (p *D2) String() string

func (*D2) Write

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

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

func (p *E) IsSetF1() bool

func (*E) Read

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

func (*E) ReadField1

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

func (*E) String

func (p *E) String() string

func (*E) Write

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

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

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

func (*F) ReadField1

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

func (*F) String

func (p *F) String() string

func (*F) Write

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

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

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

func (*IDCard) ReadField1

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

func (*IDCard) ReadField2

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

func (*IDCard) String

func (p *IDCard) String() string

func (*IDCard) Write

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

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

type MyAnotherServiceClient struct {
	// contains filtered or unexported fields
}

func NewMyAnotherServiceClient added in v0.3.11

func NewMyAnotherServiceClient(c thrift.TClient) *MyAnotherServiceClient

func NewMyAnotherServiceClientFactory added in v0.3.11

func NewMyAnotherServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *MyAnotherServiceClient

func NewMyAnotherServiceClientProtocol added in v0.3.11

func NewMyAnotherServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *MyAnotherServiceClient

func (*MyAnotherServiceClient) Client_ added in v0.3.11

func (p *MyAnotherServiceClient) Client_() thrift.TClient

func (*MyAnotherServiceClient) M33 added in v0.3.11

func (p *MyAnotherServiceClient) M33(ctx context.Context) (r string, err error)

func (*MyAnotherServiceClient) M44 added in v0.3.11

func (p *MyAnotherServiceClient) 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) Read added in v0.3.11

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

func (*MyAnotherServiceM33Args) String added in v0.3.11

func (p *MyAnotherServiceM33Args) String() string

func (*MyAnotherServiceM33Args) Write added in v0.3.11

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

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

func (p *MyAnotherServiceM33Result) IsSetSuccess() bool

func (*MyAnotherServiceM33Result) Read added in v0.3.11

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

func (*MyAnotherServiceM33Result) ReadField0 added in v0.3.11

func (p *MyAnotherServiceM33Result) ReadField0(iprot thrift.TProtocol) error

func (*MyAnotherServiceM33Result) String added in v0.3.11

func (p *MyAnotherServiceM33Result) String() string

func (*MyAnotherServiceM33Result) Write added in v0.3.11

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

type MyAnotherServiceM44Args added in v0.3.11

type MyAnotherServiceM44Args struct {
}

func NewMyAnotherServiceM44Args added in v0.3.11

func NewMyAnotherServiceM44Args() *MyAnotherServiceM44Args

func (*MyAnotherServiceM44Args) Read added in v0.3.11

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

func (*MyAnotherServiceM44Args) String added in v0.3.11

func (p *MyAnotherServiceM44Args) String() string

func (*MyAnotherServiceM44Args) Write added in v0.3.11

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

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

func (p *MyAnotherServiceM44Result) IsSetSuccess() bool

func (*MyAnotherServiceM44Result) Read added in v0.3.11

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

func (*MyAnotherServiceM44Result) ReadField0 added in v0.3.11

func (p *MyAnotherServiceM44Result) ReadField0(iprot thrift.TProtocol) error

func (*MyAnotherServiceM44Result) String added in v0.3.11

func (p *MyAnotherServiceM44Result) String() string

func (*MyAnotherServiceM44Result) Write added in v0.3.11

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

type MyAnotherServiceProcessor added in v0.3.11

type MyAnotherServiceProcessor struct {
	// contains filtered or unexported fields
}

func NewMyAnotherServiceProcessor added in v0.3.11

func NewMyAnotherServiceProcessor(handler MyAnotherService) *MyAnotherServiceProcessor

func (*MyAnotherServiceProcessor) AddToProcessorMap added in v0.3.11

func (p *MyAnotherServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)

func (*MyAnotherServiceProcessor) GetProcessorFunction added in v0.3.11

func (p *MyAnotherServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)

func (*MyAnotherServiceProcessor) Process added in v0.3.11

func (p *MyAnotherServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)

func (*MyAnotherServiceProcessor) ProcessorMap added in v0.3.11

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

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

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

func (*MyException) Write

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

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

type MyParentServiceClient struct {
	*MyAnotherServiceClient
}

func NewMyParentServiceClient added in v0.3.11

func NewMyParentServiceClient(c thrift.TClient) *MyParentServiceClient

func NewMyParentServiceClientFactory added in v0.3.11

func NewMyParentServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *MyParentServiceClient

func NewMyParentServiceClientProtocol added in v0.3.11

func NewMyParentServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *MyParentServiceClient

func (*MyParentServiceClient) M11 added in v0.3.11

func (p *MyParentServiceClient) M11(ctx context.Context) (r string, err error)

func (*MyParentServiceClient) M22 added in v0.3.11

func (p *MyParentServiceClient) 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) Read added in v0.3.11

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

func (*MyParentServiceM11Args) String added in v0.3.11

func (p *MyParentServiceM11Args) String() string

func (*MyParentServiceM11Args) Write added in v0.3.11

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

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

func (p *MyParentServiceM11Result) IsSetSuccess() bool

func (*MyParentServiceM11Result) Read added in v0.3.11

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

func (*MyParentServiceM11Result) ReadField0 added in v0.3.11

func (p *MyParentServiceM11Result) ReadField0(iprot thrift.TProtocol) error

func (*MyParentServiceM11Result) String added in v0.3.11

func (p *MyParentServiceM11Result) String() string

func (*MyParentServiceM11Result) Write added in v0.3.11

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

type MyParentServiceM22Args added in v0.3.11

type MyParentServiceM22Args struct {
}

func NewMyParentServiceM22Args added in v0.3.11

func NewMyParentServiceM22Args() *MyParentServiceM22Args

func (*MyParentServiceM22Args) Read added in v0.3.11

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

func (*MyParentServiceM22Args) String added in v0.3.11

func (p *MyParentServiceM22Args) String() string

func (*MyParentServiceM22Args) Write added in v0.3.11

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

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

func (p *MyParentServiceM22Result) IsSetSuccess() bool

func (*MyParentServiceM22Result) Read added in v0.3.11

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

func (*MyParentServiceM22Result) ReadField0 added in v0.3.11

func (p *MyParentServiceM22Result) ReadField0(iprot thrift.TProtocol) error

func (*MyParentServiceM22Result) String added in v0.3.11

func (p *MyParentServiceM22Result) String() string

func (*MyParentServiceM22Result) Write added in v0.3.11

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

type MyParentServiceProcessor added in v0.3.11

type MyParentServiceProcessor struct {
	*MyAnotherServiceProcessor
}

func NewMyParentServiceProcessor added in v0.3.11

func NewMyParentServiceProcessor(handler MyParentService) *MyParentServiceProcessor

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 MyServiceClient

type MyServiceClient struct {
	*MyParentServiceClient
}

func NewMyServiceClient

func NewMyServiceClient(c thrift.TClient) *MyServiceClient

func NewMyServiceClientProtocol

func NewMyServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *MyServiceClient

func (*MyServiceClient) M1

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

func (*MyServiceClient) M2

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

func (*MyServiceClient) M3

func (p *MyServiceClient) 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) IsSetP

func (p *MyServiceM1Args) IsSetP() bool

func (*MyServiceM1Args) Read

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

func (*MyServiceM1Args) ReadField1

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

func (*MyServiceM1Args) String

func (p *MyServiceM1Args) String() string

func (*MyServiceM1Args) Write

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

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

func (*MyServiceM1Result) Write

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

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

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

func (*MyServiceM2Args) ReadField1

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

func (*MyServiceM2Args) String

func (p *MyServiceM2Args) String() string

func (*MyServiceM2Args) Write

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

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

func (*MyServiceM2Result) Write

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

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

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

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

func (*MyServiceM3Args) Write

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

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

func (*MyServiceM3Result) Write

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

type MyServiceProcessor

type MyServiceProcessor struct {
	*MyParentServiceProcessor
}

func NewMyServiceProcessor

func NewMyServiceProcessor(handler MyService) *MyServiceProcessor

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

func (p *MyUnion) IsSetAge() bool

func (*MyUnion) IsSetNumber

func (p *MyUnion) IsSetNumber() bool

func (*MyUnion) Read

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

func (*MyUnion) ReadField1

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

func (*MyUnion) ReadField2

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

func (*MyUnion) String

func (p *MyUnion) String() string

func (*MyUnion) Write

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

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

func (p *Person) IsSetExp() bool

func (*Person) IsSetID

func (p *Person) IsSetID() bool

func (*Person) IsSetUni

func (p *Person) IsSetUni() bool

func (*Person) Read

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

func (*Person) ReadField1

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

func (*Person) ReadField2

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

func (*Person) ReadField3

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

func (*Person) ReadField4

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

func (*Person) ReadField5

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

func (*Person) ReadField6

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

func (*Person) ReadField7

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

func (*Person) ReadField8

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

func (*Person) String

func (p *Person) String() string

func (*Person) Write

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

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