Documentation
¶
Index ¶
- Variables
- func RegisterCommServer(s grpc.ServiceRegistrar, srv CommServer)
- type BidAmount
- func (*BidAmount) Descriptor() ([]byte, []int)deprecated
- func (x *BidAmount) GetAmount() int32
- func (x *BidAmount) GetId() int32
- func (x *BidAmount) GetLamptime() int32
- func (*BidAmount) ProtoMessage()
- func (x *BidAmount) ProtoReflect() protoreflect.Message
- func (x *BidAmount) Reset()
- func (x *BidAmount) String() string
- type CommClient
- type CommServer
- type CurrentStatus
- func (*CurrentStatus) Descriptor() ([]byte, []int)deprecated
- func (x *CurrentStatus) GetComment() string
- func (x *CurrentStatus) GetId() int32
- func (x *CurrentStatus) GetLampTime() int32
- func (x *CurrentStatus) GetOutcome() string
- func (*CurrentStatus) ProtoMessage()
- func (x *CurrentStatus) ProtoReflect() protoreflect.Message
- func (x *CurrentStatus) Reset()
- func (x *CurrentStatus) String() string
- type Reply
- func (*Reply) Descriptor() ([]byte, []int)deprecated
- func (x *Reply) GetHighestBid() int32
- func (x *Reply) GetId() int32
- func (x *Reply) GetLampTime() int32
- func (x *Reply) GetResponse() string
- func (*Reply) ProtoMessage()
- func (x *Reply) ProtoReflect() protoreflect.Message
- func (x *Reply) Reset()
- func (x *Reply) String() string
- type Request
- type UnimplementedCommServer
- type UnsafeCommServer
Constants ¶
This section is empty.
Variables ¶
var Comm_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Auction.comm", HandlerType: (*CommServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Bid", Handler: _Comm_Bid_Handler, }, { MethodName: "Message", Handler: _Comm_Message_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "Auction/Auction.proto", }
Comm_ServiceDesc is the grpc.ServiceDesc for Comm service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_Auction_Auction_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCommServer ¶
func RegisterCommServer(s grpc.ServiceRegistrar, srv CommServer)
Types ¶
type BidAmount ¶
type BidAmount struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Amount int32 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` Lamptime int32 `protobuf:"varint,3,opt,name=Lamptime,proto3" json:"Lamptime,omitempty"` // contains filtered or unexported fields }
func (*BidAmount) Descriptor
deprecated
func (*BidAmount) GetLamptime ¶
func (*BidAmount) ProtoMessage ¶
func (*BidAmount) ProtoMessage()
func (*BidAmount) ProtoReflect ¶
func (x *BidAmount) ProtoReflect() protoreflect.Message
type CommClient ¶
type CommClient interface { Bid(ctx context.Context, in *BidAmount, opts ...grpc.CallOption) (*Reply, error) Message(ctx context.Context, in *Request, opts ...grpc.CallOption) (*CurrentStatus, error) }
CommClient is the client API for Comm service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewCommClient ¶
func NewCommClient(cc grpc.ClientConnInterface) CommClient
type CommServer ¶
type CommServer interface { Bid(context.Context, *BidAmount) (*Reply, error) Message(context.Context, *Request) (*CurrentStatus, error) // contains filtered or unexported methods }
CommServer is the server API for Comm service. All implementations must embed UnimplementedCommServer for forward compatibility
type CurrentStatus ¶
type CurrentStatus struct { Comment string `protobuf:"bytes,1,opt,name=Comment,proto3" json:"Comment,omitempty"` Outcome string `protobuf:"bytes,2,opt,name=outcome,proto3" json:"outcome,omitempty"` LampTime int32 `protobuf:"varint,3,opt,name=LampTime,proto3" json:"LampTime,omitempty"` Id int32 `protobuf:"varint,4,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CurrentStatus) Descriptor
deprecated
func (*CurrentStatus) Descriptor() ([]byte, []int)
Deprecated: Use CurrentStatus.ProtoReflect.Descriptor instead.
func (*CurrentStatus) GetComment ¶
func (x *CurrentStatus) GetComment() string
func (*CurrentStatus) GetId ¶
func (x *CurrentStatus) GetId() int32
func (*CurrentStatus) GetLampTime ¶
func (x *CurrentStatus) GetLampTime() int32
func (*CurrentStatus) GetOutcome ¶
func (x *CurrentStatus) GetOutcome() string
func (*CurrentStatus) ProtoMessage ¶
func (*CurrentStatus) ProtoMessage()
func (*CurrentStatus) ProtoReflect ¶
func (x *CurrentStatus) ProtoReflect() protoreflect.Message
func (*CurrentStatus) Reset ¶
func (x *CurrentStatus) Reset()
func (*CurrentStatus) String ¶
func (x *CurrentStatus) String() string
type Reply ¶
type Reply struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Response string `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"` HighestBid int32 `protobuf:"varint,3,opt,name=highestBid,proto3" json:"highestBid,omitempty"` LampTime int32 `protobuf:"varint,4,opt,name=LampTime,proto3" json:"LampTime,omitempty"` // contains filtered or unexported fields }
func (*Reply) Descriptor
deprecated
func (*Reply) GetHighestBid ¶
func (*Reply) GetLampTime ¶
func (*Reply) GetResponse ¶
func (*Reply) ProtoMessage ¶
func (*Reply) ProtoMessage()
func (*Reply) ProtoReflect ¶
func (x *Reply) ProtoReflect() protoreflect.Message
type Request ¶
type Request struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Lamptime int32 `protobuf:"varint,2,opt,name=Lamptime,proto3" json:"Lamptime,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) GetLamptime ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type UnimplementedCommServer ¶
type UnimplementedCommServer struct { }
UnimplementedCommServer must be embedded to have forward compatible implementations.
func (UnimplementedCommServer) Message ¶
func (UnimplementedCommServer) Message(context.Context, *Request) (*CurrentStatus, error)
type UnsafeCommServer ¶
type UnsafeCommServer interface {
// contains filtered or unexported methods
}
UnsafeCommServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CommServer will result in compilation errors.