Documentation ¶
Index ¶
- Variables
- func GetFileDescriptorForTest() *thrift_reflection.FileDescriptor
- type IDCard
- func (p *IDCard) GetAge() (v int8)
- func (p *IDCard) GetDescriptor() *thrift_reflection.StructDescriptor
- func (p *IDCard) GetNumber() (v string)
- func (p *IDCard) Read(iprot thrift.TProtocol) (err error)
- func (p *IDCard) ReadField1(iprot thrift.TProtocol) error
- func (p *IDCard) ReadField2(iprot thrift.TProtocol) error
- func (p *IDCard) String() string
- func (p *IDCard) Write(oprot thrift.TProtocol) (err error)
- type MyEnum
- type MyService
- type MyServiceClient
- type MyServiceM1Args
- type MyServiceM1Result
- func (p *MyServiceM1Result) GetSuccess() (v string)
- func (p *MyServiceM1Result) IsSetSuccess() bool
- func (p *MyServiceM1Result) Read(iprot thrift.TProtocol) (err error)
- func (p *MyServiceM1Result) ReadField0(iprot thrift.TProtocol) error
- func (p *MyServiceM1Result) String() string
- func (p *MyServiceM1Result) Write(oprot thrift.TProtocol) (err error)
- type MyServiceM2Args
- type MyServiceM2Result
- func (p *MyServiceM2Result) GetSuccess() (v string)
- func (p *MyServiceM2Result) IsSetSuccess() bool
- func (p *MyServiceM2Result) Read(iprot thrift.TProtocol) (err error)
- func (p *MyServiceM2Result) ReadField0(iprot thrift.TProtocol) error
- func (p *MyServiceM2Result) String() string
- func (p *MyServiceM2Result) Write(oprot thrift.TProtocol) (err error)
- type MyServiceProcessor
- func (p *MyServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *MyServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *MyServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *MyServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type Person
- func (p *Person) GetDescriptor() *thrift_reflection.StructDescriptor
- func (p *Person) GetID() (v *IDCard)
- func (p *Person) GetName() (v string)
- func (p *Person) IsSetID() bool
- func (p *Person) Read(iprot thrift.TProtocol) (err error)
- func (p *Person) ReadField1(iprot thrift.TProtocol) error
- func (p *Person) ReadField2(iprot thrift.TProtocol) error
- func (p *Person) String() string
- func (p *Person) Write(oprot thrift.TProtocol) (err error)
- type PersonB
- type PersonC
- type TinyStruct
- func (p *TinyStruct) GetB1() (v bool)
- func (p *TinyStruct) GetB2() (v bool)
- func (p *TinyStruct) GetDescriptor() *thrift_reflection.StructDescriptor
- func (p *TinyStruct) Read(iprot thrift.TProtocol) (err error)
- func (p *TinyStruct) ReadField1(iprot thrift.TProtocol) error
- func (p *TinyStruct) ReadField2(iprot thrift.TProtocol) error
- func (p *TinyStruct) String() string
- func (p *TinyStruct) Write(oprot thrift.TProtocol) (err error)
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
type MyEnum ¶
type MyEnum int64
func MyEnumFromString ¶
func (MyEnum) GetDescriptor ¶
func (p MyEnum) GetDescriptor() *thrift_reflection.EnumDescriptor
type MyServiceClient ¶
type MyServiceClient struct {
// contains filtered or unexported fields
}
func NewMyServiceClient ¶
func NewMyServiceClient(c thrift.TClient) *MyServiceClient
func NewMyServiceClientFactory ¶
func NewMyServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *MyServiceClient
func NewMyServiceClientProtocol ¶
func NewMyServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *MyServiceClient
func (*MyServiceClient) Client_ ¶
func (p *MyServiceClient) Client_() thrift.TClient
type MyServiceM1Args ¶
type MyServiceM1Args struct { }
func NewMyServiceM1Args ¶
func NewMyServiceM1Args() *MyServiceM1Args
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) 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
type MyServiceM2Args ¶
type MyServiceM2Args struct { }
func NewMyServiceM2Args ¶
func NewMyServiceM2Args() *MyServiceM2Args
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) 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
type MyServiceProcessor ¶
type MyServiceProcessor struct {
// contains filtered or unexported fields
}
func NewMyServiceProcessor ¶
func NewMyServiceProcessor(handler MyService) *MyServiceProcessor
func (*MyServiceProcessor) AddToProcessorMap ¶
func (p *MyServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*MyServiceProcessor) GetProcessorFunction ¶
func (p *MyServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*MyServiceProcessor) Process ¶
func (p *MyServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*MyServiceProcessor) ProcessorMap ¶
func (p *MyServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
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
type PersonB ¶
type PersonB struct { }
func NewPersonB ¶
func NewPersonB() *PersonB
func (*PersonB) GetDescriptor ¶
func (p *PersonB) GetDescriptor() *thrift_reflection.StructDescriptor
type PersonC ¶
type PersonC struct { }
func NewPersonC ¶
func NewPersonC() *PersonC
func (*PersonC) GetDescriptor ¶
func (p *PersonC) GetDescriptor() *thrift_reflection.StructDescriptor
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) ReadField1 ¶
func (p *TinyStruct) ReadField1(iprot thrift.TProtocol) error
func (*TinyStruct) ReadField2 ¶
func (p *TinyStruct) ReadField2(iprot thrift.TProtocol) error
func (*TinyStruct) String ¶
func (p *TinyStruct) String() string
Click to show internal directories.
Click to hide internal directories.