Documentation
¶
Overview ¶
Package seckill is a generated protocol buffer package.
It is generated from these files:
proto/seckill.proto
It has these top-level messages:
GeneralRequest GeneralResponse SeckillRequest
Index ¶
- Variables
- func RegisterSeckillServiceHandler(s server.Server, hdlr SeckillServiceHandler, opts ...server.HandlerOption) error
- type GeneralRequest
- type GeneralResponse
- func (*GeneralResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GeneralResponse) GetCode() string
- func (x *GeneralResponse) GetMsg() string
- func (*GeneralResponse) ProtoMessage()
- func (x *GeneralResponse) ProtoReflect() protoreflect.Message
- func (x *GeneralResponse) Reset()
- func (x *GeneralResponse) String() string
- type SeckillRequest
- func (*SeckillRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SeckillRequest) GetEmail() string
- func (x *SeckillRequest) GetId() string
- func (*SeckillRequest) ProtoMessage()
- func (x *SeckillRequest) ProtoReflect() protoreflect.Message
- func (x *SeckillRequest) Reset()
- func (x *SeckillRequest) String() string
- type SeckillService
- type SeckillServiceHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_seckill_proto protoreflect.FileDescriptor
Functions ¶
func RegisterSeckillServiceHandler ¶
func RegisterSeckillServiceHandler(s server.Server, hdlr SeckillServiceHandler, opts ...server.HandlerOption) error
Types ¶
type GeneralRequest ¶
type GeneralRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GeneralRequest) Descriptor
deprecated
func (*GeneralRequest) Descriptor() ([]byte, []int)
Deprecated: Use GeneralRequest.ProtoReflect.Descriptor instead.
func (*GeneralRequest) GetId ¶
func (x *GeneralRequest) GetId() string
func (*GeneralRequest) ProtoMessage ¶
func (*GeneralRequest) ProtoMessage()
func (*GeneralRequest) ProtoReflect ¶
func (x *GeneralRequest) ProtoReflect() protoreflect.Message
func (*GeneralRequest) Reset ¶
func (x *GeneralRequest) Reset()
func (*GeneralRequest) String ¶
func (x *GeneralRequest) String() string
type GeneralResponse ¶
type GeneralResponse struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*GeneralResponse) Descriptor
deprecated
func (*GeneralResponse) Descriptor() ([]byte, []int)
Deprecated: Use GeneralResponse.ProtoReflect.Descriptor instead.
func (*GeneralResponse) GetCode ¶
func (x *GeneralResponse) GetCode() string
func (*GeneralResponse) GetMsg ¶
func (x *GeneralResponse) GetMsg() string
func (*GeneralResponse) ProtoMessage ¶
func (*GeneralResponse) ProtoMessage()
func (*GeneralResponse) ProtoReflect ¶
func (x *GeneralResponse) ProtoReflect() protoreflect.Message
func (*GeneralResponse) Reset ¶
func (x *GeneralResponse) Reset()
func (*GeneralResponse) String ¶
func (x *GeneralResponse) String() string
type SeckillRequest ¶
type SeckillRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*SeckillRequest) Descriptor
deprecated
func (*SeckillRequest) Descriptor() ([]byte, []int)
Deprecated: Use SeckillRequest.ProtoReflect.Descriptor instead.
func (*SeckillRequest) GetEmail ¶
func (x *SeckillRequest) GetEmail() string
func (*SeckillRequest) GetId ¶
func (x *SeckillRequest) GetId() string
func (*SeckillRequest) ProtoMessage ¶
func (*SeckillRequest) ProtoMessage()
func (*SeckillRequest) ProtoReflect ¶
func (x *SeckillRequest) ProtoReflect() protoreflect.Message
func (*SeckillRequest) Reset ¶
func (x *SeckillRequest) Reset()
func (*SeckillRequest) String ¶
func (x *SeckillRequest) String() string
type SeckillService ¶
type SeckillService interface {
FrontSeckill(ctx context.Context, in *SeckillRequest, opts ...client.CallOption) (*GeneralResponse, error)
}
func NewSeckillService ¶
func NewSeckillService(name string, c client.Client) SeckillService
type SeckillServiceHandler ¶
type SeckillServiceHandler interface {
FrontSeckill(context.Context, *SeckillRequest, *GeneralResponse) error
}
Click to show internal directories.
Click to hide internal directories.