shared

package module
v0.0.0-...-96a25b7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)

View Source
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.

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) Descriptor() ([]byte, []int)

Deprecated: Use BidAmount.ProtoReflect.Descriptor instead.

func (*BidAmount) GetAmount

func (x *BidAmount) GetAmount() int32

func (*BidAmount) GetOwner

func (x *BidAmount) GetOwner() string

func (*BidAmount) ProtoMessage

func (*BidAmount) ProtoMessage()

func (*BidAmount) ProtoReflect

func (x *BidAmount) ProtoReflect() protoreflect.Message

func (*BidAmount) Reset

func (x *BidAmount) Reset()

func (*BidAmount) String

func (x *BidAmount) String() string

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

func (*Empty) Descriptor deprecated

func (*Empty) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

func (x *Empty) ProtoReflect() protoreflect.Message

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Outcome.ProtoReflect.Descriptor instead.

func (*Outcome) GetBid

func (x *Outcome) GetBid() *BidAmount

func (*Outcome) GetIsOver

func (x *Outcome) GetIsOver() bool

func (*Outcome) ProtoMessage

func (*Outcome) ProtoMessage()

func (*Outcome) ProtoReflect

func (x *Outcome) ProtoReflect() protoreflect.Message

func (*Outcome) Reset

func (x *Outcome) Reset()

func (*Outcome) String

func (x *Outcome) String() string

type UnimplementedAuctionhouseServer

type UnimplementedAuctionhouseServer struct {
}

UnimplementedAuctionhouseServer must be embedded to have forward compatible implementations.

func (UnimplementedAuctionhouseServer) Bid

func (UnimplementedAuctionhouseServer) Result

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL