request

package
v0.0.0-...-ec96dbe Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

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

Deprecated: Use Bid.ProtoReflect.Descriptor instead.

func (*Bid) GetAmount

func (x *Bid) GetAmount() int32

func (*Bid) GetName

func (x *Bid) GetName() string

func (*Bid) ProtoMessage

func (*Bid) ProtoMessage()

func (*Bid) ProtoReflect

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

func (*Bid) Reset

func (x *Bid) Reset()

func (*Bid) String

func (x *Bid) String() string

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.

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetName

func (x *Request) GetName() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

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) RequestCurrentResult

func (UnimplementedBiddingServiceServer) SendBid

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.

Jump to

Keyboard shortcuts

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