Documentation ¶
Index ¶
- Variables
- type RatingReq
- func (p *RatingReq) BLength() int
- func (p *RatingReq) DeepEqual(ano *RatingReq) bool
- func (p *RatingReq) FastRead(buf []byte) (int, error)
- func (p *RatingReq) FastReadField1(buf []byte) (int, error)
- func (p *RatingReq) FastWrite(buf []byte) int
- func (p *RatingReq) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *RatingReq) Field1DeepEqual(src string) bool
- func (p *RatingReq) GetProductID() (v string)
- func (p *RatingReq) Read(iprot thrift.TProtocol) (err error)
- func (p *RatingReq) ReadField1(iprot thrift.TProtocol) error
- func (p *RatingReq) SetProductID(val string)
- func (p *RatingReq) String() string
- func (p *RatingReq) Write(oprot thrift.TProtocol) (err error)
- type RatingResp
- func (p *RatingResp) BLength() int
- func (p *RatingResp) DeepEqual(ano *RatingResp) bool
- func (p *RatingResp) FastRead(buf []byte) (int, error)
- func (p *RatingResp) FastReadField1(buf []byte) (int, error)
- func (p *RatingResp) FastWrite(buf []byte) int
- func (p *RatingResp) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *RatingResp) Field1DeepEqual(src int8) bool
- func (p *RatingResp) GetRating() (v int8)
- func (p *RatingResp) Read(iprot thrift.TProtocol) (err error)
- func (p *RatingResp) ReadField1(iprot thrift.TProtocol) error
- func (p *RatingResp) SetRating(val int8)
- func (p *RatingResp) String() string
- func (p *RatingResp) Write(oprot thrift.TProtocol) (err error)
- type RatingService
- type RatingServiceClient
- type RatingServiceProcessor
- func (p *RatingServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *RatingServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *RatingServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *RatingServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type RatingServiceRatingsArgs
- func (p *RatingServiceRatingsArgs) BLength() int
- func (p *RatingServiceRatingsArgs) DeepEqual(ano *RatingServiceRatingsArgs) bool
- func (p *RatingServiceRatingsArgs) FastRead(buf []byte) (int, error)
- func (p *RatingServiceRatingsArgs) FastReadField1(buf []byte) (int, error)
- func (p *RatingServiceRatingsArgs) FastWrite(buf []byte) int
- func (p *RatingServiceRatingsArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *RatingServiceRatingsArgs) Field1DeepEqual(src *RatingReq) bool
- func (p *RatingServiceRatingsArgs) GetFirstArgument() interface{}
- func (p *RatingServiceRatingsArgs) GetReq() (v *RatingReq)
- func (p *RatingServiceRatingsArgs) IsSetReq() bool
- func (p *RatingServiceRatingsArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *RatingServiceRatingsArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *RatingServiceRatingsArgs) SetReq(val *RatingReq)
- func (p *RatingServiceRatingsArgs) String() string
- func (p *RatingServiceRatingsArgs) Write(oprot thrift.TProtocol) (err error)
- type RatingServiceRatingsResult
- func (p *RatingServiceRatingsResult) BLength() int
- func (p *RatingServiceRatingsResult) DeepEqual(ano *RatingServiceRatingsResult) bool
- func (p *RatingServiceRatingsResult) FastRead(buf []byte) (int, error)
- func (p *RatingServiceRatingsResult) FastReadField0(buf []byte) (int, error)
- func (p *RatingServiceRatingsResult) FastWrite(buf []byte) int
- func (p *RatingServiceRatingsResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *RatingServiceRatingsResult) Field0DeepEqual(src *RatingResp) bool
- func (p *RatingServiceRatingsResult) GetResult() interface{}
- func (p *RatingServiceRatingsResult) GetSuccess() (v *RatingResp)
- func (p *RatingServiceRatingsResult) IsSetSuccess() bool
- func (p *RatingServiceRatingsResult) Read(iprot thrift.TProtocol) (err error)
- func (p *RatingServiceRatingsResult) ReadField0(iprot thrift.TProtocol) error
- func (p *RatingServiceRatingsResult) SetSuccess(x interface{})
- func (p *RatingServiceRatingsResult) String() string
- func (p *RatingServiceRatingsResult) 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 RatingReq ¶
type RatingReq struct {
ProductID string `thrift:"ProductID,1,required" json:"ProductID"`
}
var RatingServiceRatingsArgs_Req_DEFAULT *RatingReq
func NewRatingReq ¶
func NewRatingReq() *RatingReq
func (*RatingReq) FastWriteNocopy ¶
func (p *RatingReq) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*RatingReq) Field1DeepEqual ¶
func (*RatingReq) GetProductID ¶
func (*RatingReq) SetProductID ¶
type RatingResp ¶
type RatingResp struct {
Rating int8 `thrift:"Rating,1,required" json:"Rating"`
}
var RatingServiceRatingsResult_Success_DEFAULT *RatingResp
func NewRatingResp ¶
func NewRatingResp() *RatingResp
func (*RatingResp) BLength ¶
func (p *RatingResp) BLength() int
func (*RatingResp) DeepEqual ¶
func (p *RatingResp) DeepEqual(ano *RatingResp) bool
func (*RatingResp) FastReadField1 ¶
func (p *RatingResp) FastReadField1(buf []byte) (int, error)
func (*RatingResp) FastWriteNocopy ¶
func (p *RatingResp) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*RatingResp) Field1DeepEqual ¶
func (p *RatingResp) Field1DeepEqual(src int8) bool
func (*RatingResp) GetRating ¶
func (p *RatingResp) GetRating() (v int8)
func (*RatingResp) ReadField1 ¶
func (p *RatingResp) ReadField1(iprot thrift.TProtocol) error
func (*RatingResp) SetRating ¶
func (p *RatingResp) SetRating(val int8)
func (*RatingResp) String ¶
func (p *RatingResp) String() string
type RatingService ¶
type RatingService interface {
Ratings(ctx context.Context, req *RatingReq) (r *RatingResp, err error)
}
type RatingServiceClient ¶
type RatingServiceClient struct {
// contains filtered or unexported fields
}
func NewRatingServiceClient ¶
func NewRatingServiceClient(c thrift.TClient) *RatingServiceClient
func NewRatingServiceClientFactory ¶
func NewRatingServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *RatingServiceClient
func NewRatingServiceClientProtocol ¶
func NewRatingServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *RatingServiceClient
func (*RatingServiceClient) Client_ ¶
func (p *RatingServiceClient) Client_() thrift.TClient
func (*RatingServiceClient) Ratings ¶
func (p *RatingServiceClient) Ratings(ctx context.Context, req *RatingReq) (r *RatingResp, err error)
type RatingServiceProcessor ¶
type RatingServiceProcessor struct {
// contains filtered or unexported fields
}
func NewRatingServiceProcessor ¶
func NewRatingServiceProcessor(handler RatingService) *RatingServiceProcessor
func (*RatingServiceProcessor) AddToProcessorMap ¶
func (p *RatingServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*RatingServiceProcessor) GetProcessorFunction ¶
func (p *RatingServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*RatingServiceProcessor) Process ¶
func (p *RatingServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*RatingServiceProcessor) ProcessorMap ¶
func (p *RatingServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type RatingServiceRatingsArgs ¶
type RatingServiceRatingsArgs struct {
Req *RatingReq `thrift:"req,1" json:"req"`
}
func NewRatingServiceRatingsArgs ¶
func NewRatingServiceRatingsArgs() *RatingServiceRatingsArgs
func (*RatingServiceRatingsArgs) BLength ¶
func (p *RatingServiceRatingsArgs) BLength() int
func (*RatingServiceRatingsArgs) DeepEqual ¶
func (p *RatingServiceRatingsArgs) DeepEqual(ano *RatingServiceRatingsArgs) bool
func (*RatingServiceRatingsArgs) FastRead ¶
func (p *RatingServiceRatingsArgs) FastRead(buf []byte) (int, error)
func (*RatingServiceRatingsArgs) FastReadField1 ¶
func (p *RatingServiceRatingsArgs) FastReadField1(buf []byte) (int, error)
func (*RatingServiceRatingsArgs) FastWrite ¶
func (p *RatingServiceRatingsArgs) FastWrite(buf []byte) int
for compatibility
func (*RatingServiceRatingsArgs) FastWriteNocopy ¶
func (p *RatingServiceRatingsArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*RatingServiceRatingsArgs) Field1DeepEqual ¶
func (p *RatingServiceRatingsArgs) Field1DeepEqual(src *RatingReq) bool
func (*RatingServiceRatingsArgs) GetFirstArgument ¶
func (p *RatingServiceRatingsArgs) GetFirstArgument() interface{}
func (*RatingServiceRatingsArgs) GetReq ¶
func (p *RatingServiceRatingsArgs) GetReq() (v *RatingReq)
func (*RatingServiceRatingsArgs) IsSetReq ¶
func (p *RatingServiceRatingsArgs) IsSetReq() bool
func (*RatingServiceRatingsArgs) Read ¶
func (p *RatingServiceRatingsArgs) Read(iprot thrift.TProtocol) (err error)
func (*RatingServiceRatingsArgs) ReadField1 ¶
func (p *RatingServiceRatingsArgs) ReadField1(iprot thrift.TProtocol) error
func (*RatingServiceRatingsArgs) SetReq ¶
func (p *RatingServiceRatingsArgs) SetReq(val *RatingReq)
func (*RatingServiceRatingsArgs) String ¶
func (p *RatingServiceRatingsArgs) String() string
type RatingServiceRatingsResult ¶
type RatingServiceRatingsResult struct {
Success *RatingResp `thrift:"success,0,optional" json:"success,omitempty"`
}
func NewRatingServiceRatingsResult ¶
func NewRatingServiceRatingsResult() *RatingServiceRatingsResult
func (*RatingServiceRatingsResult) BLength ¶
func (p *RatingServiceRatingsResult) BLength() int
func (*RatingServiceRatingsResult) DeepEqual ¶
func (p *RatingServiceRatingsResult) DeepEqual(ano *RatingServiceRatingsResult) bool
func (*RatingServiceRatingsResult) FastRead ¶
func (p *RatingServiceRatingsResult) FastRead(buf []byte) (int, error)
func (*RatingServiceRatingsResult) FastReadField0 ¶
func (p *RatingServiceRatingsResult) FastReadField0(buf []byte) (int, error)
func (*RatingServiceRatingsResult) FastWrite ¶
func (p *RatingServiceRatingsResult) FastWrite(buf []byte) int
for compatibility
func (*RatingServiceRatingsResult) FastWriteNocopy ¶
func (p *RatingServiceRatingsResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*RatingServiceRatingsResult) Field0DeepEqual ¶
func (p *RatingServiceRatingsResult) Field0DeepEqual(src *RatingResp) bool
func (*RatingServiceRatingsResult) GetResult ¶
func (p *RatingServiceRatingsResult) GetResult() interface{}
func (*RatingServiceRatingsResult) GetSuccess ¶
func (p *RatingServiceRatingsResult) GetSuccess() (v *RatingResp)
func (*RatingServiceRatingsResult) IsSetSuccess ¶
func (p *RatingServiceRatingsResult) IsSetSuccess() bool
func (*RatingServiceRatingsResult) Read ¶
func (p *RatingServiceRatingsResult) Read(iprot thrift.TProtocol) (err error)
func (*RatingServiceRatingsResult) ReadField0 ¶
func (p *RatingServiceRatingsResult) ReadField0(iprot thrift.TProtocol) error
func (*RatingServiceRatingsResult) SetSuccess ¶
func (p *RatingServiceRatingsResult) SetSuccess(x interface{})
func (*RatingServiceRatingsResult) String ¶
func (p *RatingServiceRatingsResult) String() string
Click to show internal directories.
Click to hide internal directories.