Versions in this module Expand all Collapse all v0 v0.1.0 Nov 30, 2022 Changes in this version + var CommandType_name = map[int32]string + var CommandType_value = map[string]int32 + var CounterService_ServiceDesc = grpc.ServiceDesc + var File_common_proto protoreflect.FileDescriptor + var File_counter_proto protoreflect.FileDescriptor + var File_product_proto protoreflect.FileDescriptor + var ItemType_name = map[int32]string + var ItemType_value = map[string]int32 + var Location_name = map[int32]string + var Location_value = map[string]int32 + var OrderSource_name = map[int32]string + var OrderSource_value = map[string]int32 + var ProductService_ServiceDesc = grpc.ServiceDesc + var Status_name = map[int32]string + var Status_value = map[string]int32 + func RegisterCounterServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error + func RegisterCounterServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CounterServiceClient) error + func RegisterCounterServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error) + func RegisterCounterServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CounterServiceServer) error + func RegisterCounterServiceServer(s grpc.ServiceRegistrar, srv CounterServiceServer) + func RegisterProductServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error + func RegisterProductServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProductServiceClient) error + func RegisterProductServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error) + func RegisterProductServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ProductServiceServer) error + func RegisterProductServiceServer(s grpc.ServiceRegistrar, srv ProductServiceServer) + type CommandItem struct + ItemType ItemType + func (*CommandItem) Descriptor() ([]byte, []int) + func (*CommandItem) ProtoMessage() + func (x *CommandItem) GetItemType() ItemType + func (x *CommandItem) ProtoReflect() protoreflect.Message + func (x *CommandItem) Reset() + func (x *CommandItem) String() string + type CommandType int32 + const CommandType_PLACE_ORDER + func (CommandType) Descriptor() protoreflect.EnumDescriptor + func (CommandType) EnumDescriptor() ([]byte, []int) + func (CommandType) Type() protoreflect.EnumType + func (x CommandType) Enum() *CommandType + func (x CommandType) Number() protoreflect.EnumNumber + func (x CommandType) String() string + type CounterServiceClient interface + GetListOrderFulfillment func(ctx context.Context, in *GetListOrderFulfillmentRequest, ...) (*GetListOrderFulfillmentResponse, error) + PlaceOrder func(ctx context.Context, in *PlaceOrderRequest, opts ...grpc.CallOption) (*PlaceOrderResponse, error) + func NewCounterServiceClient(cc grpc.ClientConnInterface) CounterServiceClient + type CounterServiceServer interface + GetListOrderFulfillment func(context.Context, *GetListOrderFulfillmentRequest) (*GetListOrderFulfillmentResponse, error) + PlaceOrder func(context.Context, *PlaceOrderRequest) (*PlaceOrderResponse, error) + type GetItemTypesRequest struct + func (*GetItemTypesRequest) Descriptor() ([]byte, []int) + func (*GetItemTypesRequest) ProtoMessage() + func (x *GetItemTypesRequest) ProtoReflect() protoreflect.Message + func (x *GetItemTypesRequest) Reset() + func (x *GetItemTypesRequest) String() string + type GetItemTypesResponse struct + ItemTypes []*ItemTypeDto + func (*GetItemTypesResponse) Descriptor() ([]byte, []int) + func (*GetItemTypesResponse) ProtoMessage() + func (x *GetItemTypesResponse) GetItemTypes() []*ItemTypeDto + func (x *GetItemTypesResponse) ProtoReflect() protoreflect.Message + func (x *GetItemTypesResponse) Reset() + func (x *GetItemTypesResponse) String() string + type GetItemsByTypeRequest struct + ItemTypes string + func (*GetItemsByTypeRequest) Descriptor() ([]byte, []int) + func (*GetItemsByTypeRequest) ProtoMessage() + func (x *GetItemsByTypeRequest) GetItemTypes() string + func (x *GetItemsByTypeRequest) ProtoReflect() protoreflect.Message + func (x *GetItemsByTypeRequest) Reset() + func (x *GetItemsByTypeRequest) String() string + type GetItemsByTypeResponse struct + Items []*ItemDto + func (*GetItemsByTypeResponse) Descriptor() ([]byte, []int) + func (*GetItemsByTypeResponse) ProtoMessage() + func (x *GetItemsByTypeResponse) GetItems() []*ItemDto + func (x *GetItemsByTypeResponse) ProtoReflect() protoreflect.Message + func (x *GetItemsByTypeResponse) Reset() + func (x *GetItemsByTypeResponse) String() string + type GetListOrderFulfillmentRequest struct + func (*GetListOrderFulfillmentRequest) Descriptor() ([]byte, []int) + func (*GetListOrderFulfillmentRequest) ProtoMessage() + func (x *GetListOrderFulfillmentRequest) ProtoReflect() protoreflect.Message + func (x *GetListOrderFulfillmentRequest) Reset() + func (x *GetListOrderFulfillmentRequest) String() string + type GetListOrderFulfillmentResponse struct + Orders []*OrderDto + func (*GetListOrderFulfillmentResponse) Descriptor() ([]byte, []int) + func (*GetListOrderFulfillmentResponse) ProtoMessage() + func (x *GetListOrderFulfillmentResponse) GetOrders() []*OrderDto + func (x *GetListOrderFulfillmentResponse) ProtoReflect() protoreflect.Message + func (x *GetListOrderFulfillmentResponse) Reset() + func (x *GetListOrderFulfillmentResponse) String() string + type ItemDto struct + Price float64 + Type int32 + func (*ItemDto) Descriptor() ([]byte, []int) + func (*ItemDto) ProtoMessage() + func (x *ItemDto) GetPrice() float64 + func (x *ItemDto) GetType() int32 + func (x *ItemDto) ProtoReflect() protoreflect.Message + func (x *ItemDto) Reset() + func (x *ItemDto) String() string + type ItemType int32 + const ItemType_CAKEPOP + const ItemType_CAPPUCCINO + const ItemType_COFFEE_BLACK + const ItemType_COFFEE_WITH_ROOM + const ItemType_CROISSANT + const ItemType_CROISSANT_CHOCOLATE + const ItemType_ESPRESSO + const ItemType_ESPRESSO_DOUBLE + const ItemType_LATTE + const ItemType_MUFFIN + func (ItemType) Descriptor() protoreflect.EnumDescriptor + func (ItemType) EnumDescriptor() ([]byte, []int) + func (ItemType) Type() protoreflect.EnumType + func (x ItemType) Enum() *ItemType + func (x ItemType) Number() protoreflect.EnumNumber + func (x ItemType) String() string + type ItemTypeDto struct + Image string + Name string + Price float64 + Type int32 + func (*ItemTypeDto) Descriptor() ([]byte, []int) + func (*ItemTypeDto) ProtoMessage() + func (x *ItemTypeDto) GetImage() string + func (x *ItemTypeDto) GetName() string + func (x *ItemTypeDto) GetPrice() float64 + func (x *ItemTypeDto) GetType() int32 + func (x *ItemTypeDto) ProtoReflect() protoreflect.Message + func (x *ItemTypeDto) Reset() + func (x *ItemTypeDto) String() string + type LineItemDto struct + Id string + IsBaristaOrder bool + ItemStatus Status + ItemType ItemType + Name string + Price float64 + func (*LineItemDto) Descriptor() ([]byte, []int) + func (*LineItemDto) ProtoMessage() + func (x *LineItemDto) GetId() string + func (x *LineItemDto) GetIsBaristaOrder() bool + func (x *LineItemDto) GetItemStatus() Status + func (x *LineItemDto) GetItemType() ItemType + func (x *LineItemDto) GetName() string + func (x *LineItemDto) GetPrice() float64 + func (x *LineItemDto) ProtoReflect() protoreflect.Message + func (x *LineItemDto) Reset() + func (x *LineItemDto) String() string + type Location int32 + const Location_ATLANTA + const Location_CHARLOTTE + const Location_RALEIGH + func (Location) Descriptor() protoreflect.EnumDescriptor + func (Location) EnumDescriptor() ([]byte, []int) + func (Location) Type() protoreflect.EnumType + func (x Location) Enum() *Location + func (x Location) Number() protoreflect.EnumNumber + func (x Location) String() string + type OrderDto struct + Id string + LineItems []*LineItemDto + Localtion Location + LoyaltyMemberId string + OrderSource OrderSource + OrderStatus Status + func (*OrderDto) Descriptor() ([]byte, []int) + func (*OrderDto) ProtoMessage() + func (x *OrderDto) GetId() string + func (x *OrderDto) GetLineItems() []*LineItemDto + func (x *OrderDto) GetLocaltion() Location + func (x *OrderDto) GetLoyaltyMemberId() string + func (x *OrderDto) GetOrderSource() OrderSource + func (x *OrderDto) GetOrderStatus() Status + func (x *OrderDto) ProtoReflect() protoreflect.Message + func (x *OrderDto) Reset() + func (x *OrderDto) String() string + type OrderSource int32 + const OrderSource_COUNTER + const OrderSource_WEB + func (OrderSource) Descriptor() protoreflect.EnumDescriptor + func (OrderSource) EnumDescriptor() ([]byte, []int) + func (OrderSource) Type() protoreflect.EnumType + func (x OrderSource) Enum() *OrderSource + func (x OrderSource) Number() protoreflect.EnumNumber + func (x OrderSource) String() string + type PlaceOrderRequest struct + BaristaItems []*CommandItem + CommandType CommandType + KitchenItems []*CommandItem + Location Location + LoyaltyMemberId string + OrderSource OrderSource + Timestamp *timestamppb.Timestamp + func (*PlaceOrderRequest) Descriptor() ([]byte, []int) + func (*PlaceOrderRequest) ProtoMessage() + func (x *PlaceOrderRequest) GetBaristaItems() []*CommandItem + func (x *PlaceOrderRequest) GetCommandType() CommandType + func (x *PlaceOrderRequest) GetKitchenItems() []*CommandItem + func (x *PlaceOrderRequest) GetLocation() Location + func (x *PlaceOrderRequest) GetLoyaltyMemberId() string + func (x *PlaceOrderRequest) GetOrderSource() OrderSource + func (x *PlaceOrderRequest) GetTimestamp() *timestamppb.Timestamp + func (x *PlaceOrderRequest) ProtoReflect() protoreflect.Message + func (x *PlaceOrderRequest) Reset() + func (x *PlaceOrderRequest) String() string + type PlaceOrderResponse struct + func (*PlaceOrderResponse) Descriptor() ([]byte, []int) + func (*PlaceOrderResponse) ProtoMessage() + func (x *PlaceOrderResponse) ProtoReflect() protoreflect.Message + func (x *PlaceOrderResponse) Reset() + func (x *PlaceOrderResponse) String() string + type ProductServiceClient interface + GetItemTypes func(ctx context.Context, in *GetItemTypesRequest, opts ...grpc.CallOption) (*GetItemTypesResponse, error) + GetItemsByType func(ctx context.Context, in *GetItemsByTypeRequest, opts ...grpc.CallOption) (*GetItemsByTypeResponse, error) + func NewProductServiceClient(cc grpc.ClientConnInterface) ProductServiceClient + type ProductServiceServer interface + GetItemTypes func(context.Context, *GetItemTypesRequest) (*GetItemTypesResponse, error) + GetItemsByType func(context.Context, *GetItemsByTypeRequest) (*GetItemsByTypeResponse, error) + type Status int32 + const Status_FULFILLED + const Status_IN_PROGRESS + const Status_PLACED + func (Status) Descriptor() protoreflect.EnumDescriptor + func (Status) EnumDescriptor() ([]byte, []int) + func (Status) Type() protoreflect.EnumType + func (x Status) Enum() *Status + func (x Status) Number() protoreflect.EnumNumber + func (x Status) String() string + type UnimplementedCounterServiceServer struct + func (UnimplementedCounterServiceServer) GetListOrderFulfillment(context.Context, *GetListOrderFulfillmentRequest) (*GetListOrderFulfillmentResponse, error) + func (UnimplementedCounterServiceServer) PlaceOrder(context.Context, *PlaceOrderRequest) (*PlaceOrderResponse, error) + type UnimplementedProductServiceServer struct + func (UnimplementedProductServiceServer) GetItemTypes(context.Context, *GetItemTypesRequest) (*GetItemTypesResponse, error) + func (UnimplementedProductServiceServer) GetItemsByType(context.Context, *GetItemsByTypeRequest) (*GetItemsByTypeResponse, error) + type UnsafeCounterServiceServer interface + type UnsafeProductServiceServer interface