Documentation ¶
Index ¶
- Variables
- type DetailsService
- type DetailsServiceClient
- func NewDetailsServiceClient(c thrift.TClient) *DetailsServiceClient
- func NewDetailsServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *DetailsServiceClient
- func NewDetailsServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *DetailsServiceClient
- type DetailsServiceGetProductArgs
- func (p *DetailsServiceGetProductArgs) BLength() int
- func (p *DetailsServiceGetProductArgs) DeepEqual(ano *DetailsServiceGetProductArgs) bool
- func (p *DetailsServiceGetProductArgs) FastRead(buf []byte) (int, error)
- func (p *DetailsServiceGetProductArgs) FastReadField1(buf []byte) (int, error)
- func (p *DetailsServiceGetProductArgs) FastWrite(buf []byte) int
- func (p *DetailsServiceGetProductArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *DetailsServiceGetProductArgs) Field1DeepEqual(src *GetProductReq) bool
- func (p *DetailsServiceGetProductArgs) GetFirstArgument() interface{}
- func (p *DetailsServiceGetProductArgs) GetReq() (v *GetProductReq)
- func (p *DetailsServiceGetProductArgs) IsSetReq() bool
- func (p *DetailsServiceGetProductArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *DetailsServiceGetProductArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *DetailsServiceGetProductArgs) SetReq(val *GetProductReq)
- func (p *DetailsServiceGetProductArgs) String() string
- func (p *DetailsServiceGetProductArgs) Write(oprot thrift.TProtocol) (err error)
- type DetailsServiceGetProductResult
- func (p *DetailsServiceGetProductResult) BLength() int
- func (p *DetailsServiceGetProductResult) DeepEqual(ano *DetailsServiceGetProductResult) bool
- func (p *DetailsServiceGetProductResult) FastRead(buf []byte) (int, error)
- func (p *DetailsServiceGetProductResult) FastReadField0(buf []byte) (int, error)
- func (p *DetailsServiceGetProductResult) FastWrite(buf []byte) int
- func (p *DetailsServiceGetProductResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *DetailsServiceGetProductResult) Field0DeepEqual(src *GetProductResp) bool
- func (p *DetailsServiceGetProductResult) GetResult() interface{}
- func (p *DetailsServiceGetProductResult) GetSuccess() (v *GetProductResp)
- func (p *DetailsServiceGetProductResult) IsSetSuccess() bool
- func (p *DetailsServiceGetProductResult) Read(iprot thrift.TProtocol) (err error)
- func (p *DetailsServiceGetProductResult) ReadField0(iprot thrift.TProtocol) error
- func (p *DetailsServiceGetProductResult) SetSuccess(x interface{})
- func (p *DetailsServiceGetProductResult) String() string
- func (p *DetailsServiceGetProductResult) Write(oprot thrift.TProtocol) (err error)
- type DetailsServiceProcessor
- func (p *DetailsServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *DetailsServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *DetailsServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *DetailsServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type GetProductReq
- func (p *GetProductReq) BLength() int
- func (p *GetProductReq) DeepEqual(ano *GetProductReq) bool
- func (p *GetProductReq) FastRead(buf []byte) (int, error)
- func (p *GetProductReq) FastReadField1(buf []byte) (int, error)
- func (p *GetProductReq) FastWrite(buf []byte) int
- func (p *GetProductReq) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *GetProductReq) Field1DeepEqual(src string) bool
- func (p *GetProductReq) GetID() (v string)
- func (p *GetProductReq) Read(iprot thrift.TProtocol) (err error)
- func (p *GetProductReq) ReadField1(iprot thrift.TProtocol) error
- func (p *GetProductReq) SetID(val string)
- func (p *GetProductReq) String() string
- func (p *GetProductReq) Write(oprot thrift.TProtocol) (err error)
- type GetProductResp
- func (p *GetProductResp) BLength() int
- func (p *GetProductResp) DeepEqual(ano *GetProductResp) bool
- func (p *GetProductResp) FastRead(buf []byte) (int, error)
- func (p *GetProductResp) FastReadField1(buf []byte) (int, error)
- func (p *GetProductResp) FastWrite(buf []byte) int
- func (p *GetProductResp) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *GetProductResp) Field1DeepEqual(src *Product) bool
- func (p *GetProductResp) GetProduct() (v *Product)
- func (p *GetProductResp) IsSetProduct() bool
- func (p *GetProductResp) Read(iprot thrift.TProtocol) (err error)
- func (p *GetProductResp) ReadField1(iprot thrift.TProtocol) error
- func (p *GetProductResp) SetProduct(val *Product)
- func (p *GetProductResp) String() string
- func (p *GetProductResp) Write(oprot thrift.TProtocol) (err error)
- type Product
- func (p *Product) BLength() int
- func (p *Product) DeepEqual(ano *Product) bool
- func (p *Product) FastRead(buf []byte) (int, error)
- func (p *Product) FastReadField1(buf []byte) (int, error)
- func (p *Product) FastReadField2(buf []byte) (int, error)
- func (p *Product) FastReadField3(buf []byte) (int, error)
- func (p *Product) FastReadField4(buf []byte) (int, error)
- func (p *Product) FastWrite(buf []byte) int
- func (p *Product) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *Product) Field1DeepEqual(src string) bool
- func (p *Product) Field2DeepEqual(src string) bool
- func (p *Product) Field3DeepEqual(src string) bool
- func (p *Product) Field4DeepEqual(src string) bool
- func (p *Product) GetAuthor() (v string)
- func (p *Product) GetDescription() (v string)
- func (p *Product) GetID() (v string)
- func (p *Product) GetTitle() (v string)
- func (p *Product) Read(iprot thrift.TProtocol) (err error)
- func (p *Product) ReadField1(iprot thrift.TProtocol) error
- func (p *Product) ReadField2(iprot thrift.TProtocol) error
- func (p *Product) ReadField3(iprot thrift.TProtocol) error
- func (p *Product) ReadField4(iprot thrift.TProtocol) error
- func (p *Product) SetAuthor(val string)
- func (p *Product) SetDescription(val string)
- func (p *Product) SetID(val string)
- func (p *Product) SetTitle(val string)
- func (p *Product) String() string
- func (p *Product) Write(oprot thrift.TProtocol) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var KitexUnusedProtection = struct{}{}
KitexUnusedProtection is used to prevent 'imported and not used' error.
Functions ¶
This section is empty.
Types ¶
type DetailsService ¶
type DetailsService interface {
GetProduct(ctx context.Context, req *GetProductReq) (r *GetProductResp, err error)
}
type DetailsServiceClient ¶
type DetailsServiceClient struct {
// contains filtered or unexported fields
}
func NewDetailsServiceClient ¶
func NewDetailsServiceClient(c thrift.TClient) *DetailsServiceClient
func NewDetailsServiceClientFactory ¶
func NewDetailsServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *DetailsServiceClient
func NewDetailsServiceClientProtocol ¶
func NewDetailsServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *DetailsServiceClient
func (*DetailsServiceClient) Client_ ¶
func (p *DetailsServiceClient) Client_() thrift.TClient
func (*DetailsServiceClient) GetProduct ¶
func (p *DetailsServiceClient) GetProduct(ctx context.Context, req *GetProductReq) (r *GetProductResp, err error)
type DetailsServiceGetProductArgs ¶
type DetailsServiceGetProductArgs struct {
Req *GetProductReq `thrift:"req,1" json:"req"`
}
func NewDetailsServiceGetProductArgs ¶
func NewDetailsServiceGetProductArgs() *DetailsServiceGetProductArgs
func (*DetailsServiceGetProductArgs) BLength ¶
func (p *DetailsServiceGetProductArgs) BLength() int
func (*DetailsServiceGetProductArgs) DeepEqual ¶
func (p *DetailsServiceGetProductArgs) DeepEqual(ano *DetailsServiceGetProductArgs) bool
func (*DetailsServiceGetProductArgs) FastRead ¶
func (p *DetailsServiceGetProductArgs) FastRead(buf []byte) (int, error)
func (*DetailsServiceGetProductArgs) FastReadField1 ¶
func (p *DetailsServiceGetProductArgs) FastReadField1(buf []byte) (int, error)
func (*DetailsServiceGetProductArgs) FastWrite ¶
func (p *DetailsServiceGetProductArgs) FastWrite(buf []byte) int
for compatibility
func (*DetailsServiceGetProductArgs) FastWriteNocopy ¶
func (p *DetailsServiceGetProductArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*DetailsServiceGetProductArgs) Field1DeepEqual ¶
func (p *DetailsServiceGetProductArgs) Field1DeepEqual(src *GetProductReq) bool
func (*DetailsServiceGetProductArgs) GetFirstArgument ¶
func (p *DetailsServiceGetProductArgs) GetFirstArgument() interface{}
func (*DetailsServiceGetProductArgs) GetReq ¶
func (p *DetailsServiceGetProductArgs) GetReq() (v *GetProductReq)
func (*DetailsServiceGetProductArgs) IsSetReq ¶
func (p *DetailsServiceGetProductArgs) IsSetReq() bool
func (*DetailsServiceGetProductArgs) Read ¶
func (p *DetailsServiceGetProductArgs) Read(iprot thrift.TProtocol) (err error)
func (*DetailsServiceGetProductArgs) ReadField1 ¶
func (p *DetailsServiceGetProductArgs) ReadField1(iprot thrift.TProtocol) error
func (*DetailsServiceGetProductArgs) SetReq ¶
func (p *DetailsServiceGetProductArgs) SetReq(val *GetProductReq)
func (*DetailsServiceGetProductArgs) String ¶
func (p *DetailsServiceGetProductArgs) String() string
type DetailsServiceGetProductResult ¶
type DetailsServiceGetProductResult struct {
Success *GetProductResp `thrift:"success,0,optional" json:"success,omitempty"`
}
func NewDetailsServiceGetProductResult ¶
func NewDetailsServiceGetProductResult() *DetailsServiceGetProductResult
func (*DetailsServiceGetProductResult) BLength ¶
func (p *DetailsServiceGetProductResult) BLength() int
func (*DetailsServiceGetProductResult) DeepEqual ¶
func (p *DetailsServiceGetProductResult) DeepEqual(ano *DetailsServiceGetProductResult) bool
func (*DetailsServiceGetProductResult) FastRead ¶
func (p *DetailsServiceGetProductResult) FastRead(buf []byte) (int, error)
func (*DetailsServiceGetProductResult) FastReadField0 ¶
func (p *DetailsServiceGetProductResult) FastReadField0(buf []byte) (int, error)
func (*DetailsServiceGetProductResult) FastWrite ¶
func (p *DetailsServiceGetProductResult) FastWrite(buf []byte) int
for compatibility
func (*DetailsServiceGetProductResult) FastWriteNocopy ¶
func (p *DetailsServiceGetProductResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*DetailsServiceGetProductResult) Field0DeepEqual ¶
func (p *DetailsServiceGetProductResult) Field0DeepEqual(src *GetProductResp) bool
func (*DetailsServiceGetProductResult) GetResult ¶
func (p *DetailsServiceGetProductResult) GetResult() interface{}
func (*DetailsServiceGetProductResult) GetSuccess ¶
func (p *DetailsServiceGetProductResult) GetSuccess() (v *GetProductResp)
func (*DetailsServiceGetProductResult) IsSetSuccess ¶
func (p *DetailsServiceGetProductResult) IsSetSuccess() bool
func (*DetailsServiceGetProductResult) Read ¶
func (p *DetailsServiceGetProductResult) Read(iprot thrift.TProtocol) (err error)
func (*DetailsServiceGetProductResult) ReadField0 ¶
func (p *DetailsServiceGetProductResult) ReadField0(iprot thrift.TProtocol) error
func (*DetailsServiceGetProductResult) SetSuccess ¶
func (p *DetailsServiceGetProductResult) SetSuccess(x interface{})
func (*DetailsServiceGetProductResult) String ¶
func (p *DetailsServiceGetProductResult) String() string
type DetailsServiceProcessor ¶
type DetailsServiceProcessor struct {
// contains filtered or unexported fields
}
func NewDetailsServiceProcessor ¶
func NewDetailsServiceProcessor(handler DetailsService) *DetailsServiceProcessor
func (*DetailsServiceProcessor) AddToProcessorMap ¶
func (p *DetailsServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*DetailsServiceProcessor) GetProcessorFunction ¶
func (p *DetailsServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*DetailsServiceProcessor) Process ¶
func (p *DetailsServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*DetailsServiceProcessor) ProcessorMap ¶
func (p *DetailsServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type GetProductReq ¶
type GetProductReq struct {
ID string `thrift:"ID,1,required" json:"ID"`
}
var DetailsServiceGetProductArgs_Req_DEFAULT *GetProductReq
func NewGetProductReq ¶
func NewGetProductReq() *GetProductReq
func (*GetProductReq) BLength ¶
func (p *GetProductReq) BLength() int
func (*GetProductReq) DeepEqual ¶
func (p *GetProductReq) DeepEqual(ano *GetProductReq) bool
func (*GetProductReq) FastReadField1 ¶
func (p *GetProductReq) FastReadField1(buf []byte) (int, error)
func (*GetProductReq) FastWrite ¶
func (p *GetProductReq) FastWrite(buf []byte) int
for compatibility
func (*GetProductReq) FastWriteNocopy ¶
func (p *GetProductReq) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*GetProductReq) Field1DeepEqual ¶
func (p *GetProductReq) Field1DeepEqual(src string) bool
func (*GetProductReq) GetID ¶
func (p *GetProductReq) GetID() (v string)
func (*GetProductReq) ReadField1 ¶
func (p *GetProductReq) ReadField1(iprot thrift.TProtocol) error
func (*GetProductReq) SetID ¶
func (p *GetProductReq) SetID(val string)
func (*GetProductReq) String ¶
func (p *GetProductReq) String() string
type GetProductResp ¶
type GetProductResp struct {
Product *Product `thrift:"Product,1,required" json:"Product"`
}
var DetailsServiceGetProductResult_Success_DEFAULT *GetProductResp
func NewGetProductResp ¶
func NewGetProductResp() *GetProductResp
func (*GetProductResp) BLength ¶
func (p *GetProductResp) BLength() int
func (*GetProductResp) DeepEqual ¶
func (p *GetProductResp) DeepEqual(ano *GetProductResp) bool
func (*GetProductResp) FastReadField1 ¶
func (p *GetProductResp) FastReadField1(buf []byte) (int, error)
func (*GetProductResp) FastWrite ¶
func (p *GetProductResp) FastWrite(buf []byte) int
for compatibility
func (*GetProductResp) FastWriteNocopy ¶
func (p *GetProductResp) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*GetProductResp) Field1DeepEqual ¶
func (p *GetProductResp) Field1DeepEqual(src *Product) bool
func (*GetProductResp) GetProduct ¶
func (p *GetProductResp) GetProduct() (v *Product)
func (*GetProductResp) IsSetProduct ¶
func (p *GetProductResp) IsSetProduct() bool
func (*GetProductResp) ReadField1 ¶
func (p *GetProductResp) ReadField1(iprot thrift.TProtocol) error
func (*GetProductResp) SetProduct ¶
func (p *GetProductResp) SetProduct(val *Product)
func (*GetProductResp) String ¶
func (p *GetProductResp) String() string
type Product ¶
type Product struct { ID string `thrift:"ID,1,required" json:"ID"` Title string `thrift:"Title,2,required" json:"Title"` Author string `thrift:"Author,3,required" json:"Author"` Description string `thrift:"Description,4,required" json:"Description"` }
var GetProductResp_Product_DEFAULT *Product
func NewProduct ¶
func NewProduct() *Product
func (*Product) FastWriteNocopy ¶
func (p *Product) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*Product) Field1DeepEqual ¶
func (*Product) Field2DeepEqual ¶
func (*Product) Field3DeepEqual ¶
func (*Product) Field4DeepEqual ¶
func (*Product) GetDescription ¶
func (*Product) SetDescription ¶
Click to show internal directories.
Click to hide internal directories.