Documentation
¶
Index ¶
- Variables
- type ExampleService
- type ExampleServiceClient
- func NewExampleServiceClient(c thrift.TClient) *ExampleServiceClient
- func NewExampleServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *ExampleServiceClient
- func NewExampleServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *ExampleServiceClient
- type ExampleServiceProcessor
- func (p *ExampleServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *ExampleServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *ExampleServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *ExampleServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type ExampleServiceSayHelloArgs
- func (p *ExampleServiceSayHelloArgs) GetName() string
- func (p *ExampleServiceSayHelloArgs) LogValue() slog.Value
- func (p *ExampleServiceSayHelloArgs) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ExampleServiceSayHelloArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ExampleServiceSayHelloArgs) String() string
- func (p *ExampleServiceSayHelloArgs) Write(ctx context.Context, oprot thrift.TProtocol) error
- type ExampleServiceSayHelloResult
- func (p *ExampleServiceSayHelloResult) LogValue() slog.Value
- func (p *ExampleServiceSayHelloResult) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ExampleServiceSayHelloResult) String() string
- func (p *ExampleServiceSayHelloResult) Write(ctx context.Context, oprot thrift.TProtocol) error
- type Person
- func (p *Person) Equals(other *Person) bool
- func (p *Person) GetAge() int32
- func (p *Person) GetName() string
- func (p *Person) IsSetAge() bool
- func (p *Person) LogValue() slog.Value
- func (p *Person) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Person) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Person) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Person) String() string
- func (p *Person) Validate() error
- func (p *Person) Write(ctx context.Context, oprot thrift.TProtocol) error
Constants ¶
This section is empty.
Variables ¶
View Source
var GoUnusedProtection__ int
View Source
var Person_Age_DEFAULT int32
Functions ¶
This section is empty.
Types ¶
type ExampleService ¶
type ExampleServiceClient ¶
type ExampleServiceClient struct {
// contains filtered or unexported fields
}
func NewExampleServiceClient ¶
func NewExampleServiceClient(c thrift.TClient) *ExampleServiceClient
func NewExampleServiceClientFactory ¶
func NewExampleServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *ExampleServiceClient
func NewExampleServiceClientProtocol ¶
func NewExampleServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *ExampleServiceClient
func (*ExampleServiceClient) Client_ ¶
func (p *ExampleServiceClient) Client_() thrift.TClient
func (*ExampleServiceClient) LastResponseMeta_ ¶
func (p *ExampleServiceClient) LastResponseMeta_() thrift.ResponseMeta
func (*ExampleServiceClient) SayHello ¶
func (p *ExampleServiceClient) SayHello(ctx context.Context, name string) (_err error)
Parameters:
- Name
func (*ExampleServiceClient) SetLastResponseMeta_ ¶
func (p *ExampleServiceClient) SetLastResponseMeta_(meta thrift.ResponseMeta)
type ExampleServiceProcessor ¶
type ExampleServiceProcessor struct {
// contains filtered or unexported fields
}
func NewExampleServiceProcessor ¶
func NewExampleServiceProcessor(handler ExampleService) *ExampleServiceProcessor
func (*ExampleServiceProcessor) AddToProcessorMap ¶
func (p *ExampleServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*ExampleServiceProcessor) GetProcessorFunction ¶
func (p *ExampleServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*ExampleServiceProcessor) Process ¶
func (p *ExampleServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*ExampleServiceProcessor) ProcessorMap ¶
func (p *ExampleServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type ExampleServiceSayHelloArgs ¶
type ExampleServiceSayHelloArgs struct {
Name string `thrift:"name,1" db:"name" json:"name"`
}
Attributes:
- Name
func NewExampleServiceSayHelloArgs ¶
func NewExampleServiceSayHelloArgs() *ExampleServiceSayHelloArgs
func (*ExampleServiceSayHelloArgs) GetName ¶
func (p *ExampleServiceSayHelloArgs) GetName() string
func (*ExampleServiceSayHelloArgs) LogValue ¶
func (p *ExampleServiceSayHelloArgs) LogValue() slog.Value
func (*ExampleServiceSayHelloArgs) ReadField1 ¶
func (*ExampleServiceSayHelloArgs) String ¶
func (p *ExampleServiceSayHelloArgs) String() string
type ExampleServiceSayHelloResult ¶
type ExampleServiceSayHelloResult struct {
}
func NewExampleServiceSayHelloResult ¶
func NewExampleServiceSayHelloResult() *ExampleServiceSayHelloResult
func (*ExampleServiceSayHelloResult) LogValue ¶
func (p *ExampleServiceSayHelloResult) LogValue() slog.Value
func (*ExampleServiceSayHelloResult) String ¶
func (p *ExampleServiceSayHelloResult) String() string
type Person ¶
type Person struct {
Name string `thrift:"name,1,required" db:"name" json:"name"`
Age *int32 `thrift:"age,2" db:"age" json:"age,omitempty"`
}
Attributes:
- Name
- Age
func (*Person) ReadField1 ¶
func (*Person) ReadField2 ¶
Click to show internal directories.
Click to hide internal directories.