Documentation ¶
Index ¶
- Variables
- func RegisterBiddingServiceServer(s grpc.ServiceRegistrar, srv BiddingServiceServer)
- type Bid
- type BidResponse
- type BiddingServiceClient
- type BiddingServiceServer
- type BiddingService_HandshakeClient
- type BiddingService_HandshakeServer
- type BiddingService_RequestCurrentResultClient
- type BiddingService_RequestCurrentResultServer
- type BiddingService_SendBidClient
- type BiddingService_SendBidServer
- type ClientHandshake
- func (*ClientHandshake) Descriptor() ([]byte, []int)deprecated
- func (x *ClientHandshake) GetClientPort() int32
- func (x *ClientHandshake) GetName() string
- func (*ClientHandshake) ProtoMessage()
- func (x *ClientHandshake) ProtoReflect() protoreflect.Message
- func (x *ClientHandshake) Reset()
- func (x *ClientHandshake) String() string
- type Request
- type RequestResponse
- func (*RequestResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RequestResponse) GetHighestBid() int32
- func (x *RequestResponse) GetIsOver() bool
- func (x *RequestResponse) GetWinnerName() string
- func (*RequestResponse) ProtoMessage()
- func (x *RequestResponse) ProtoReflect() protoreflect.Message
- func (x *RequestResponse) Reset()
- func (x *RequestResponse) String() string
- type UnimplementedBiddingServiceServer
- func (UnimplementedBiddingServiceServer) Handshake(*ClientHandshake, BiddingService_HandshakeServer) error
- func (UnimplementedBiddingServiceServer) RequestCurrentResult(*Request, BiddingService_RequestCurrentResultServer) error
- func (UnimplementedBiddingServiceServer) SendBid(*Bid, BiddingService_SendBidServer) error
- type UnsafeBiddingServiceServer
Constants ¶
This section is empty.
Variables ¶
var BiddingService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "request.BiddingService", HandlerType: (*BiddingServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Handshake", Handler: _BiddingService_Handshake_Handler, ServerStreams: true, }, { StreamName: "SendBid", Handler: _BiddingService_SendBid_Handler, ServerStreams: true, }, { StreamName: "RequestCurrentResult", Handler: _BiddingService_RequestCurrentResult_Handler, ServerStreams: true, }, }, Metadata: "grpc/interface.proto", }
BiddingService_ServiceDesc is the grpc.ServiceDesc for BiddingService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_grpc_interface_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBiddingServiceServer ¶
func RegisterBiddingServiceServer(s grpc.ServiceRegistrar, srv BiddingServiceServer)
Types ¶
type Bid ¶
type Bid struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Amount int32 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
func (*Bid) Descriptor
deprecated
func (*Bid) ProtoMessage ¶
func (*Bid) ProtoMessage()
func (*Bid) ProtoReflect ¶
func (x *Bid) ProtoReflect() protoreflect.Message
type BidResponse ¶
type BidResponse struct { Response string `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` // Success, Fail, Exception // contains filtered or unexported fields }
func (*BidResponse) Descriptor
deprecated
func (*BidResponse) Descriptor() ([]byte, []int)
Deprecated: Use BidResponse.ProtoReflect.Descriptor instead.
func (*BidResponse) GetResponse ¶
func (x *BidResponse) GetResponse() string
func (*BidResponse) ProtoMessage ¶
func (*BidResponse) ProtoMessage()
func (*BidResponse) ProtoReflect ¶
func (x *BidResponse) ProtoReflect() protoreflect.Message
func (*BidResponse) Reset ¶
func (x *BidResponse) Reset()
func (*BidResponse) String ¶
func (x *BidResponse) String() string
type BiddingServiceClient ¶
type BiddingServiceClient interface { Handshake(ctx context.Context, in *ClientHandshake, opts ...grpc.CallOption) (BiddingService_HandshakeClient, error) SendBid(ctx context.Context, in *Bid, opts ...grpc.CallOption) (BiddingService_SendBidClient, error) RequestCurrentResult(ctx context.Context, in *Request, opts ...grpc.CallOption) (BiddingService_RequestCurrentResultClient, error) }
BiddingServiceClient is the client API for BiddingService 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 NewBiddingServiceClient ¶
func NewBiddingServiceClient(cc grpc.ClientConnInterface) BiddingServiceClient
type BiddingServiceServer ¶
type BiddingServiceServer interface { Handshake(*ClientHandshake, BiddingService_HandshakeServer) error SendBid(*Bid, BiddingService_SendBidServer) error RequestCurrentResult(*Request, BiddingService_RequestCurrentResultServer) error // contains filtered or unexported methods }
BiddingServiceServer is the server API for BiddingService service. All implementations must embed UnimplementedBiddingServiceServer for forward compatibility
type BiddingService_HandshakeClient ¶
type BiddingService_HandshakeClient interface { Recv() (*BidResponse, error) grpc.ClientStream }
type BiddingService_HandshakeServer ¶
type BiddingService_HandshakeServer interface { Send(*BidResponse) error grpc.ServerStream }
type BiddingService_RequestCurrentResultClient ¶
type BiddingService_RequestCurrentResultClient interface { Recv() (*RequestResponse, error) grpc.ClientStream }
type BiddingService_RequestCurrentResultServer ¶
type BiddingService_RequestCurrentResultServer interface { Send(*RequestResponse) error grpc.ServerStream }
type BiddingService_SendBidClient ¶
type BiddingService_SendBidClient interface { Recv() (*BidResponse, error) grpc.ClientStream }
type BiddingService_SendBidServer ¶
type BiddingService_SendBidServer interface { Send(*BidResponse) error grpc.ServerStream }
type ClientHandshake ¶
type ClientHandshake struct { ClientPort int32 `protobuf:"varint,1,opt,name=clientPort,proto3" json:"clientPort,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*ClientHandshake) Descriptor
deprecated
func (*ClientHandshake) Descriptor() ([]byte, []int)
Deprecated: Use ClientHandshake.ProtoReflect.Descriptor instead.
func (*ClientHandshake) GetClientPort ¶
func (x *ClientHandshake) GetClientPort() int32
func (*ClientHandshake) GetName ¶
func (x *ClientHandshake) GetName() string
func (*ClientHandshake) ProtoMessage ¶
func (*ClientHandshake) ProtoMessage()
func (*ClientHandshake) ProtoReflect ¶
func (x *ClientHandshake) ProtoReflect() protoreflect.Message
func (*ClientHandshake) Reset ¶
func (x *ClientHandshake) Reset()
func (*ClientHandshake) String ¶
func (x *ClientHandshake) String() string
type Request ¶
type Request struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type RequestResponse ¶
type RequestResponse struct { HighestBid int32 `protobuf:"varint,1,opt,name=highestBid,proto3" json:"highestBid,omitempty"` IsOver bool `protobuf:"varint,2,opt,name=isOver,proto3" json:"isOver,omitempty"` WinnerName string `protobuf:"bytes,3,opt,name=winnerName,proto3" json:"winnerName,omitempty"` // contains filtered or unexported fields }
func (*RequestResponse) Descriptor
deprecated
func (*RequestResponse) Descriptor() ([]byte, []int)
Deprecated: Use RequestResponse.ProtoReflect.Descriptor instead.
func (*RequestResponse) GetHighestBid ¶
func (x *RequestResponse) GetHighestBid() int32
func (*RequestResponse) GetIsOver ¶
func (x *RequestResponse) GetIsOver() bool
func (*RequestResponse) GetWinnerName ¶
func (x *RequestResponse) GetWinnerName() string
func (*RequestResponse) ProtoMessage ¶
func (*RequestResponse) ProtoMessage()
func (*RequestResponse) ProtoReflect ¶
func (x *RequestResponse) ProtoReflect() protoreflect.Message
func (*RequestResponse) Reset ¶
func (x *RequestResponse) Reset()
func (*RequestResponse) String ¶
func (x *RequestResponse) String() string
type UnimplementedBiddingServiceServer ¶
type UnimplementedBiddingServiceServer struct { }
UnimplementedBiddingServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedBiddingServiceServer) Handshake ¶
func (UnimplementedBiddingServiceServer) Handshake(*ClientHandshake, BiddingService_HandshakeServer) error
func (UnimplementedBiddingServiceServer) RequestCurrentResult ¶
func (UnimplementedBiddingServiceServer) RequestCurrentResult(*Request, BiddingService_RequestCurrentResultServer) error
func (UnimplementedBiddingServiceServer) SendBid ¶
func (UnimplementedBiddingServiceServer) SendBid(*Bid, BiddingService_SendBidServer) error
type UnsafeBiddingServiceServer ¶
type UnsafeBiddingServiceServer interface {
// contains filtered or unexported methods
}
UnsafeBiddingServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BiddingServiceServer will result in compilation errors.