checkout

package
v0.0.0-...-657e486 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Checkout_PlaceOrder_FullMethodName = "/boutiqueshop.Checkout/PlaceOrder"
)
View Source
const OperationCheckoutPlaceOrder = "/boutiqueshop.Checkout/PlaceOrder"

Variables

View Source
var Checkout_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "boutiqueshop.Checkout",
	HandlerType: (*CheckoutServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "PlaceOrder",
			Handler:    _Checkout_PlaceOrder_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "checkout/checkout.proto",
}

Checkout_ServiceDesc is the grpc.ServiceDesc for Checkout 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_checkout_checkout_proto protoreflect.FileDescriptor

Functions

func RegisterCheckoutHTTPServer

func RegisterCheckoutHTTPServer(s *http.Server, srv CheckoutHTTPServer)

func RegisterCheckoutServer

func RegisterCheckoutServer(s grpc.ServiceRegistrar, srv CheckoutServer)

Types

type CheckoutClient

type CheckoutClient interface {
	PlaceOrder(ctx context.Context, in *PlaceOrderRequest, opts ...grpc.CallOption) (*PlaceOrderResponse, error)
}

CheckoutClient is the client API for Checkout 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 NewCheckoutClient

func NewCheckoutClient(cc grpc.ClientConnInterface) CheckoutClient

type CheckoutHTTPClient

type CheckoutHTTPClient interface {
	PlaceOrder(ctx context.Context, req *PlaceOrderRequest, opts ...http.CallOption) (rsp *PlaceOrderResponse, err error)
}

func NewCheckoutHTTPClient

func NewCheckoutHTTPClient(client *http.Client) CheckoutHTTPClient

type CheckoutHTTPClientImpl

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

func (*CheckoutHTTPClientImpl) PlaceOrder

type CheckoutHTTPServer

type CheckoutHTTPServer interface {
	PlaceOrder(context.Context, *PlaceOrderRequest) (*PlaceOrderResponse, error)
}

type CheckoutServer

type CheckoutServer interface {
	PlaceOrder(context.Context, *PlaceOrderRequest) (*PlaceOrderResponse, error)
	// contains filtered or unexported methods
}

CheckoutServer is the server API for Checkout service. All implementations must embed UnimplementedCheckoutServer for forward compatibility

type PlaceOrderRequest

type PlaceOrderRequest struct {
	UserId       string                 `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	UserCurrency string                 `protobuf:"bytes,2,opt,name=user_currency,json=userCurrency,proto3" json:"user_currency,omitempty"`
	Address      *shared.Address        `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	Email        string                 `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
	CreditCard   *shared.CreditCardInfo `protobuf:"bytes,5,opt,name=credit_card,json=creditCard,proto3" json:"credit_card,omitempty"`
	// contains filtered or unexported fields
}

func (*PlaceOrderRequest) Descriptor deprecated

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

Deprecated: Use PlaceOrderRequest.ProtoReflect.Descriptor instead.

func (*PlaceOrderRequest) GetAddress

func (x *PlaceOrderRequest) GetAddress() *shared.Address

func (*PlaceOrderRequest) GetCreditCard

func (x *PlaceOrderRequest) GetCreditCard() *shared.CreditCardInfo

func (*PlaceOrderRequest) GetEmail

func (x *PlaceOrderRequest) GetEmail() string

func (*PlaceOrderRequest) GetUserCurrency

func (x *PlaceOrderRequest) GetUserCurrency() string

func (*PlaceOrderRequest) GetUserId

func (x *PlaceOrderRequest) GetUserId() string

func (*PlaceOrderRequest) ProtoMessage

func (*PlaceOrderRequest) ProtoMessage()

func (*PlaceOrderRequest) ProtoReflect

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

func (*PlaceOrderRequest) Reset

func (x *PlaceOrderRequest) Reset()

func (*PlaceOrderRequest) String

func (x *PlaceOrderRequest) String() string

type PlaceOrderResponse

type PlaceOrderResponse struct {
	Order *shared.OrderResult `protobuf:"bytes,1,opt,name=order,proto3" json:"order,omitempty"`
	// contains filtered or unexported fields
}

func (*PlaceOrderResponse) Descriptor deprecated

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

Deprecated: Use PlaceOrderResponse.ProtoReflect.Descriptor instead.

func (*PlaceOrderResponse) GetOrder

func (x *PlaceOrderResponse) GetOrder() *shared.OrderResult

func (*PlaceOrderResponse) ProtoMessage

func (*PlaceOrderResponse) ProtoMessage()

func (*PlaceOrderResponse) ProtoReflect

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

func (*PlaceOrderResponse) Reset

func (x *PlaceOrderResponse) Reset()

func (*PlaceOrderResponse) String

func (x *PlaceOrderResponse) String() string

type UnimplementedCheckoutServer

type UnimplementedCheckoutServer struct {
}

UnimplementedCheckoutServer must be embedded to have forward compatible implementations.

func (UnimplementedCheckoutServer) PlaceOrder

type UnsafeCheckoutServer

type UnsafeCheckoutServer interface {
	// contains filtered or unexported methods
}

UnsafeCheckoutServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CheckoutServer will result in compilation errors.

Jump to

Keyboard shortcuts

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