Documentation ¶
Index ¶
- Variables
- type SharedService
- type SharedServiceClient
- func (p *SharedServiceClient) Client_() thrift.TClient
- func (p *SharedServiceClient) GetStruct(ctx context.Context, key int32) (_r *SharedStruct, _err error)
- func (p *SharedServiceClient) LastResponseMeta_() thrift.ResponseMeta
- func (p *SharedServiceClient) SetLastResponseMeta_(meta thrift.ResponseMeta)
- type SharedServiceGetStructArgs
- func (p *SharedServiceGetStructArgs) GetKey() int32
- func (p *SharedServiceGetStructArgs) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *SharedServiceGetStructArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *SharedServiceGetStructArgs) String() string
- func (p *SharedServiceGetStructArgs) Write(ctx context.Context, oprot thrift.TProtocol) error
- type SharedServiceGetStructResult
- func (p *SharedServiceGetStructResult) GetSuccess() *SharedStruct
- func (p *SharedServiceGetStructResult) IsSetSuccess() bool
- func (p *SharedServiceGetStructResult) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *SharedServiceGetStructResult) ReadField0(ctx context.Context, iprot thrift.TProtocol) error
- func (p *SharedServiceGetStructResult) String() string
- func (p *SharedServiceGetStructResult) Write(ctx context.Context, oprot thrift.TProtocol) error
- type SharedServiceProcessor
- func (p *SharedServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *SharedServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *SharedServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *SharedServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type SharedStruct
- func (p *SharedStruct) Equals(other *SharedStruct) bool
- func (p *SharedStruct) GetKey() int32
- func (p *SharedStruct) GetValue() string
- func (p *SharedStruct) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *SharedStruct) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *SharedStruct) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *SharedStruct) String() string
- func (p *SharedStruct) Validate() error
- func (p *SharedStruct) Write(ctx context.Context, oprot thrift.TProtocol) error
Constants ¶
This section is empty.
Variables ¶
View Source
var GoUnusedProtection__ int
Functions ¶
This section is empty.
Types ¶
type SharedService ¶
type SharedService interface { // - Key GetStruct(ctx context.Context, key int32) (_r *SharedStruct, _err error) }
type SharedServiceClient ¶
type SharedServiceClient struct {
// contains filtered or unexported fields
}
func NewSharedServiceClient ¶
func NewSharedServiceClient(c thrift.TClient) *SharedServiceClient
func NewSharedServiceClientFactory ¶
func NewSharedServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *SharedServiceClient
func NewSharedServiceClientProtocol ¶
func NewSharedServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *SharedServiceClient
func (*SharedServiceClient) Client_ ¶
func (p *SharedServiceClient) Client_() thrift.TClient
func (*SharedServiceClient) GetStruct ¶
func (p *SharedServiceClient) GetStruct(ctx context.Context, key int32) (_r *SharedStruct, _err error)
Parameters:
- Key
func (*SharedServiceClient) LastResponseMeta_ ¶
func (p *SharedServiceClient) LastResponseMeta_() thrift.ResponseMeta
func (*SharedServiceClient) SetLastResponseMeta_ ¶
func (p *SharedServiceClient) SetLastResponseMeta_(meta thrift.ResponseMeta)
type SharedServiceGetStructArgs ¶
type SharedServiceGetStructArgs struct {
}Attributes:
- Key
func NewSharedServiceGetStructArgs ¶
func NewSharedServiceGetStructArgs() *SharedServiceGetStructArgs
func (*SharedServiceGetStructArgs) GetKey ¶
func (p *SharedServiceGetStructArgs) GetKey() int32
func (*SharedServiceGetStructArgs) ReadField1 ¶
func (*SharedServiceGetStructArgs) String ¶
func (p *SharedServiceGetStructArgs) String() string
type SharedServiceGetStructResult ¶
type SharedServiceGetStructResult struct {
}Attributes:
- Success
func NewSharedServiceGetStructResult ¶
func NewSharedServiceGetStructResult() *SharedServiceGetStructResult
func (*SharedServiceGetStructResult) GetSuccess ¶
func (p *SharedServiceGetStructResult) GetSuccess() *SharedStruct
func (*SharedServiceGetStructResult) IsSetSuccess ¶
func (p *SharedServiceGetStructResult) IsSetSuccess() bool
func (*SharedServiceGetStructResult) ReadField0 ¶
func (*SharedServiceGetStructResult) String ¶
func (p *SharedServiceGetStructResult) String() string
type SharedServiceProcessor ¶
type SharedServiceProcessor struct {
// contains filtered or unexported fields
}
func NewSharedServiceProcessor ¶
func NewSharedServiceProcessor(handler SharedService) *SharedServiceProcessor
func (*SharedServiceProcessor) AddToProcessorMap ¶
func (p *SharedServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*SharedServiceProcessor) GetProcessorFunction ¶
func (p *SharedServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*SharedServiceProcessor) Process ¶
func (p *SharedServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*SharedServiceProcessor) ProcessorMap ¶
func (p *SharedServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type SharedStruct ¶
type SharedStruct struct {}
Attributes:
- Key
- Value
func NewSharedStruct ¶
func NewSharedStruct() *SharedStruct
func (*SharedStruct) Equals ¶
func (p *SharedStruct) Equals(other *SharedStruct) bool
func (*SharedStruct) GetKey ¶
func (p *SharedStruct) GetKey() int32
func (*SharedStruct) GetValue ¶
func (p *SharedStruct) GetValue() string
func (*SharedStruct) ReadField1 ¶
func (*SharedStruct) ReadField2 ¶
func (*SharedStruct) String ¶
func (p *SharedStruct) String() string
func (*SharedStruct) Validate ¶
func (p *SharedStruct) Validate() error
Click to show internal directories.
Click to hide internal directories.