Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterMenuServiceServer(s grpc.ServiceRegistrar, srv MenuServiceServer)
- func RegisterRestaurantServiceServer(s grpc.ServiceRegistrar, srv RestaurantServiceServer)
- type AddMenuItemRequest
- func (*AddMenuItemRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddMenuItemRequest) GetDescription() string
- func (x *AddMenuItemRequest) GetName() string
- func (x *AddMenuItemRequest) GetPrice() float64
- func (x *AddMenuItemRequest) GetRestaurantId() string
- func (*AddMenuItemRequest) ProtoMessage()
- func (x *AddMenuItemRequest) ProtoReflect() protoreflect.Message
- func (x *AddMenuItemRequest) Reset()
- func (x *AddMenuItemRequest) String() string
- type CreateRestaurantRequest
- func (*CreateRestaurantRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRestaurantRequest) GetAddress() *model.Address
- func (x *CreateRestaurantRequest) GetName() string
- func (*CreateRestaurantRequest) ProtoMessage()
- func (x *CreateRestaurantRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRestaurantRequest) Reset()
- func (x *CreateRestaurantRequest) String() string
- type GetMenuItemRequest
- func (*GetMenuItemRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetMenuItemRequest) GetMenuItemId() string
- func (x *GetMenuItemRequest) GetRestaurantId() string
- func (*GetMenuItemRequest) ProtoMessage()
- func (x *GetMenuItemRequest) ProtoReflect() protoreflect.Message
- func (x *GetMenuItemRequest) Reset()
- func (x *GetMenuItemRequest) String() string
- type GetRestaurantRequest
- func (*GetRestaurantRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRestaurantRequest) GetRestaurantId() string
- func (*GetRestaurantRequest) ProtoMessage()
- func (x *GetRestaurantRequest) ProtoReflect() protoreflect.Message
- func (x *GetRestaurantRequest) Reset()
- func (x *GetRestaurantRequest) String() string
- type ListMenuItemsRequest
- func (*ListMenuItemsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListMenuItemsRequest) GetRestaurantId() string
- func (*ListMenuItemsRequest) ProtoMessage()
- func (x *ListMenuItemsRequest) ProtoReflect() protoreflect.Message
- func (x *ListMenuItemsRequest) Reset()
- func (x *ListMenuItemsRequest) String() string
- type ListOrdersRequest
- func (*ListOrdersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListOrdersRequest) GetCustomerId() string
- func (x *ListOrdersRequest) GetRestaurantId() string
- func (*ListOrdersRequest) ProtoMessage()
- func (x *ListOrdersRequest) ProtoReflect() protoreflect.Message
- func (x *ListOrdersRequest) Reset()
- func (x *ListOrdersRequest) String() string
- type ListRestaurantsRequest
- func (*ListRestaurantsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRestaurantsRequest) GetPage() int64
- func (x *ListRestaurantsRequest) GetPageSize() int64
- func (*ListRestaurantsRequest) ProtoMessage()
- func (x *ListRestaurantsRequest) ProtoReflect() protoreflect.Message
- func (x *ListRestaurantsRequest) Reset()
- func (x *ListRestaurantsRequest) String() string
- type ListRestaurantsResponse
- func (*ListRestaurantsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListRestaurantsResponse) GetRestaurants() []*model.Restaurant
- func (x *ListRestaurantsResponse) GetTotal() int64
- func (*ListRestaurantsResponse) ProtoMessage()
- func (x *ListRestaurantsResponse) ProtoReflect() protoreflect.Message
- func (x *ListRestaurantsResponse) Reset()
- func (x *ListRestaurantsResponse) String() string
- type MenuServiceClient
- type MenuServiceServer
- type MenuService_ListMenuItemsClient
- type MenuService_ListMenuItemsServer
- type MockMenuServiceClient
- func (m *MockMenuServiceClient) AddMenuItem(ctx context.Context, in *AddMenuItemRequest, opts ...grpc.CallOption) (*model.MenuItem, error)
- func (m *MockMenuServiceClient) EXPECT() *MockMenuServiceClientMockRecorder
- func (m *MockMenuServiceClient) GetMenuItem(ctx context.Context, in *GetMenuItemRequest, opts ...grpc.CallOption) (*model.MenuItem, error)
- func (m *MockMenuServiceClient) ListMenuItems(ctx context.Context, in *ListMenuItemsRequest, opts ...grpc.CallOption) (MenuService_ListMenuItemsClient, error)
- type MockMenuServiceClientMockRecorder
- func (mr *MockMenuServiceClientMockRecorder) AddMenuItem(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockMenuServiceClientMockRecorder) GetMenuItem(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockMenuServiceClientMockRecorder) ListMenuItems(ctx, in interface{}, opts ...interface{}) *gomock.Call
- type MockMenuServiceServer
- func (m *MockMenuServiceServer) AddMenuItem(ctx context.Context, in *AddMenuItemRequest) (*model.MenuItem, error)
- func (m *MockMenuServiceServer) EXPECT() *MockMenuServiceServerMockRecorder
- func (m *MockMenuServiceServer) GetMenuItem(ctx context.Context, in *GetMenuItemRequest) (*model.MenuItem, error)
- func (m *MockMenuServiceServer) ListMenuItems(blob *ListMenuItemsRequest, server MenuService_ListMenuItemsServer) error
- type MockMenuServiceServerMockRecorder
- type MockMenuService_ListMenuItemsClient
- func (m *MockMenuService_ListMenuItemsClient) CloseSend() error
- func (m *MockMenuService_ListMenuItemsClient) Context() context.Context
- func (m *MockMenuService_ListMenuItemsClient) EXPECT() *MockMenuService_ListMenuItemsClientMockRecorder
- func (m *MockMenuService_ListMenuItemsClient) Header() (metadata.MD, error)
- func (m *MockMenuService_ListMenuItemsClient) Recv() (*model.MenuItem, error)
- func (m *MockMenuService_ListMenuItemsClient) RecvMsg(arg0 interface{}) error
- func (m *MockMenuService_ListMenuItemsClient) SendMsg(arg0 interface{}) error
- func (m *MockMenuService_ListMenuItemsClient) Trailer() metadata.MD
- type MockMenuService_ListMenuItemsClientMockRecorder
- func (mr *MockMenuService_ListMenuItemsClientMockRecorder) CloseSend() *gomock.Call
- func (mr *MockMenuService_ListMenuItemsClientMockRecorder) Context() *gomock.Call
- func (mr *MockMenuService_ListMenuItemsClientMockRecorder) Header() *gomock.Call
- func (mr *MockMenuService_ListMenuItemsClientMockRecorder) Recv() *gomock.Call
- func (mr *MockMenuService_ListMenuItemsClientMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call
- func (mr *MockMenuService_ListMenuItemsClientMockRecorder) SendMsg(arg0 interface{}) *gomock.Call
- func (mr *MockMenuService_ListMenuItemsClientMockRecorder) Trailer() *gomock.Call
- type MockMenuService_ListMenuItemsServer
- func (m *MockMenuService_ListMenuItemsServer) Context() context.Context
- func (m *MockMenuService_ListMenuItemsServer) EXPECT() *MockMenuService_ListMenuItemsServerMockRecorder
- func (m *MockMenuService_ListMenuItemsServer) RecvMsg(arg0 interface{}) error
- func (m *MockMenuService_ListMenuItemsServer) Send(arg0 *model.MenuItem) error
- func (m *MockMenuService_ListMenuItemsServer) SendHeader(arg0 metadata.MD) error
- func (m *MockMenuService_ListMenuItemsServer) SendMsg(arg0 interface{}) error
- func (m *MockMenuService_ListMenuItemsServer) SetHeader(arg0 metadata.MD) error
- func (m *MockMenuService_ListMenuItemsServer) SetTrailer(arg0 metadata.MD)
- type MockMenuService_ListMenuItemsServerMockRecorder
- func (mr *MockMenuService_ListMenuItemsServerMockRecorder) Context() *gomock.Call
- func (mr *MockMenuService_ListMenuItemsServerMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call
- func (mr *MockMenuService_ListMenuItemsServerMockRecorder) Send(arg0 interface{}) *gomock.Call
- func (mr *MockMenuService_ListMenuItemsServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call
- func (mr *MockMenuService_ListMenuItemsServerMockRecorder) SendMsg(arg0 interface{}) *gomock.Call
- func (mr *MockMenuService_ListMenuItemsServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call
- func (mr *MockMenuService_ListMenuItemsServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call
- type MockRestaurantServiceClient
- func (m *MockRestaurantServiceClient) CreateRestaurant(ctx context.Context, in *CreateRestaurantRequest, opts ...grpc.CallOption) (*model.Restaurant, error)
- func (m *MockRestaurantServiceClient) EXPECT() *MockRestaurantServiceClientMockRecorder
- func (m *MockRestaurantServiceClient) GetRestaurant(ctx context.Context, in *GetRestaurantRequest, opts ...grpc.CallOption) (*model.Restaurant, error)
- func (m *MockRestaurantServiceClient) ListOrders(ctx context.Context, in *ListOrdersRequest, opts ...grpc.CallOption) (RestaurantService_ListOrdersClient, error)
- func (m *MockRestaurantServiceClient) ListRestaurants(ctx context.Context, in *ListRestaurantsRequest, opts ...grpc.CallOption) (RestaurantService_ListRestaurantsClient, error)
- func (m *MockRestaurantServiceClient) ListRestaurantsNonStream(ctx context.Context, in *ListRestaurantsRequest, opts ...grpc.CallOption) (*ListRestaurantsResponse, error)
- func (m *MockRestaurantServiceClient) PlaceOrder(ctx context.Context, in *PlaceOrderRequest, opts ...grpc.CallOption) (*PlaceOrderResponse, error)
- type MockRestaurantServiceClientMockRecorder
- func (mr *MockRestaurantServiceClientMockRecorder) CreateRestaurant(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockRestaurantServiceClientMockRecorder) GetRestaurant(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockRestaurantServiceClientMockRecorder) ListOrders(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockRestaurantServiceClientMockRecorder) ListRestaurants(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockRestaurantServiceClientMockRecorder) ListRestaurantsNonStream(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockRestaurantServiceClientMockRecorder) PlaceOrder(ctx, in interface{}, opts ...interface{}) *gomock.Call
- type MockRestaurantServiceServer
- func (m *MockRestaurantServiceServer) CreateRestaurant(ctx context.Context, in *CreateRestaurantRequest) (*model.Restaurant, error)
- func (m *MockRestaurantServiceServer) EXPECT() *MockRestaurantServiceServerMockRecorder
- func (m *MockRestaurantServiceServer) GetRestaurant(ctx context.Context, in *GetRestaurantRequest) (*model.Restaurant, error)
- func (m *MockRestaurantServiceServer) ListOrders(blob *ListOrdersRequest, server RestaurantService_ListOrdersServer) error
- func (m *MockRestaurantServiceServer) ListRestaurants(blob *ListRestaurantsRequest, server RestaurantService_ListRestaurantsServer) error
- func (m *MockRestaurantServiceServer) ListRestaurantsNonStream(ctx context.Context, in *ListRestaurantsRequest) (*ListRestaurantsResponse, error)
- func (m *MockRestaurantServiceServer) PlaceOrder(ctx context.Context, in *PlaceOrderRequest) (*PlaceOrderResponse, error)
- type MockRestaurantServiceServerMockRecorder
- func (mr *MockRestaurantServiceServerMockRecorder) CreateRestaurant(ctx, in interface{}) *gomock.Call
- func (mr *MockRestaurantServiceServerMockRecorder) GetRestaurant(ctx, in interface{}) *gomock.Call
- func (mr *MockRestaurantServiceServerMockRecorder) ListOrders(blob, server interface{}) *gomock.Call
- func (mr *MockRestaurantServiceServerMockRecorder) ListRestaurants(blob, server interface{}) *gomock.Call
- func (mr *MockRestaurantServiceServerMockRecorder) ListRestaurantsNonStream(ctx, in interface{}) *gomock.Call
- func (mr *MockRestaurantServiceServerMockRecorder) PlaceOrder(ctx, in interface{}) *gomock.Call
- type MockRestaurantService_ListOrdersClient
- func (m *MockRestaurantService_ListOrdersClient) CloseSend() error
- func (m *MockRestaurantService_ListOrdersClient) Context() context.Context
- func (m *MockRestaurantService_ListOrdersClient) EXPECT() *MockRestaurantService_ListOrdersClientMockRecorder
- func (m *MockRestaurantService_ListOrdersClient) Header() (metadata.MD, error)
- func (m *MockRestaurantService_ListOrdersClient) Recv() (*model.Order, error)
- func (m *MockRestaurantService_ListOrdersClient) RecvMsg(arg0 interface{}) error
- func (m *MockRestaurantService_ListOrdersClient) SendMsg(arg0 interface{}) error
- func (m *MockRestaurantService_ListOrdersClient) Trailer() metadata.MD
- type MockRestaurantService_ListOrdersClientMockRecorder
- func (mr *MockRestaurantService_ListOrdersClientMockRecorder) CloseSend() *gomock.Call
- func (mr *MockRestaurantService_ListOrdersClientMockRecorder) Context() *gomock.Call
- func (mr *MockRestaurantService_ListOrdersClientMockRecorder) Header() *gomock.Call
- func (mr *MockRestaurantService_ListOrdersClientMockRecorder) Recv() *gomock.Call
- func (mr *MockRestaurantService_ListOrdersClientMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call
- func (mr *MockRestaurantService_ListOrdersClientMockRecorder) SendMsg(arg0 interface{}) *gomock.Call
- func (mr *MockRestaurantService_ListOrdersClientMockRecorder) Trailer() *gomock.Call
- type MockRestaurantService_ListOrdersServer
- func (m *MockRestaurantService_ListOrdersServer) Context() context.Context
- func (m *MockRestaurantService_ListOrdersServer) EXPECT() *MockRestaurantService_ListOrdersServerMockRecorder
- func (m *MockRestaurantService_ListOrdersServer) RecvMsg(arg0 interface{}) error
- func (m *MockRestaurantService_ListOrdersServer) Send(arg0 *model.Order) error
- func (m *MockRestaurantService_ListOrdersServer) SendHeader(arg0 metadata.MD) error
- func (m *MockRestaurantService_ListOrdersServer) SendMsg(arg0 interface{}) error
- func (m *MockRestaurantService_ListOrdersServer) SetHeader(arg0 metadata.MD) error
- func (m *MockRestaurantService_ListOrdersServer) SetTrailer(arg0 metadata.MD)
- type MockRestaurantService_ListOrdersServerMockRecorder
- func (mr *MockRestaurantService_ListOrdersServerMockRecorder) Context() *gomock.Call
- func (mr *MockRestaurantService_ListOrdersServerMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call
- func (mr *MockRestaurantService_ListOrdersServerMockRecorder) Send(arg0 interface{}) *gomock.Call
- func (mr *MockRestaurantService_ListOrdersServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call
- func (mr *MockRestaurantService_ListOrdersServerMockRecorder) SendMsg(arg0 interface{}) *gomock.Call
- func (mr *MockRestaurantService_ListOrdersServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call
- func (mr *MockRestaurantService_ListOrdersServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call
- type MockRestaurantService_ListRestaurantsClient
- func (m *MockRestaurantService_ListRestaurantsClient) CloseSend() error
- func (m *MockRestaurantService_ListRestaurantsClient) Context() context.Context
- func (m *MockRestaurantService_ListRestaurantsClient) EXPECT() *MockRestaurantService_ListRestaurantsClientMockRecorder
- func (m *MockRestaurantService_ListRestaurantsClient) Header() (metadata.MD, error)
- func (m *MockRestaurantService_ListRestaurantsClient) Recv() (*model.Restaurant, error)
- func (m *MockRestaurantService_ListRestaurantsClient) RecvMsg(arg0 interface{}) error
- func (m *MockRestaurantService_ListRestaurantsClient) SendMsg(arg0 interface{}) error
- func (m *MockRestaurantService_ListRestaurantsClient) Trailer() metadata.MD
- type MockRestaurantService_ListRestaurantsClientMockRecorder
- func (mr *MockRestaurantService_ListRestaurantsClientMockRecorder) CloseSend() *gomock.Call
- func (mr *MockRestaurantService_ListRestaurantsClientMockRecorder) Context() *gomock.Call
- func (mr *MockRestaurantService_ListRestaurantsClientMockRecorder) Header() *gomock.Call
- func (mr *MockRestaurantService_ListRestaurantsClientMockRecorder) Recv() *gomock.Call
- func (mr *MockRestaurantService_ListRestaurantsClientMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call
- func (mr *MockRestaurantService_ListRestaurantsClientMockRecorder) SendMsg(arg0 interface{}) *gomock.Call
- func (mr *MockRestaurantService_ListRestaurantsClientMockRecorder) Trailer() *gomock.Call
- type MockRestaurantService_ListRestaurantsServer
- func (m *MockRestaurantService_ListRestaurantsServer) Context() context.Context
- func (m *MockRestaurantService_ListRestaurantsServer) EXPECT() *MockRestaurantService_ListRestaurantsServerMockRecorder
- func (m *MockRestaurantService_ListRestaurantsServer) RecvMsg(arg0 interface{}) error
- func (m *MockRestaurantService_ListRestaurantsServer) Send(arg0 *model.Restaurant) error
- func (m *MockRestaurantService_ListRestaurantsServer) SendHeader(arg0 metadata.MD) error
- func (m *MockRestaurantService_ListRestaurantsServer) SendMsg(arg0 interface{}) error
- func (m *MockRestaurantService_ListRestaurantsServer) SetHeader(arg0 metadata.MD) error
- func (m *MockRestaurantService_ListRestaurantsServer) SetTrailer(arg0 metadata.MD)
- type MockRestaurantService_ListRestaurantsServerMockRecorder
- func (mr *MockRestaurantService_ListRestaurantsServerMockRecorder) Context() *gomock.Call
- func (mr *MockRestaurantService_ListRestaurantsServerMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call
- func (mr *MockRestaurantService_ListRestaurantsServerMockRecorder) Send(arg0 interface{}) *gomock.Call
- func (mr *MockRestaurantService_ListRestaurantsServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call
- func (mr *MockRestaurantService_ListRestaurantsServerMockRecorder) SendMsg(arg0 interface{}) *gomock.Call
- func (mr *MockRestaurantService_ListRestaurantsServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call
- func (mr *MockRestaurantService_ListRestaurantsServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call
- type PlaceOrderRequest
- func (*PlaceOrderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PlaceOrderRequest) GetCustomerId() string
- func (x *PlaceOrderRequest) GetDishes() []*model.Dish
- func (x *PlaceOrderRequest) GetNotes() string
- func (x *PlaceOrderRequest) GetRestaurantId() string
- func (*PlaceOrderRequest) ProtoMessage()
- func (x *PlaceOrderRequest) ProtoReflect() protoreflect.Message
- func (x *PlaceOrderRequest) Reset()
- func (x *PlaceOrderRequest) String() string
- type PlaceOrderResponse
- func (*PlaceOrderResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PlaceOrderResponse) GetEstimatedAt() *timestamppb.Timestamp
- func (x *PlaceOrderResponse) GetOrderId() string
- func (x *PlaceOrderResponse) GetStatus() string
- func (*PlaceOrderResponse) ProtoMessage()
- func (x *PlaceOrderResponse) ProtoReflect() protoreflect.Message
- func (x *PlaceOrderResponse) Reset()
- func (x *PlaceOrderResponse) String() string
- type RestaurantServiceClient
- type RestaurantServiceServer
- type RestaurantService_ListOrdersClient
- type RestaurantService_ListOrdersServer
- type RestaurantService_ListRestaurantsClient
- type RestaurantService_ListRestaurantsServer
- type UnimplementedMenuServiceServer
- func (UnimplementedMenuServiceServer) AddMenuItem(context.Context, *AddMenuItemRequest) (*model.MenuItem, error)
- func (UnimplementedMenuServiceServer) GetMenuItem(context.Context, *GetMenuItemRequest) (*model.MenuItem, error)
- func (UnimplementedMenuServiceServer) ListMenuItems(*ListMenuItemsRequest, grpc.ServerStreamingServer[model.MenuItem]) error
- type UnimplementedRestaurantServiceServer
- func (UnimplementedRestaurantServiceServer) CreateRestaurant(context.Context, *CreateRestaurantRequest) (*model.Restaurant, error)
- func (UnimplementedRestaurantServiceServer) GetRestaurant(context.Context, *GetRestaurantRequest) (*model.Restaurant, error)
- func (UnimplementedRestaurantServiceServer) ListOrders(*ListOrdersRequest, grpc.ServerStreamingServer[model.Order]) error
- func (UnimplementedRestaurantServiceServer) ListRestaurants(*ListRestaurantsRequest, grpc.ServerStreamingServer[model.Restaurant]) error
- func (UnimplementedRestaurantServiceServer) ListRestaurantsNonStream(context.Context, *ListRestaurantsRequest) (*ListRestaurantsResponse, error)
- func (UnimplementedRestaurantServiceServer) PlaceOrder(context.Context, *PlaceOrderRequest) (*PlaceOrderResponse, error)
- type UnsafeMenuServiceServer
- type UnsafeRestaurantServiceServer
Constants ¶
const ( MenuService_AddMenuItem_FullMethodName = "/restaurant.MenuService/AddMenuItem" MenuService_GetMenuItem_FullMethodName = "/restaurant.MenuService/GetMenuItem" MenuService_ListMenuItems_FullMethodName = "/restaurant.MenuService/ListMenuItems" )
const ( RestaurantService_CreateRestaurant_FullMethodName = "/restaurant.RestaurantService/CreateRestaurant" RestaurantService_ListRestaurants_FullMethodName = "/restaurant.RestaurantService/ListRestaurants" RestaurantService_GetRestaurant_FullMethodName = "/restaurant.RestaurantService/GetRestaurant" RestaurantService_ListRestaurantsNonStream_FullMethodName = "/restaurant.RestaurantService/ListRestaurantsNonStream" RestaurantService_PlaceOrder_FullMethodName = "/restaurant.RestaurantService/PlaceOrder" RestaurantService_ListOrders_FullMethodName = "/restaurant.RestaurantService/ListOrders" )
Variables ¶
var File_domain_restaurant_biz_restaurant_proto protoreflect.FileDescriptor
var MenuService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "restaurant.MenuService", HandlerType: (*MenuServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddMenuItem", Handler: _MenuService_AddMenuItem_Handler, }, { MethodName: "GetMenuItem", Handler: _MenuService_GetMenuItem_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "ListMenuItems", Handler: _MenuService_ListMenuItems_Handler, ServerStreams: true, }, }, Metadata: "domain/restaurant/biz/menu.proto", }
MenuService_ServiceDesc is the grpc.ServiceDesc for MenuService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var RestaurantService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "restaurant.RestaurantService", HandlerType: (*RestaurantServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateRestaurant", Handler: _RestaurantService_CreateRestaurant_Handler, }, { MethodName: "GetRestaurant", Handler: _RestaurantService_GetRestaurant_Handler, }, { MethodName: "ListRestaurantsNonStream", Handler: _RestaurantService_ListRestaurantsNonStream_Handler, }, { MethodName: "PlaceOrder", Handler: _RestaurantService_PlaceOrder_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "ListRestaurants", Handler: _RestaurantService_ListRestaurants_Handler, ServerStreams: true, }, { StreamName: "ListOrders", Handler: _RestaurantService_ListOrders_Handler, ServerStreams: true, }, }, Metadata: "domain/restaurant/biz/restaurant.proto", }
RestaurantService_ServiceDesc is the grpc.ServiceDesc for RestaurantService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMenuServiceServer ¶
func RegisterMenuServiceServer(s grpc.ServiceRegistrar, srv MenuServiceServer)
func RegisterRestaurantServiceServer ¶
func RegisterRestaurantServiceServer(s grpc.ServiceRegistrar, srv RestaurantServiceServer)
Types ¶
type AddMenuItemRequest ¶
type AddMenuItemRequest struct { RestaurantId string `protobuf:"bytes,1,opt,name=restaurant_id,json=restaurantId,proto3" json:"restaurant_id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Price float64 `protobuf:"fixed64,4,opt,name=price,proto3" json:"price,omitempty"` // contains filtered or unexported fields }
func (*AddMenuItemRequest) Descriptor
deprecated
func (*AddMenuItemRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddMenuItemRequest.ProtoReflect.Descriptor instead.
func (*AddMenuItemRequest) GetDescription ¶
func (x *AddMenuItemRequest) GetDescription() string
func (*AddMenuItemRequest) GetName ¶
func (x *AddMenuItemRequest) GetName() string
func (*AddMenuItemRequest) GetPrice ¶
func (x *AddMenuItemRequest) GetPrice() float64
func (*AddMenuItemRequest) GetRestaurantId ¶
func (x *AddMenuItemRequest) GetRestaurantId() string
func (*AddMenuItemRequest) ProtoMessage ¶
func (*AddMenuItemRequest) ProtoMessage()
func (*AddMenuItemRequest) ProtoReflect ¶
func (x *AddMenuItemRequest) ProtoReflect() protoreflect.Message
func (*AddMenuItemRequest) Reset ¶
func (x *AddMenuItemRequest) Reset()
func (*AddMenuItemRequest) String ¶
func (x *AddMenuItemRequest) String() string
type CreateRestaurantRequest ¶
type CreateRestaurantRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Address *model.Address `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*CreateRestaurantRequest) Descriptor
deprecated
func (*CreateRestaurantRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRestaurantRequest.ProtoReflect.Descriptor instead.
func (*CreateRestaurantRequest) GetAddress ¶
func (x *CreateRestaurantRequest) GetAddress() *model.Address
func (*CreateRestaurantRequest) GetName ¶
func (x *CreateRestaurantRequest) GetName() string
func (*CreateRestaurantRequest) ProtoMessage ¶
func (*CreateRestaurantRequest) ProtoMessage()
func (*CreateRestaurantRequest) ProtoReflect ¶
func (x *CreateRestaurantRequest) ProtoReflect() protoreflect.Message
func (*CreateRestaurantRequest) Reset ¶
func (x *CreateRestaurantRequest) Reset()
func (*CreateRestaurantRequest) String ¶
func (x *CreateRestaurantRequest) String() string
type GetMenuItemRequest ¶
type GetMenuItemRequest struct { RestaurantId string `protobuf:"bytes,1,opt,name=restaurant_id,json=restaurantId,proto3" json:"restaurant_id,omitempty"` MenuItemId string `protobuf:"bytes,2,opt,name=menu_item_id,json=menuItemId,proto3" json:"menu_item_id,omitempty"` // contains filtered or unexported fields }
func (*GetMenuItemRequest) Descriptor
deprecated
func (*GetMenuItemRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMenuItemRequest.ProtoReflect.Descriptor instead.
func (*GetMenuItemRequest) GetMenuItemId ¶
func (x *GetMenuItemRequest) GetMenuItemId() string
func (*GetMenuItemRequest) GetRestaurantId ¶
func (x *GetMenuItemRequest) GetRestaurantId() string
func (*GetMenuItemRequest) ProtoMessage ¶
func (*GetMenuItemRequest) ProtoMessage()
func (*GetMenuItemRequest) ProtoReflect ¶
func (x *GetMenuItemRequest) ProtoReflect() protoreflect.Message
func (*GetMenuItemRequest) Reset ¶
func (x *GetMenuItemRequest) Reset()
func (*GetMenuItemRequest) String ¶
func (x *GetMenuItemRequest) String() string
type GetRestaurantRequest ¶
type GetRestaurantRequest struct { RestaurantId string `protobuf:"bytes,1,opt,name=restaurant_id,json=restaurantId,proto3" json:"restaurant_id,omitempty"` // contains filtered or unexported fields }
func (*GetRestaurantRequest) Descriptor
deprecated
func (*GetRestaurantRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRestaurantRequest.ProtoReflect.Descriptor instead.
func (*GetRestaurantRequest) GetRestaurantId ¶
func (x *GetRestaurantRequest) GetRestaurantId() string
func (*GetRestaurantRequest) ProtoMessage ¶
func (*GetRestaurantRequest) ProtoMessage()
func (*GetRestaurantRequest) ProtoReflect ¶
func (x *GetRestaurantRequest) ProtoReflect() protoreflect.Message
func (*GetRestaurantRequest) Reset ¶
func (x *GetRestaurantRequest) Reset()
func (*GetRestaurantRequest) String ¶
func (x *GetRestaurantRequest) String() string
type ListMenuItemsRequest ¶
type ListMenuItemsRequest struct { RestaurantId string `protobuf:"bytes,1,opt,name=restaurant_id,json=restaurantId,proto3" json:"restaurant_id,omitempty"` // contains filtered or unexported fields }
func (*ListMenuItemsRequest) Descriptor
deprecated
func (*ListMenuItemsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListMenuItemsRequest.ProtoReflect.Descriptor instead.
func (*ListMenuItemsRequest) GetRestaurantId ¶
func (x *ListMenuItemsRequest) GetRestaurantId() string
func (*ListMenuItemsRequest) ProtoMessage ¶
func (*ListMenuItemsRequest) ProtoMessage()
func (*ListMenuItemsRequest) ProtoReflect ¶
func (x *ListMenuItemsRequest) ProtoReflect() protoreflect.Message
func (*ListMenuItemsRequest) Reset ¶
func (x *ListMenuItemsRequest) Reset()
func (*ListMenuItemsRequest) String ¶
func (x *ListMenuItemsRequest) String() string
type ListOrdersRequest ¶
type ListOrdersRequest struct { // 餐廳ID RestaurantId string `protobuf:"bytes,1,opt,name=restaurant_id,json=restaurantId,proto3" json:"restaurant_id,omitempty"` // 客戶ID CustomerId string `protobuf:"bytes,2,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` // contains filtered or unexported fields }
func (*ListOrdersRequest) Descriptor
deprecated
func (*ListOrdersRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListOrdersRequest.ProtoReflect.Descriptor instead.
func (*ListOrdersRequest) GetCustomerId ¶
func (x *ListOrdersRequest) GetCustomerId() string
func (*ListOrdersRequest) GetRestaurantId ¶
func (x *ListOrdersRequest) GetRestaurantId() string
func (*ListOrdersRequest) ProtoMessage ¶
func (*ListOrdersRequest) ProtoMessage()
func (*ListOrdersRequest) ProtoReflect ¶
func (x *ListOrdersRequest) ProtoReflect() protoreflect.Message
func (*ListOrdersRequest) Reset ¶
func (x *ListOrdersRequest) Reset()
func (*ListOrdersRequest) String ¶
func (x *ListOrdersRequest) String() string
type ListRestaurantsRequest ¶
type ListRestaurantsRequest struct { Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*ListRestaurantsRequest) Descriptor
deprecated
func (*ListRestaurantsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRestaurantsRequest.ProtoReflect.Descriptor instead.
func (*ListRestaurantsRequest) GetPage ¶
func (x *ListRestaurantsRequest) GetPage() int64
func (*ListRestaurantsRequest) GetPageSize ¶
func (x *ListRestaurantsRequest) GetPageSize() int64
func (*ListRestaurantsRequest) ProtoMessage ¶
func (*ListRestaurantsRequest) ProtoMessage()
func (*ListRestaurantsRequest) ProtoReflect ¶
func (x *ListRestaurantsRequest) ProtoReflect() protoreflect.Message
func (*ListRestaurantsRequest) Reset ¶
func (x *ListRestaurantsRequest) Reset()
func (*ListRestaurantsRequest) String ¶
func (x *ListRestaurantsRequest) String() string
type ListRestaurantsResponse ¶
type ListRestaurantsResponse struct { Restaurants []*model.Restaurant `protobuf:"bytes,1,rep,name=restaurants,proto3" json:"restaurants,omitempty"` Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*ListRestaurantsResponse) Descriptor
deprecated
func (*ListRestaurantsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListRestaurantsResponse.ProtoReflect.Descriptor instead.
func (*ListRestaurantsResponse) GetRestaurants ¶
func (x *ListRestaurantsResponse) GetRestaurants() []*model.Restaurant
func (*ListRestaurantsResponse) GetTotal ¶
func (x *ListRestaurantsResponse) GetTotal() int64
func (*ListRestaurantsResponse) ProtoMessage ¶
func (*ListRestaurantsResponse) ProtoMessage()
func (*ListRestaurantsResponse) ProtoReflect ¶
func (x *ListRestaurantsResponse) ProtoReflect() protoreflect.Message
func (*ListRestaurantsResponse) Reset ¶
func (x *ListRestaurantsResponse) Reset()
func (*ListRestaurantsResponse) String ¶
func (x *ListRestaurantsResponse) String() string
type MenuServiceClient ¶
type MenuServiceClient interface { AddMenuItem(ctx context.Context, in *AddMenuItemRequest, opts ...grpc.CallOption) (*model.MenuItem, error) GetMenuItem(ctx context.Context, in *GetMenuItemRequest, opts ...grpc.CallOption) (*model.MenuItem, error) ListMenuItems(ctx context.Context, in *ListMenuItemsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[model.MenuItem], error) }
MenuServiceClient is the client API for MenuService 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 NewMenuServiceClient ¶
func NewMenuServiceClient(cc grpc.ClientConnInterface) MenuServiceClient
type MenuServiceServer ¶
type MenuServiceServer interface { AddMenuItem(context.Context, *AddMenuItemRequest) (*model.MenuItem, error) GetMenuItem(context.Context, *GetMenuItemRequest) (*model.MenuItem, error) ListMenuItems(*ListMenuItemsRequest, grpc.ServerStreamingServer[model.MenuItem]) error }
MenuServiceServer is the server API for MenuService service. All implementations should embed UnimplementedMenuServiceServer for forward compatibility.
type MenuService_ListMenuItemsClient ¶
type MenuService_ListMenuItemsClient = grpc.ServerStreamingClient[model.MenuItem]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type MenuService_ListMenuItemsServer ¶
type MenuService_ListMenuItemsServer = grpc.ServerStreamingServer[model.MenuItem]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type MockMenuServiceClient ¶
type MockMenuServiceClient struct {
// contains filtered or unexported fields
}
MockMenuServiceClient is a mock of MenuServiceClient interface.
func NewMockMenuServiceClient ¶
func NewMockMenuServiceClient(ctrl *gomock.Controller) *MockMenuServiceClient
NewMockMenuServiceClient creates a new mock instance.
func (*MockMenuServiceClient) AddMenuItem ¶
func (m *MockMenuServiceClient) AddMenuItem(ctx context.Context, in *AddMenuItemRequest, opts ...grpc.CallOption) (*model.MenuItem, error)
AddMenuItem mocks base method.
func (*MockMenuServiceClient) EXPECT ¶
func (m *MockMenuServiceClient) EXPECT() *MockMenuServiceClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMenuServiceClient) GetMenuItem ¶
func (m *MockMenuServiceClient) GetMenuItem(ctx context.Context, in *GetMenuItemRequest, opts ...grpc.CallOption) (*model.MenuItem, error)
GetMenuItem mocks base method.
func (*MockMenuServiceClient) ListMenuItems ¶
func (m *MockMenuServiceClient) ListMenuItems(ctx context.Context, in *ListMenuItemsRequest, opts ...grpc.CallOption) (MenuService_ListMenuItemsClient, error)
ListMenuItems mocks base method.
type MockMenuServiceClientMockRecorder ¶
type MockMenuServiceClientMockRecorder struct {
// contains filtered or unexported fields
}
MockMenuServiceClientMockRecorder is the mock recorder for MockMenuServiceClient.
func (*MockMenuServiceClientMockRecorder) AddMenuItem ¶
func (mr *MockMenuServiceClientMockRecorder) AddMenuItem(ctx, in interface{}, opts ...interface{}) *gomock.Call
AddMenuItem indicates an expected call of AddMenuItem.
func (*MockMenuServiceClientMockRecorder) GetMenuItem ¶
func (mr *MockMenuServiceClientMockRecorder) GetMenuItem(ctx, in interface{}, opts ...interface{}) *gomock.Call
GetMenuItem indicates an expected call of GetMenuItem.
func (*MockMenuServiceClientMockRecorder) ListMenuItems ¶
func (mr *MockMenuServiceClientMockRecorder) ListMenuItems(ctx, in interface{}, opts ...interface{}) *gomock.Call
ListMenuItems indicates an expected call of ListMenuItems.
type MockMenuServiceServer ¶
type MockMenuServiceServer struct {
// contains filtered or unexported fields
}
MockMenuServiceServer is a mock of MenuServiceServer interface.
func NewMockMenuServiceServer ¶
func NewMockMenuServiceServer(ctrl *gomock.Controller) *MockMenuServiceServer
NewMockMenuServiceServer creates a new mock instance.
func (*MockMenuServiceServer) AddMenuItem ¶
func (m *MockMenuServiceServer) AddMenuItem(ctx context.Context, in *AddMenuItemRequest) (*model.MenuItem, error)
AddMenuItem mocks base method.
func (*MockMenuServiceServer) EXPECT ¶
func (m *MockMenuServiceServer) EXPECT() *MockMenuServiceServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMenuServiceServer) GetMenuItem ¶
func (m *MockMenuServiceServer) GetMenuItem(ctx context.Context, in *GetMenuItemRequest) (*model.MenuItem, error)
GetMenuItem mocks base method.
func (*MockMenuServiceServer) ListMenuItems ¶
func (m *MockMenuServiceServer) ListMenuItems(blob *ListMenuItemsRequest, server MenuService_ListMenuItemsServer) error
ListMenuItems mocks base method.
type MockMenuServiceServerMockRecorder ¶
type MockMenuServiceServerMockRecorder struct {
// contains filtered or unexported fields
}
MockMenuServiceServerMockRecorder is the mock recorder for MockMenuServiceServer.
func (*MockMenuServiceServerMockRecorder) AddMenuItem ¶
func (mr *MockMenuServiceServerMockRecorder) AddMenuItem(ctx, in interface{}) *gomock.Call
AddMenuItem indicates an expected call of AddMenuItem.
func (*MockMenuServiceServerMockRecorder) GetMenuItem ¶
func (mr *MockMenuServiceServerMockRecorder) GetMenuItem(ctx, in interface{}) *gomock.Call
GetMenuItem indicates an expected call of GetMenuItem.
func (*MockMenuServiceServerMockRecorder) ListMenuItems ¶
func (mr *MockMenuServiceServerMockRecorder) ListMenuItems(blob, server interface{}) *gomock.Call
ListMenuItems indicates an expected call of ListMenuItems.
type MockMenuService_ListMenuItemsClient ¶
type MockMenuService_ListMenuItemsClient struct {
// contains filtered or unexported fields
}
MockMenuService_ListMenuItemsClient is a mock of MenuService_ListMenuItemsClient interface.
func NewMockMenuService_ListMenuItemsClient ¶
func NewMockMenuService_ListMenuItemsClient(ctrl *gomock.Controller) *MockMenuService_ListMenuItemsClient
NewMockMenuService_ListMenuItemsClient creates a new mock instance.
func (*MockMenuService_ListMenuItemsClient) CloseSend ¶
func (m *MockMenuService_ListMenuItemsClient) CloseSend() error
CloseSend mocks base method.
func (*MockMenuService_ListMenuItemsClient) Context ¶
func (m *MockMenuService_ListMenuItemsClient) Context() context.Context
Context mocks base method.
func (*MockMenuService_ListMenuItemsClient) EXPECT ¶
func (m *MockMenuService_ListMenuItemsClient) EXPECT() *MockMenuService_ListMenuItemsClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMenuService_ListMenuItemsClient) Header ¶
func (m *MockMenuService_ListMenuItemsClient) Header() (metadata.MD, error)
Header mocks base method.
func (*MockMenuService_ListMenuItemsClient) Recv ¶
func (m *MockMenuService_ListMenuItemsClient) Recv() (*model.MenuItem, error)
Recv mocks base method.
func (*MockMenuService_ListMenuItemsClient) RecvMsg ¶
func (m *MockMenuService_ListMenuItemsClient) RecvMsg(arg0 interface{}) error
RecvMsg mocks base method.
func (*MockMenuService_ListMenuItemsClient) SendMsg ¶
func (m *MockMenuService_ListMenuItemsClient) SendMsg(arg0 interface{}) error
SendMsg mocks base method.
func (*MockMenuService_ListMenuItemsClient) Trailer ¶
func (m *MockMenuService_ListMenuItemsClient) Trailer() metadata.MD
Trailer mocks base method.
type MockMenuService_ListMenuItemsClientMockRecorder ¶
type MockMenuService_ListMenuItemsClientMockRecorder struct {
// contains filtered or unexported fields
}
MockMenuService_ListMenuItemsClientMockRecorder is the mock recorder for MockMenuService_ListMenuItemsClient.
func (*MockMenuService_ListMenuItemsClientMockRecorder) CloseSend ¶
func (mr *MockMenuService_ListMenuItemsClientMockRecorder) CloseSend() *gomock.Call
CloseSend indicates an expected call of CloseSend.
func (*MockMenuService_ListMenuItemsClientMockRecorder) Context ¶
func (mr *MockMenuService_ListMenuItemsClientMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockMenuService_ListMenuItemsClientMockRecorder) Header ¶
func (mr *MockMenuService_ListMenuItemsClientMockRecorder) Header() *gomock.Call
Header indicates an expected call of Header.
func (*MockMenuService_ListMenuItemsClientMockRecorder) Recv ¶
func (mr *MockMenuService_ListMenuItemsClientMockRecorder) Recv() *gomock.Call
Recv indicates an expected call of Recv.
func (*MockMenuService_ListMenuItemsClientMockRecorder) RecvMsg ¶
func (mr *MockMenuService_ListMenuItemsClientMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call
RecvMsg indicates an expected call of RecvMsg.
func (*MockMenuService_ListMenuItemsClientMockRecorder) SendMsg ¶
func (mr *MockMenuService_ListMenuItemsClientMockRecorder) SendMsg(arg0 interface{}) *gomock.Call
SendMsg indicates an expected call of SendMsg.
func (*MockMenuService_ListMenuItemsClientMockRecorder) Trailer ¶
func (mr *MockMenuService_ListMenuItemsClientMockRecorder) Trailer() *gomock.Call
Trailer indicates an expected call of Trailer.
type MockMenuService_ListMenuItemsServer ¶
type MockMenuService_ListMenuItemsServer struct {
// contains filtered or unexported fields
}
MockMenuService_ListMenuItemsServer is a mock of MenuService_ListMenuItemsServer interface.
func NewMockMenuService_ListMenuItemsServer ¶
func NewMockMenuService_ListMenuItemsServer(ctrl *gomock.Controller) *MockMenuService_ListMenuItemsServer
NewMockMenuService_ListMenuItemsServer creates a new mock instance.
func (*MockMenuService_ListMenuItemsServer) Context ¶
func (m *MockMenuService_ListMenuItemsServer) Context() context.Context
Context mocks base method.
func (*MockMenuService_ListMenuItemsServer) EXPECT ¶
func (m *MockMenuService_ListMenuItemsServer) EXPECT() *MockMenuService_ListMenuItemsServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMenuService_ListMenuItemsServer) RecvMsg ¶
func (m *MockMenuService_ListMenuItemsServer) RecvMsg(arg0 interface{}) error
RecvMsg mocks base method.
func (*MockMenuService_ListMenuItemsServer) Send ¶
func (m *MockMenuService_ListMenuItemsServer) Send(arg0 *model.MenuItem) error
Send mocks base method.
func (*MockMenuService_ListMenuItemsServer) SendHeader ¶
func (m *MockMenuService_ListMenuItemsServer) SendHeader(arg0 metadata.MD) error
SendHeader mocks base method.
func (*MockMenuService_ListMenuItemsServer) SendMsg ¶
func (m *MockMenuService_ListMenuItemsServer) SendMsg(arg0 interface{}) error
SendMsg mocks base method.
func (*MockMenuService_ListMenuItemsServer) SetHeader ¶
func (m *MockMenuService_ListMenuItemsServer) SetHeader(arg0 metadata.MD) error
SetHeader mocks base method.
func (*MockMenuService_ListMenuItemsServer) SetTrailer ¶
func (m *MockMenuService_ListMenuItemsServer) SetTrailer(arg0 metadata.MD)
SetTrailer mocks base method.
type MockMenuService_ListMenuItemsServerMockRecorder ¶
type MockMenuService_ListMenuItemsServerMockRecorder struct {
// contains filtered or unexported fields
}
MockMenuService_ListMenuItemsServerMockRecorder is the mock recorder for MockMenuService_ListMenuItemsServer.
func (*MockMenuService_ListMenuItemsServerMockRecorder) Context ¶
func (mr *MockMenuService_ListMenuItemsServerMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockMenuService_ListMenuItemsServerMockRecorder) RecvMsg ¶
func (mr *MockMenuService_ListMenuItemsServerMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call
RecvMsg indicates an expected call of RecvMsg.
func (*MockMenuService_ListMenuItemsServerMockRecorder) Send ¶
func (mr *MockMenuService_ListMenuItemsServerMockRecorder) Send(arg0 interface{}) *gomock.Call
Send indicates an expected call of Send.
func (*MockMenuService_ListMenuItemsServerMockRecorder) SendHeader ¶
func (mr *MockMenuService_ListMenuItemsServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call
SendHeader indicates an expected call of SendHeader.
func (*MockMenuService_ListMenuItemsServerMockRecorder) SendMsg ¶
func (mr *MockMenuService_ListMenuItemsServerMockRecorder) SendMsg(arg0 interface{}) *gomock.Call
SendMsg indicates an expected call of SendMsg.
func (*MockMenuService_ListMenuItemsServerMockRecorder) SetHeader ¶
func (mr *MockMenuService_ListMenuItemsServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call
SetHeader indicates an expected call of SetHeader.
func (*MockMenuService_ListMenuItemsServerMockRecorder) SetTrailer ¶
func (mr *MockMenuService_ListMenuItemsServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call
SetTrailer indicates an expected call of SetTrailer.
type MockRestaurantServiceClient ¶
type MockRestaurantServiceClient struct {
// contains filtered or unexported fields
}
MockRestaurantServiceClient is a mock of RestaurantServiceClient interface.
func NewMockRestaurantServiceClient ¶
func NewMockRestaurantServiceClient(ctrl *gomock.Controller) *MockRestaurantServiceClient
NewMockRestaurantServiceClient creates a new mock instance.
func (*MockRestaurantServiceClient) CreateRestaurant ¶
func (m *MockRestaurantServiceClient) CreateRestaurant(ctx context.Context, in *CreateRestaurantRequest, opts ...grpc.CallOption) (*model.Restaurant, error)
CreateRestaurant mocks base method.
func (*MockRestaurantServiceClient) EXPECT ¶
func (m *MockRestaurantServiceClient) EXPECT() *MockRestaurantServiceClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRestaurantServiceClient) GetRestaurant ¶
func (m *MockRestaurantServiceClient) GetRestaurant(ctx context.Context, in *GetRestaurantRequest, opts ...grpc.CallOption) (*model.Restaurant, error)
GetRestaurant mocks base method.
func (*MockRestaurantServiceClient) ListOrders ¶
func (m *MockRestaurantServiceClient) ListOrders(ctx context.Context, in *ListOrdersRequest, opts ...grpc.CallOption) (RestaurantService_ListOrdersClient, error)
ListOrders mocks base method.
func (*MockRestaurantServiceClient) ListRestaurants ¶
func (m *MockRestaurantServiceClient) ListRestaurants(ctx context.Context, in *ListRestaurantsRequest, opts ...grpc.CallOption) (RestaurantService_ListRestaurantsClient, error)
ListRestaurants mocks base method.
func (*MockRestaurantServiceClient) ListRestaurantsNonStream ¶
func (m *MockRestaurantServiceClient) ListRestaurantsNonStream(ctx context.Context, in *ListRestaurantsRequest, opts ...grpc.CallOption) (*ListRestaurantsResponse, error)
ListRestaurantsNonStream mocks base method.
func (*MockRestaurantServiceClient) PlaceOrder ¶
func (m *MockRestaurantServiceClient) PlaceOrder(ctx context.Context, in *PlaceOrderRequest, opts ...grpc.CallOption) (*PlaceOrderResponse, error)
PlaceOrder mocks base method.
type MockRestaurantServiceClientMockRecorder ¶
type MockRestaurantServiceClientMockRecorder struct {
// contains filtered or unexported fields
}
MockRestaurantServiceClientMockRecorder is the mock recorder for MockRestaurantServiceClient.
func (*MockRestaurantServiceClientMockRecorder) CreateRestaurant ¶
func (mr *MockRestaurantServiceClientMockRecorder) CreateRestaurant(ctx, in interface{}, opts ...interface{}) *gomock.Call
CreateRestaurant indicates an expected call of CreateRestaurant.
func (*MockRestaurantServiceClientMockRecorder) GetRestaurant ¶
func (mr *MockRestaurantServiceClientMockRecorder) GetRestaurant(ctx, in interface{}, opts ...interface{}) *gomock.Call
GetRestaurant indicates an expected call of GetRestaurant.
func (*MockRestaurantServiceClientMockRecorder) ListOrders ¶
func (mr *MockRestaurantServiceClientMockRecorder) ListOrders(ctx, in interface{}, opts ...interface{}) *gomock.Call
ListOrders indicates an expected call of ListOrders.
func (*MockRestaurantServiceClientMockRecorder) ListRestaurants ¶
func (mr *MockRestaurantServiceClientMockRecorder) ListRestaurants(ctx, in interface{}, opts ...interface{}) *gomock.Call
ListRestaurants indicates an expected call of ListRestaurants.
func (*MockRestaurantServiceClientMockRecorder) ListRestaurantsNonStream ¶
func (mr *MockRestaurantServiceClientMockRecorder) ListRestaurantsNonStream(ctx, in interface{}, opts ...interface{}) *gomock.Call
ListRestaurantsNonStream indicates an expected call of ListRestaurantsNonStream.
func (*MockRestaurantServiceClientMockRecorder) PlaceOrder ¶
func (mr *MockRestaurantServiceClientMockRecorder) PlaceOrder(ctx, in interface{}, opts ...interface{}) *gomock.Call
PlaceOrder indicates an expected call of PlaceOrder.
type MockRestaurantServiceServer ¶
type MockRestaurantServiceServer struct {
// contains filtered or unexported fields
}
MockRestaurantServiceServer is a mock of RestaurantServiceServer interface.
func NewMockRestaurantServiceServer ¶
func NewMockRestaurantServiceServer(ctrl *gomock.Controller) *MockRestaurantServiceServer
NewMockRestaurantServiceServer creates a new mock instance.
func (*MockRestaurantServiceServer) CreateRestaurant ¶
func (m *MockRestaurantServiceServer) CreateRestaurant(ctx context.Context, in *CreateRestaurantRequest) (*model.Restaurant, error)
CreateRestaurant mocks base method.
func (*MockRestaurantServiceServer) EXPECT ¶
func (m *MockRestaurantServiceServer) EXPECT() *MockRestaurantServiceServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRestaurantServiceServer) GetRestaurant ¶
func (m *MockRestaurantServiceServer) GetRestaurant(ctx context.Context, in *GetRestaurantRequest) (*model.Restaurant, error)
GetRestaurant mocks base method.
func (*MockRestaurantServiceServer) ListOrders ¶
func (m *MockRestaurantServiceServer) ListOrders(blob *ListOrdersRequest, server RestaurantService_ListOrdersServer) error
ListOrders mocks base method.
func (*MockRestaurantServiceServer) ListRestaurants ¶
func (m *MockRestaurantServiceServer) ListRestaurants(blob *ListRestaurantsRequest, server RestaurantService_ListRestaurantsServer) error
ListRestaurants mocks base method.
func (*MockRestaurantServiceServer) ListRestaurantsNonStream ¶
func (m *MockRestaurantServiceServer) ListRestaurantsNonStream(ctx context.Context, in *ListRestaurantsRequest) (*ListRestaurantsResponse, error)
ListRestaurantsNonStream mocks base method.
func (*MockRestaurantServiceServer) PlaceOrder ¶
func (m *MockRestaurantServiceServer) PlaceOrder(ctx context.Context, in *PlaceOrderRequest) (*PlaceOrderResponse, error)
PlaceOrder mocks base method.
type MockRestaurantServiceServerMockRecorder ¶
type MockRestaurantServiceServerMockRecorder struct {
// contains filtered or unexported fields
}
MockRestaurantServiceServerMockRecorder is the mock recorder for MockRestaurantServiceServer.
func (*MockRestaurantServiceServerMockRecorder) CreateRestaurant ¶
func (mr *MockRestaurantServiceServerMockRecorder) CreateRestaurant(ctx, in interface{}) *gomock.Call
CreateRestaurant indicates an expected call of CreateRestaurant.
func (*MockRestaurantServiceServerMockRecorder) GetRestaurant ¶
func (mr *MockRestaurantServiceServerMockRecorder) GetRestaurant(ctx, in interface{}) *gomock.Call
GetRestaurant indicates an expected call of GetRestaurant.
func (*MockRestaurantServiceServerMockRecorder) ListOrders ¶
func (mr *MockRestaurantServiceServerMockRecorder) ListOrders(blob, server interface{}) *gomock.Call
ListOrders indicates an expected call of ListOrders.
func (*MockRestaurantServiceServerMockRecorder) ListRestaurants ¶
func (mr *MockRestaurantServiceServerMockRecorder) ListRestaurants(blob, server interface{}) *gomock.Call
ListRestaurants indicates an expected call of ListRestaurants.
func (*MockRestaurantServiceServerMockRecorder) ListRestaurantsNonStream ¶
func (mr *MockRestaurantServiceServerMockRecorder) ListRestaurantsNonStream(ctx, in interface{}) *gomock.Call
ListRestaurantsNonStream indicates an expected call of ListRestaurantsNonStream.
func (*MockRestaurantServiceServerMockRecorder) PlaceOrder ¶
func (mr *MockRestaurantServiceServerMockRecorder) PlaceOrder(ctx, in interface{}) *gomock.Call
PlaceOrder indicates an expected call of PlaceOrder.
type MockRestaurantService_ListOrdersClient ¶
type MockRestaurantService_ListOrdersClient struct {
// contains filtered or unexported fields
}
MockRestaurantService_ListOrdersClient is a mock of RestaurantService_ListOrdersClient interface.
func NewMockRestaurantService_ListOrdersClient ¶
func NewMockRestaurantService_ListOrdersClient(ctrl *gomock.Controller) *MockRestaurantService_ListOrdersClient
NewMockRestaurantService_ListOrdersClient creates a new mock instance.
func (*MockRestaurantService_ListOrdersClient) CloseSend ¶
func (m *MockRestaurantService_ListOrdersClient) CloseSend() error
CloseSend mocks base method.
func (*MockRestaurantService_ListOrdersClient) Context ¶
func (m *MockRestaurantService_ListOrdersClient) Context() context.Context
Context mocks base method.
func (*MockRestaurantService_ListOrdersClient) EXPECT ¶
func (m *MockRestaurantService_ListOrdersClient) EXPECT() *MockRestaurantService_ListOrdersClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRestaurantService_ListOrdersClient) Header ¶
func (m *MockRestaurantService_ListOrdersClient) Header() (metadata.MD, error)
Header mocks base method.
func (*MockRestaurantService_ListOrdersClient) Recv ¶
func (m *MockRestaurantService_ListOrdersClient) Recv() (*model.Order, error)
Recv mocks base method.
func (*MockRestaurantService_ListOrdersClient) RecvMsg ¶
func (m *MockRestaurantService_ListOrdersClient) RecvMsg(arg0 interface{}) error
RecvMsg mocks base method.
func (*MockRestaurantService_ListOrdersClient) SendMsg ¶
func (m *MockRestaurantService_ListOrdersClient) SendMsg(arg0 interface{}) error
SendMsg mocks base method.
func (*MockRestaurantService_ListOrdersClient) Trailer ¶
func (m *MockRestaurantService_ListOrdersClient) Trailer() metadata.MD
Trailer mocks base method.
type MockRestaurantService_ListOrdersClientMockRecorder ¶
type MockRestaurantService_ListOrdersClientMockRecorder struct {
// contains filtered or unexported fields
}
MockRestaurantService_ListOrdersClientMockRecorder is the mock recorder for MockRestaurantService_ListOrdersClient.
func (*MockRestaurantService_ListOrdersClientMockRecorder) CloseSend ¶
func (mr *MockRestaurantService_ListOrdersClientMockRecorder) CloseSend() *gomock.Call
CloseSend indicates an expected call of CloseSend.
func (*MockRestaurantService_ListOrdersClientMockRecorder) Context ¶
func (mr *MockRestaurantService_ListOrdersClientMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockRestaurantService_ListOrdersClientMockRecorder) Header ¶
func (mr *MockRestaurantService_ListOrdersClientMockRecorder) Header() *gomock.Call
Header indicates an expected call of Header.
func (*MockRestaurantService_ListOrdersClientMockRecorder) Recv ¶
func (mr *MockRestaurantService_ListOrdersClientMockRecorder) Recv() *gomock.Call
Recv indicates an expected call of Recv.
func (*MockRestaurantService_ListOrdersClientMockRecorder) RecvMsg ¶
func (mr *MockRestaurantService_ListOrdersClientMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call
RecvMsg indicates an expected call of RecvMsg.
func (*MockRestaurantService_ListOrdersClientMockRecorder) SendMsg ¶
func (mr *MockRestaurantService_ListOrdersClientMockRecorder) SendMsg(arg0 interface{}) *gomock.Call
SendMsg indicates an expected call of SendMsg.
func (*MockRestaurantService_ListOrdersClientMockRecorder) Trailer ¶
func (mr *MockRestaurantService_ListOrdersClientMockRecorder) Trailer() *gomock.Call
Trailer indicates an expected call of Trailer.
type MockRestaurantService_ListOrdersServer ¶
type MockRestaurantService_ListOrdersServer struct {
// contains filtered or unexported fields
}
MockRestaurantService_ListOrdersServer is a mock of RestaurantService_ListOrdersServer interface.
func NewMockRestaurantService_ListOrdersServer ¶
func NewMockRestaurantService_ListOrdersServer(ctrl *gomock.Controller) *MockRestaurantService_ListOrdersServer
NewMockRestaurantService_ListOrdersServer creates a new mock instance.
func (*MockRestaurantService_ListOrdersServer) Context ¶
func (m *MockRestaurantService_ListOrdersServer) Context() context.Context
Context mocks base method.
func (*MockRestaurantService_ListOrdersServer) EXPECT ¶
func (m *MockRestaurantService_ListOrdersServer) EXPECT() *MockRestaurantService_ListOrdersServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRestaurantService_ListOrdersServer) RecvMsg ¶
func (m *MockRestaurantService_ListOrdersServer) RecvMsg(arg0 interface{}) error
RecvMsg mocks base method.
func (*MockRestaurantService_ListOrdersServer) Send ¶
func (m *MockRestaurantService_ListOrdersServer) Send(arg0 *model.Order) error
Send mocks base method.
func (*MockRestaurantService_ListOrdersServer) SendHeader ¶
func (m *MockRestaurantService_ListOrdersServer) SendHeader(arg0 metadata.MD) error
SendHeader mocks base method.
func (*MockRestaurantService_ListOrdersServer) SendMsg ¶
func (m *MockRestaurantService_ListOrdersServer) SendMsg(arg0 interface{}) error
SendMsg mocks base method.
func (*MockRestaurantService_ListOrdersServer) SetHeader ¶
func (m *MockRestaurantService_ListOrdersServer) SetHeader(arg0 metadata.MD) error
SetHeader mocks base method.
func (*MockRestaurantService_ListOrdersServer) SetTrailer ¶
func (m *MockRestaurantService_ListOrdersServer) SetTrailer(arg0 metadata.MD)
SetTrailer mocks base method.
type MockRestaurantService_ListOrdersServerMockRecorder ¶
type MockRestaurantService_ListOrdersServerMockRecorder struct {
// contains filtered or unexported fields
}
MockRestaurantService_ListOrdersServerMockRecorder is the mock recorder for MockRestaurantService_ListOrdersServer.
func (*MockRestaurantService_ListOrdersServerMockRecorder) Context ¶
func (mr *MockRestaurantService_ListOrdersServerMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockRestaurantService_ListOrdersServerMockRecorder) RecvMsg ¶
func (mr *MockRestaurantService_ListOrdersServerMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call
RecvMsg indicates an expected call of RecvMsg.
func (*MockRestaurantService_ListOrdersServerMockRecorder) Send ¶
func (mr *MockRestaurantService_ListOrdersServerMockRecorder) Send(arg0 interface{}) *gomock.Call
Send indicates an expected call of Send.
func (*MockRestaurantService_ListOrdersServerMockRecorder) SendHeader ¶
func (mr *MockRestaurantService_ListOrdersServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call
SendHeader indicates an expected call of SendHeader.
func (*MockRestaurantService_ListOrdersServerMockRecorder) SendMsg ¶
func (mr *MockRestaurantService_ListOrdersServerMockRecorder) SendMsg(arg0 interface{}) *gomock.Call
SendMsg indicates an expected call of SendMsg.
func (*MockRestaurantService_ListOrdersServerMockRecorder) SetHeader ¶
func (mr *MockRestaurantService_ListOrdersServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call
SetHeader indicates an expected call of SetHeader.
func (*MockRestaurantService_ListOrdersServerMockRecorder) SetTrailer ¶
func (mr *MockRestaurantService_ListOrdersServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call
SetTrailer indicates an expected call of SetTrailer.
type MockRestaurantService_ListRestaurantsClient ¶
type MockRestaurantService_ListRestaurantsClient struct {
// contains filtered or unexported fields
}
MockRestaurantService_ListRestaurantsClient is a mock of RestaurantService_ListRestaurantsClient interface.
func NewMockRestaurantService_ListRestaurantsClient ¶
func NewMockRestaurantService_ListRestaurantsClient(ctrl *gomock.Controller) *MockRestaurantService_ListRestaurantsClient
NewMockRestaurantService_ListRestaurantsClient creates a new mock instance.
func (*MockRestaurantService_ListRestaurantsClient) CloseSend ¶
func (m *MockRestaurantService_ListRestaurantsClient) CloseSend() error
CloseSend mocks base method.
func (*MockRestaurantService_ListRestaurantsClient) Context ¶
func (m *MockRestaurantService_ListRestaurantsClient) Context() context.Context
Context mocks base method.
func (*MockRestaurantService_ListRestaurantsClient) EXPECT ¶
func (m *MockRestaurantService_ListRestaurantsClient) EXPECT() *MockRestaurantService_ListRestaurantsClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRestaurantService_ListRestaurantsClient) Header ¶
func (m *MockRestaurantService_ListRestaurantsClient) Header() (metadata.MD, error)
Header mocks base method.
func (*MockRestaurantService_ListRestaurantsClient) Recv ¶
func (m *MockRestaurantService_ListRestaurantsClient) Recv() (*model.Restaurant, error)
Recv mocks base method.
func (*MockRestaurantService_ListRestaurantsClient) RecvMsg ¶
func (m *MockRestaurantService_ListRestaurantsClient) RecvMsg(arg0 interface{}) error
RecvMsg mocks base method.
func (*MockRestaurantService_ListRestaurantsClient) SendMsg ¶
func (m *MockRestaurantService_ListRestaurantsClient) SendMsg(arg0 interface{}) error
SendMsg mocks base method.
func (*MockRestaurantService_ListRestaurantsClient) Trailer ¶
func (m *MockRestaurantService_ListRestaurantsClient) Trailer() metadata.MD
Trailer mocks base method.
type MockRestaurantService_ListRestaurantsClientMockRecorder ¶
type MockRestaurantService_ListRestaurantsClientMockRecorder struct {
// contains filtered or unexported fields
}
MockRestaurantService_ListRestaurantsClientMockRecorder is the mock recorder for MockRestaurantService_ListRestaurantsClient.
func (*MockRestaurantService_ListRestaurantsClientMockRecorder) CloseSend ¶
func (mr *MockRestaurantService_ListRestaurantsClientMockRecorder) CloseSend() *gomock.Call
CloseSend indicates an expected call of CloseSend.
func (*MockRestaurantService_ListRestaurantsClientMockRecorder) Context ¶
func (mr *MockRestaurantService_ListRestaurantsClientMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockRestaurantService_ListRestaurantsClientMockRecorder) Header ¶
func (mr *MockRestaurantService_ListRestaurantsClientMockRecorder) Header() *gomock.Call
Header indicates an expected call of Header.
func (*MockRestaurantService_ListRestaurantsClientMockRecorder) Recv ¶
func (mr *MockRestaurantService_ListRestaurantsClientMockRecorder) Recv() *gomock.Call
Recv indicates an expected call of Recv.
func (*MockRestaurantService_ListRestaurantsClientMockRecorder) RecvMsg ¶
func (mr *MockRestaurantService_ListRestaurantsClientMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call
RecvMsg indicates an expected call of RecvMsg.
func (*MockRestaurantService_ListRestaurantsClientMockRecorder) SendMsg ¶
func (mr *MockRestaurantService_ListRestaurantsClientMockRecorder) SendMsg(arg0 interface{}) *gomock.Call
SendMsg indicates an expected call of SendMsg.
func (*MockRestaurantService_ListRestaurantsClientMockRecorder) Trailer ¶
func (mr *MockRestaurantService_ListRestaurantsClientMockRecorder) Trailer() *gomock.Call
Trailer indicates an expected call of Trailer.
type MockRestaurantService_ListRestaurantsServer ¶
type MockRestaurantService_ListRestaurantsServer struct {
// contains filtered or unexported fields
}
MockRestaurantService_ListRestaurantsServer is a mock of RestaurantService_ListRestaurantsServer interface.
func NewMockRestaurantService_ListRestaurantsServer ¶
func NewMockRestaurantService_ListRestaurantsServer(ctrl *gomock.Controller) *MockRestaurantService_ListRestaurantsServer
NewMockRestaurantService_ListRestaurantsServer creates a new mock instance.
func (*MockRestaurantService_ListRestaurantsServer) Context ¶
func (m *MockRestaurantService_ListRestaurantsServer) Context() context.Context
Context mocks base method.
func (*MockRestaurantService_ListRestaurantsServer) EXPECT ¶
func (m *MockRestaurantService_ListRestaurantsServer) EXPECT() *MockRestaurantService_ListRestaurantsServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRestaurantService_ListRestaurantsServer) RecvMsg ¶
func (m *MockRestaurantService_ListRestaurantsServer) RecvMsg(arg0 interface{}) error
RecvMsg mocks base method.
func (*MockRestaurantService_ListRestaurantsServer) Send ¶
func (m *MockRestaurantService_ListRestaurantsServer) Send(arg0 *model.Restaurant) error
Send mocks base method.
func (*MockRestaurantService_ListRestaurantsServer) SendHeader ¶
func (m *MockRestaurantService_ListRestaurantsServer) SendHeader(arg0 metadata.MD) error
SendHeader mocks base method.
func (*MockRestaurantService_ListRestaurantsServer) SendMsg ¶
func (m *MockRestaurantService_ListRestaurantsServer) SendMsg(arg0 interface{}) error
SendMsg mocks base method.
func (*MockRestaurantService_ListRestaurantsServer) SetHeader ¶
func (m *MockRestaurantService_ListRestaurantsServer) SetHeader(arg0 metadata.MD) error
SetHeader mocks base method.
func (*MockRestaurantService_ListRestaurantsServer) SetTrailer ¶
func (m *MockRestaurantService_ListRestaurantsServer) SetTrailer(arg0 metadata.MD)
SetTrailer mocks base method.
type MockRestaurantService_ListRestaurantsServerMockRecorder ¶
type MockRestaurantService_ListRestaurantsServerMockRecorder struct {
// contains filtered or unexported fields
}
MockRestaurantService_ListRestaurantsServerMockRecorder is the mock recorder for MockRestaurantService_ListRestaurantsServer.
func (*MockRestaurantService_ListRestaurantsServerMockRecorder) Context ¶
func (mr *MockRestaurantService_ListRestaurantsServerMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockRestaurantService_ListRestaurantsServerMockRecorder) RecvMsg ¶
func (mr *MockRestaurantService_ListRestaurantsServerMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call
RecvMsg indicates an expected call of RecvMsg.
func (*MockRestaurantService_ListRestaurantsServerMockRecorder) Send ¶
func (mr *MockRestaurantService_ListRestaurantsServerMockRecorder) Send(arg0 interface{}) *gomock.Call
Send indicates an expected call of Send.
func (*MockRestaurantService_ListRestaurantsServerMockRecorder) SendHeader ¶
func (mr *MockRestaurantService_ListRestaurantsServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call
SendHeader indicates an expected call of SendHeader.
func (*MockRestaurantService_ListRestaurantsServerMockRecorder) SendMsg ¶
func (mr *MockRestaurantService_ListRestaurantsServerMockRecorder) SendMsg(arg0 interface{}) *gomock.Call
SendMsg indicates an expected call of SendMsg.
func (*MockRestaurantService_ListRestaurantsServerMockRecorder) SetHeader ¶
func (mr *MockRestaurantService_ListRestaurantsServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call
SetHeader indicates an expected call of SetHeader.
func (*MockRestaurantService_ListRestaurantsServerMockRecorder) SetTrailer ¶
func (mr *MockRestaurantService_ListRestaurantsServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call
SetTrailer indicates an expected call of SetTrailer.
type PlaceOrderRequest ¶
type PlaceOrderRequest struct { // 餐廳ID RestaurantId string `protobuf:"bytes,1,opt,name=restaurant_id,json=restaurantId,proto3" json:"restaurant_id,omitempty"` // 客戶ID CustomerId string `protobuf:"bytes,2,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` // 訂單內容 Dishes []*model.Dish `protobuf:"bytes,3,rep,name=dishes,proto3" json:"dishes,omitempty"` // 訂單備註 Notes string `protobuf:"bytes,4,opt,name=notes,proto3" json:"notes,omitempty"` // contains filtered or unexported fields }
func (*PlaceOrderRequest) Descriptor
deprecated
func (*PlaceOrderRequest) Descriptor() ([]byte, []int)
Deprecated: Use PlaceOrderRequest.ProtoReflect.Descriptor instead.
func (*PlaceOrderRequest) GetCustomerId ¶
func (x *PlaceOrderRequest) GetCustomerId() string
func (*PlaceOrderRequest) GetDishes ¶
func (x *PlaceOrderRequest) GetDishes() []*model.Dish
func (*PlaceOrderRequest) GetNotes ¶
func (x *PlaceOrderRequest) GetNotes() string
func (*PlaceOrderRequest) GetRestaurantId ¶
func (x *PlaceOrderRequest) GetRestaurantId() 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 { // 訂單ID OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` // 訂單狀態 Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // 預計完成時間 EstimatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=estimated_at,json=estimatedAt,proto3" json:"estimated_at,omitempty"` // contains filtered or unexported fields }
func (*PlaceOrderResponse) Descriptor
deprecated
func (*PlaceOrderResponse) Descriptor() ([]byte, []int)
Deprecated: Use PlaceOrderResponse.ProtoReflect.Descriptor instead.
func (*PlaceOrderResponse) GetEstimatedAt ¶
func (x *PlaceOrderResponse) GetEstimatedAt() *timestamppb.Timestamp
func (*PlaceOrderResponse) GetOrderId ¶
func (x *PlaceOrderResponse) GetOrderId() string
func (*PlaceOrderResponse) GetStatus ¶
func (x *PlaceOrderResponse) GetStatus() string
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 RestaurantServiceClient ¶
type RestaurantServiceClient interface { CreateRestaurant(ctx context.Context, in *CreateRestaurantRequest, opts ...grpc.CallOption) (*model.Restaurant, error) ListRestaurants(ctx context.Context, in *ListRestaurantsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[model.Restaurant], error) GetRestaurant(ctx context.Context, in *GetRestaurantRequest, opts ...grpc.CallOption) (*model.Restaurant, error) ListRestaurantsNonStream(ctx context.Context, in *ListRestaurantsRequest, opts ...grpc.CallOption) (*ListRestaurantsResponse, error) PlaceOrder(ctx context.Context, in *PlaceOrderRequest, opts ...grpc.CallOption) (*PlaceOrderResponse, error) ListOrders(ctx context.Context, in *ListOrdersRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[model.Order], error) }
RestaurantServiceClient is the client API for RestaurantService 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 NewRestaurantServiceClient ¶
func NewRestaurantServiceClient(cc grpc.ClientConnInterface) RestaurantServiceClient
type RestaurantServiceServer ¶
type RestaurantServiceServer interface { CreateRestaurant(context.Context, *CreateRestaurantRequest) (*model.Restaurant, error) ListRestaurants(*ListRestaurantsRequest, grpc.ServerStreamingServer[model.Restaurant]) error GetRestaurant(context.Context, *GetRestaurantRequest) (*model.Restaurant, error) ListRestaurantsNonStream(context.Context, *ListRestaurantsRequest) (*ListRestaurantsResponse, error) PlaceOrder(context.Context, *PlaceOrderRequest) (*PlaceOrderResponse, error) ListOrders(*ListOrdersRequest, grpc.ServerStreamingServer[model.Order]) error }
RestaurantServiceServer is the server API for RestaurantService service. All implementations should embed UnimplementedRestaurantServiceServer for forward compatibility.
type RestaurantService_ListOrdersClient ¶
type RestaurantService_ListOrdersClient = grpc.ServerStreamingClient[model.Order]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type RestaurantService_ListOrdersServer ¶
type RestaurantService_ListOrdersServer = grpc.ServerStreamingServer[model.Order]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type RestaurantService_ListRestaurantsClient ¶
type RestaurantService_ListRestaurantsClient = grpc.ServerStreamingClient[model.Restaurant]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type RestaurantService_ListRestaurantsServer ¶
type RestaurantService_ListRestaurantsServer = grpc.ServerStreamingServer[model.Restaurant]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type UnimplementedMenuServiceServer ¶
type UnimplementedMenuServiceServer struct{}
UnimplementedMenuServiceServer should be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedMenuServiceServer) AddMenuItem ¶
func (UnimplementedMenuServiceServer) AddMenuItem(context.Context, *AddMenuItemRequest) (*model.MenuItem, error)
func (UnimplementedMenuServiceServer) GetMenuItem ¶
func (UnimplementedMenuServiceServer) GetMenuItem(context.Context, *GetMenuItemRequest) (*model.MenuItem, error)
func (UnimplementedMenuServiceServer) ListMenuItems ¶
func (UnimplementedMenuServiceServer) ListMenuItems(*ListMenuItemsRequest, grpc.ServerStreamingServer[model.MenuItem]) error
type UnimplementedRestaurantServiceServer ¶
type UnimplementedRestaurantServiceServer struct{}
UnimplementedRestaurantServiceServer should be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedRestaurantServiceServer) CreateRestaurant ¶
func (UnimplementedRestaurantServiceServer) CreateRestaurant(context.Context, *CreateRestaurantRequest) (*model.Restaurant, error)
func (UnimplementedRestaurantServiceServer) GetRestaurant ¶
func (UnimplementedRestaurantServiceServer) GetRestaurant(context.Context, *GetRestaurantRequest) (*model.Restaurant, error)
func (UnimplementedRestaurantServiceServer) ListOrders ¶
func (UnimplementedRestaurantServiceServer) ListOrders(*ListOrdersRequest, grpc.ServerStreamingServer[model.Order]) error
func (UnimplementedRestaurantServiceServer) ListRestaurants ¶
func (UnimplementedRestaurantServiceServer) ListRestaurants(*ListRestaurantsRequest, grpc.ServerStreamingServer[model.Restaurant]) error
func (UnimplementedRestaurantServiceServer) ListRestaurantsNonStream ¶
func (UnimplementedRestaurantServiceServer) ListRestaurantsNonStream(context.Context, *ListRestaurantsRequest) (*ListRestaurantsResponse, error)
func (UnimplementedRestaurantServiceServer) PlaceOrder ¶
func (UnimplementedRestaurantServiceServer) PlaceOrder(context.Context, *PlaceOrderRequest) (*PlaceOrderResponse, error)
type UnsafeMenuServiceServer ¶
type UnsafeMenuServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMenuServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MenuServiceServer will result in compilation errors.
type UnsafeRestaurantServiceServer ¶
type UnsafeRestaurantServiceServer interface {
// contains filtered or unexported methods
}
UnsafeRestaurantServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RestaurantServiceServer will result in compilation errors.