Documentation ¶
Index ¶
- Variables
- type Review
- func (p *Review) BLength() int
- func (p *Review) DeepEqual(ano *Review) bool
- func (p *Review) FastRead(buf []byte) (int, error)
- func (p *Review) FastReadField1(buf []byte) (int, error)
- func (p *Review) FastReadField2(buf []byte) (int, error)
- func (p *Review) FastWrite(buf []byte) int
- func (p *Review) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *Review) Field1DeepEqual(src ReviewType) bool
- func (p *Review) Field2DeepEqual(src int8) bool
- func (p *Review) GetRating() (v int8)
- func (p *Review) GetType() (v ReviewType)
- func (p *Review) Read(iprot thrift.TProtocol) (err error)
- func (p *Review) ReadField1(iprot thrift.TProtocol) error
- func (p *Review) ReadField2(iprot thrift.TProtocol) error
- func (p *Review) SetRating(val int8)
- func (p *Review) SetType(val ReviewType)
- func (p *Review) String() string
- func (p *Review) Write(oprot thrift.TProtocol) (err error)
- type ReviewReq
- func (p *ReviewReq) BLength() int
- func (p *ReviewReq) DeepEqual(ano *ReviewReq) bool
- func (p *ReviewReq) FastRead(buf []byte) (int, error)
- func (p *ReviewReq) FastReadField1(buf []byte) (int, error)
- func (p *ReviewReq) FastWrite(buf []byte) int
- func (p *ReviewReq) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ReviewReq) Field1DeepEqual(src string) bool
- func (p *ReviewReq) GetProductID() (v string)
- func (p *ReviewReq) Read(iprot thrift.TProtocol) (err error)
- func (p *ReviewReq) ReadField1(iprot thrift.TProtocol) error
- func (p *ReviewReq) SetProductID(val string)
- func (p *ReviewReq) String() string
- func (p *ReviewReq) Write(oprot thrift.TProtocol) (err error)
- type ReviewResp
- func (p *ReviewResp) BLength() int
- func (p *ReviewResp) DeepEqual(ano *ReviewResp) bool
- func (p *ReviewResp) FastRead(buf []byte) (int, error)
- func (p *ReviewResp) FastReadField1(buf []byte) (int, error)
- func (p *ReviewResp) FastWrite(buf []byte) int
- func (p *ReviewResp) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ReviewResp) Field1DeepEqual(src *Review) bool
- func (p *ReviewResp) GetReview() (v *Review)
- func (p *ReviewResp) IsSetReview() bool
- func (p *ReviewResp) Read(iprot thrift.TProtocol) (err error)
- func (p *ReviewResp) ReadField1(iprot thrift.TProtocol) error
- func (p *ReviewResp) SetReview(val *Review)
- func (p *ReviewResp) String() string
- func (p *ReviewResp) Write(oprot thrift.TProtocol) (err error)
- type ReviewType
- type ReviewsService
- type ReviewsServiceClient
- func NewReviewsServiceClient(c thrift.TClient) *ReviewsServiceClient
- func NewReviewsServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *ReviewsServiceClient
- func NewReviewsServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *ReviewsServiceClient
- type ReviewsServiceProcessor
- func (p *ReviewsServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *ReviewsServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *ReviewsServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *ReviewsServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type ReviewsServiceReviewProductArgs
- func (p *ReviewsServiceReviewProductArgs) BLength() int
- func (p *ReviewsServiceReviewProductArgs) DeepEqual(ano *ReviewsServiceReviewProductArgs) bool
- func (p *ReviewsServiceReviewProductArgs) FastRead(buf []byte) (int, error)
- func (p *ReviewsServiceReviewProductArgs) FastReadField1(buf []byte) (int, error)
- func (p *ReviewsServiceReviewProductArgs) FastWrite(buf []byte) int
- func (p *ReviewsServiceReviewProductArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ReviewsServiceReviewProductArgs) Field1DeepEqual(src *ReviewReq) bool
- func (p *ReviewsServiceReviewProductArgs) GetFirstArgument() interface{}
- func (p *ReviewsServiceReviewProductArgs) GetReq() (v *ReviewReq)
- func (p *ReviewsServiceReviewProductArgs) IsSetReq() bool
- func (p *ReviewsServiceReviewProductArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *ReviewsServiceReviewProductArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *ReviewsServiceReviewProductArgs) SetReq(val *ReviewReq)
- func (p *ReviewsServiceReviewProductArgs) String() string
- func (p *ReviewsServiceReviewProductArgs) Write(oprot thrift.TProtocol) (err error)
- type ReviewsServiceReviewProductResult
- func (p *ReviewsServiceReviewProductResult) BLength() int
- func (p *ReviewsServiceReviewProductResult) DeepEqual(ano *ReviewsServiceReviewProductResult) bool
- func (p *ReviewsServiceReviewProductResult) FastRead(buf []byte) (int, error)
- func (p *ReviewsServiceReviewProductResult) FastReadField0(buf []byte) (int, error)
- func (p *ReviewsServiceReviewProductResult) FastWrite(buf []byte) int
- func (p *ReviewsServiceReviewProductResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ReviewsServiceReviewProductResult) Field0DeepEqual(src *ReviewResp) bool
- func (p *ReviewsServiceReviewProductResult) GetResult() interface{}
- func (p *ReviewsServiceReviewProductResult) GetSuccess() (v *ReviewResp)
- func (p *ReviewsServiceReviewProductResult) IsSetSuccess() bool
- func (p *ReviewsServiceReviewProductResult) Read(iprot thrift.TProtocol) (err error)
- func (p *ReviewsServiceReviewProductResult) ReadField0(iprot thrift.TProtocol) error
- func (p *ReviewsServiceReviewProductResult) SetSuccess(x interface{})
- func (p *ReviewsServiceReviewProductResult) String() string
- func (p *ReviewsServiceReviewProductResult) 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 Review ¶
type Review struct { Type ReviewType `thrift:"Type,1,required" json:"Type"` Rating int8 `thrift:"Rating,2,required" json:"Rating"` }
var ReviewResp_Review_DEFAULT *Review
func (*Review) FastWriteNocopy ¶
func (p *Review) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*Review) Field1DeepEqual ¶
func (p *Review) Field1DeepEqual(src ReviewType) bool
func (*Review) Field2DeepEqual ¶
func (*Review) GetType ¶
func (p *Review) GetType() (v ReviewType)
func (*Review) SetType ¶
func (p *Review) SetType(val ReviewType)
type ReviewReq ¶
type ReviewReq struct {
ProductID string `thrift:"ProductID,1,required" json:"ProductID"`
}
var ReviewsServiceReviewProductArgs_Req_DEFAULT *ReviewReq
func NewReviewReq ¶
func NewReviewReq() *ReviewReq
func (*ReviewReq) FastWriteNocopy ¶
func (p *ReviewReq) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ReviewReq) Field1DeepEqual ¶
func (*ReviewReq) GetProductID ¶
func (*ReviewReq) SetProductID ¶
type ReviewResp ¶
type ReviewResp struct {
Review *Review `thrift:"Review,1,required" json:"Review"`
}
var ReviewsServiceReviewProductResult_Success_DEFAULT *ReviewResp
func NewReviewResp ¶
func NewReviewResp() *ReviewResp
func (*ReviewResp) BLength ¶
func (p *ReviewResp) BLength() int
func (*ReviewResp) DeepEqual ¶
func (p *ReviewResp) DeepEqual(ano *ReviewResp) bool
func (*ReviewResp) FastReadField1 ¶
func (p *ReviewResp) FastReadField1(buf []byte) (int, error)
func (*ReviewResp) FastWriteNocopy ¶
func (p *ReviewResp) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ReviewResp) Field1DeepEqual ¶
func (p *ReviewResp) Field1DeepEqual(src *Review) bool
func (*ReviewResp) GetReview ¶
func (p *ReviewResp) GetReview() (v *Review)
func (*ReviewResp) IsSetReview ¶
func (p *ReviewResp) IsSetReview() bool
func (*ReviewResp) ReadField1 ¶
func (p *ReviewResp) ReadField1(iprot thrift.TProtocol) error
func (*ReviewResp) SetReview ¶
func (p *ReviewResp) SetReview(val *Review)
func (*ReviewResp) String ¶
func (p *ReviewResp) String() string
type ReviewType ¶
type ReviewType int64
const ( ReviewType_Local ReviewType = 0 ReviewType_Blue ReviewType = 1 ReviewType_Green ReviewType = 2 )
func ReviewTypeFromString ¶
func ReviewTypeFromString(s string) (ReviewType, error)
func ReviewTypePtr ¶
func ReviewTypePtr(v ReviewType) *ReviewType
func (*ReviewType) Scan ¶
func (p *ReviewType) Scan(value interface{}) (err error)
func (ReviewType) String ¶
func (p ReviewType) String() string
type ReviewsService ¶
type ReviewsService interface {
ReviewProduct(ctx context.Context, req *ReviewReq) (r *ReviewResp, err error)
}
type ReviewsServiceClient ¶
type ReviewsServiceClient struct {
// contains filtered or unexported fields
}
func NewReviewsServiceClient ¶
func NewReviewsServiceClient(c thrift.TClient) *ReviewsServiceClient
func NewReviewsServiceClientFactory ¶
func NewReviewsServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *ReviewsServiceClient
func NewReviewsServiceClientProtocol ¶
func NewReviewsServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *ReviewsServiceClient
func (*ReviewsServiceClient) Client_ ¶
func (p *ReviewsServiceClient) Client_() thrift.TClient
func (*ReviewsServiceClient) ReviewProduct ¶
func (p *ReviewsServiceClient) ReviewProduct(ctx context.Context, req *ReviewReq) (r *ReviewResp, err error)
type ReviewsServiceProcessor ¶
type ReviewsServiceProcessor struct {
// contains filtered or unexported fields
}
func NewReviewsServiceProcessor ¶
func NewReviewsServiceProcessor(handler ReviewsService) *ReviewsServiceProcessor
func (*ReviewsServiceProcessor) AddToProcessorMap ¶
func (p *ReviewsServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*ReviewsServiceProcessor) GetProcessorFunction ¶
func (p *ReviewsServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*ReviewsServiceProcessor) Process ¶
func (p *ReviewsServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*ReviewsServiceProcessor) ProcessorMap ¶
func (p *ReviewsServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type ReviewsServiceReviewProductArgs ¶
type ReviewsServiceReviewProductArgs struct {
Req *ReviewReq `thrift:"req,1" json:"req"`
}
func NewReviewsServiceReviewProductArgs ¶
func NewReviewsServiceReviewProductArgs() *ReviewsServiceReviewProductArgs
func (*ReviewsServiceReviewProductArgs) BLength ¶
func (p *ReviewsServiceReviewProductArgs) BLength() int
func (*ReviewsServiceReviewProductArgs) DeepEqual ¶
func (p *ReviewsServiceReviewProductArgs) DeepEqual(ano *ReviewsServiceReviewProductArgs) bool
func (*ReviewsServiceReviewProductArgs) FastRead ¶
func (p *ReviewsServiceReviewProductArgs) FastRead(buf []byte) (int, error)
func (*ReviewsServiceReviewProductArgs) FastReadField1 ¶
func (p *ReviewsServiceReviewProductArgs) FastReadField1(buf []byte) (int, error)
func (*ReviewsServiceReviewProductArgs) FastWrite ¶
func (p *ReviewsServiceReviewProductArgs) FastWrite(buf []byte) int
for compatibility
func (*ReviewsServiceReviewProductArgs) FastWriteNocopy ¶
func (p *ReviewsServiceReviewProductArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ReviewsServiceReviewProductArgs) Field1DeepEqual ¶
func (p *ReviewsServiceReviewProductArgs) Field1DeepEqual(src *ReviewReq) bool
func (*ReviewsServiceReviewProductArgs) GetFirstArgument ¶
func (p *ReviewsServiceReviewProductArgs) GetFirstArgument() interface{}
func (*ReviewsServiceReviewProductArgs) GetReq ¶
func (p *ReviewsServiceReviewProductArgs) GetReq() (v *ReviewReq)
func (*ReviewsServiceReviewProductArgs) IsSetReq ¶
func (p *ReviewsServiceReviewProductArgs) IsSetReq() bool
func (*ReviewsServiceReviewProductArgs) Read ¶
func (p *ReviewsServiceReviewProductArgs) Read(iprot thrift.TProtocol) (err error)
func (*ReviewsServiceReviewProductArgs) ReadField1 ¶
func (p *ReviewsServiceReviewProductArgs) ReadField1(iprot thrift.TProtocol) error
func (*ReviewsServiceReviewProductArgs) SetReq ¶
func (p *ReviewsServiceReviewProductArgs) SetReq(val *ReviewReq)
func (*ReviewsServiceReviewProductArgs) String ¶
func (p *ReviewsServiceReviewProductArgs) String() string
type ReviewsServiceReviewProductResult ¶
type ReviewsServiceReviewProductResult struct {
Success *ReviewResp `thrift:"success,0,optional" json:"success,omitempty"`
}
func NewReviewsServiceReviewProductResult ¶
func NewReviewsServiceReviewProductResult() *ReviewsServiceReviewProductResult
func (*ReviewsServiceReviewProductResult) BLength ¶
func (p *ReviewsServiceReviewProductResult) BLength() int
func (*ReviewsServiceReviewProductResult) DeepEqual ¶
func (p *ReviewsServiceReviewProductResult) DeepEqual(ano *ReviewsServiceReviewProductResult) bool
func (*ReviewsServiceReviewProductResult) FastRead ¶
func (p *ReviewsServiceReviewProductResult) FastRead(buf []byte) (int, error)
func (*ReviewsServiceReviewProductResult) FastReadField0 ¶
func (p *ReviewsServiceReviewProductResult) FastReadField0(buf []byte) (int, error)
func (*ReviewsServiceReviewProductResult) FastWrite ¶
func (p *ReviewsServiceReviewProductResult) FastWrite(buf []byte) int
for compatibility
func (*ReviewsServiceReviewProductResult) FastWriteNocopy ¶
func (p *ReviewsServiceReviewProductResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ReviewsServiceReviewProductResult) Field0DeepEqual ¶
func (p *ReviewsServiceReviewProductResult) Field0DeepEqual(src *ReviewResp) bool
func (*ReviewsServiceReviewProductResult) GetResult ¶
func (p *ReviewsServiceReviewProductResult) GetResult() interface{}
func (*ReviewsServiceReviewProductResult) GetSuccess ¶
func (p *ReviewsServiceReviewProductResult) GetSuccess() (v *ReviewResp)
func (*ReviewsServiceReviewProductResult) IsSetSuccess ¶
func (p *ReviewsServiceReviewProductResult) IsSetSuccess() bool
func (*ReviewsServiceReviewProductResult) Read ¶
func (p *ReviewsServiceReviewProductResult) Read(iprot thrift.TProtocol) (err error)
func (*ReviewsServiceReviewProductResult) ReadField0 ¶
func (p *ReviewsServiceReviewProductResult) ReadField0(iprot thrift.TProtocol) error
func (*ReviewsServiceReviewProductResult) SetSuccess ¶
func (p *ReviewsServiceReviewProductResult) SetSuccess(x interface{})
func (*ReviewsServiceReviewProductResult) String ¶
func (p *ReviewsServiceReviewProductResult) String() string
Click to show internal directories.
Click to hide internal directories.