Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Auctionhouse_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Auctionhouse", HandlerType: (*AuctionhouseServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Bid", Handler: _Auctionhouse_Bid_Handler, }, { MethodName: "Result", Handler: _Auctionhouse_Result_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "auctionhouse.proto", }
Auctionhouse_ServiceDesc is the grpc.ServiceDesc for Auctionhouse service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_auctionhouse_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuctionhouseServer ¶
func RegisterAuctionhouseServer(s grpc.ServiceRegistrar, srv AuctionhouseServer)
Types ¶
type AuctionhouseClient ¶
type AuctionhouseClient interface { Bid(ctx context.Context, in *BidAmount, opts ...grpc.CallOption) (*Empty, error) Result(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Outcome, error) }
AuctionhouseClient is the client API for Auctionhouse 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 NewAuctionhouseClient ¶
func NewAuctionhouseClient(cc grpc.ClientConnInterface) AuctionhouseClient
type AuctionhouseServer ¶
type AuctionhouseServer interface { Bid(context.Context, *BidAmount) (*Empty, error) Result(context.Context, *Empty) (*Outcome, error) // contains filtered or unexported methods }
AuctionhouseServer is the server API for Auctionhouse service. All implementations must embed UnimplementedAuctionhouseServer for forward compatibility
type BidAmount ¶
type BidAmount struct { Amount int32 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"` Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` // contains filtered or unexported fields }
func (*BidAmount) Descriptor
deprecated
func (*BidAmount) ProtoMessage ¶
func (*BidAmount) ProtoMessage()
func (*BidAmount) ProtoReflect ¶
func (x *BidAmount) ProtoReflect() protoreflect.Message
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type Outcome ¶
type Outcome struct { Bid *BidAmount `protobuf:"bytes,1,opt,name=bid,proto3" json:"bid,omitempty"` IsOver bool `protobuf:"varint,2,opt,name=isOver,proto3" json:"isOver,omitempty"` // contains filtered or unexported fields }
func (*Outcome) Descriptor
deprecated
func (*Outcome) ProtoMessage ¶
func (*Outcome) ProtoMessage()
func (*Outcome) ProtoReflect ¶
func (x *Outcome) ProtoReflect() protoreflect.Message
type UnimplementedAuctionhouseServer ¶
type UnimplementedAuctionhouseServer struct { }
UnimplementedAuctionhouseServer must be embedded to have forward compatible implementations.
type UnsafeAuctionhouseServer ¶
type UnsafeAuctionhouseServer interface {
// contains filtered or unexported methods
}
UnsafeAuctionhouseServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuctionhouseServer will result in compilation errors.