Documentation ¶
Index ¶
- Variables
- func RegisterMenuServiceServer(s *grpc.Server, srv MenuServiceServer)
- func RegisterOrderServiceServer(s *grpc.Server, srv OrderServiceServer)
- func RegisterPingServiceServer(s *grpc.Server, srv PingServiceServer)
- type CompleteOrderRequest
- func (*CompleteOrderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CompleteOrderRequest) GetId() int64
- func (*CompleteOrderRequest) ProtoMessage()
- func (x *CompleteOrderRequest) ProtoReflect() protoreflect.Message
- func (x *CompleteOrderRequest) Reset()
- func (x *CompleteOrderRequest) String() string
- type CreateMenuItemResponse
- func (*CreateMenuItemResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateMenuItemResponse) GetId() int64
- func (*CreateMenuItemResponse) ProtoMessage()
- func (x *CreateMenuItemResponse) ProtoReflect() protoreflect.Message
- func (x *CreateMenuItemResponse) Reset()
- func (x *CreateMenuItemResponse) String() string
- type DeleteMenuItemRequest
- func (*DeleteMenuItemRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteMenuItemRequest) GetId() int64
- func (*DeleteMenuItemRequest) ProtoMessage()
- func (x *DeleteMenuItemRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteMenuItemRequest) Reset()
- func (x *DeleteMenuItemRequest) String() string
- type Empty
- type Menu
- type MenuItem
- func (*MenuItem) Descriptor() ([]byte, []int)deprecated
- func (x *MenuItem) GetId() int64
- func (x *MenuItem) GetItemKindId() int64
- func (x *MenuItem) GetName() string
- func (x *MenuItem) GetPrice() int64
- func (*MenuItem) ProtoMessage()
- func (x *MenuItem) ProtoReflect() protoreflect.Message
- func (x *MenuItem) Reset()
- func (x *MenuItem) String() string
- type MenuItemKind
- func (*MenuItemKind) Descriptor() ([]byte, []int)deprecated
- func (x *MenuItemKind) GetId() int64
- func (x *MenuItemKind) GetItems() []*MenuItem
- func (x *MenuItemKind) GetName() string
- func (x *MenuItemKind) GetOptionKinds() []*MenuOptionKind
- func (*MenuItemKind) ProtoMessage()
- func (x *MenuItemKind) ProtoReflect() protoreflect.Message
- func (x *MenuItemKind) Reset()
- func (x *MenuItemKind) String() string
- type MenuOption
- func (*MenuOption) Descriptor() ([]byte, []int)deprecated
- func (x *MenuOption) GetId() int64
- func (x *MenuOption) GetName() string
- func (x *MenuOption) GetOptionKindId() int64
- func (x *MenuOption) GetPrice() int64
- func (*MenuOption) ProtoMessage()
- func (x *MenuOption) ProtoReflect() protoreflect.Message
- func (x *MenuOption) Reset()
- func (x *MenuOption) String() string
- type MenuOptionKind
- func (*MenuOptionKind) Descriptor() ([]byte, []int)deprecated
- func (x *MenuOptionKind) GetId() int64
- func (x *MenuOptionKind) GetItemKindId() int64
- func (x *MenuOptionKind) GetName() string
- func (x *MenuOptionKind) GetOptions() []*MenuOption
- func (*MenuOptionKind) ProtoMessage()
- func (x *MenuOptionKind) ProtoReflect() protoreflect.Message
- func (x *MenuOptionKind) Reset()
- func (x *MenuOptionKind) String() string
- type MenuServiceClient
- type MenuServiceServer
- type Order
- func (*Order) Descriptor() ([]byte, []int)deprecated
- func (x *Order) GetId() int64
- func (x *Order) GetItems() []*OrderItem
- func (x *Order) GetName() string
- func (x *Order) GetStatus() string
- func (x *Order) GetTimeComplete() string
- func (x *Order) GetTimeOrdered() string
- func (x *Order) GetTotal() int64
- func (*Order) ProtoMessage()
- func (x *Order) ProtoReflect() protoreflect.Message
- func (x *Order) Reset()
- func (x *Order) String() string
- type OrderItem
- func (*OrderItem) Descriptor() ([]byte, []int)deprecated
- func (x *OrderItem) GetItemId() int64
- func (x *OrderItem) GetOptions() []*OrderOption
- func (x *OrderItem) GetPrice() int64
- func (*OrderItem) ProtoMessage()
- func (x *OrderItem) ProtoReflect() protoreflect.Message
- func (x *OrderItem) Reset()
- func (x *OrderItem) String() string
- type OrderOption
- func (*OrderOption) Descriptor() ([]byte, []int)deprecated
- func (x *OrderOption) GetId() int64
- func (x *OrderOption) GetOptionId() int64
- func (x *OrderOption) GetOrderId() int64
- func (x *OrderOption) GetOrderItemId() int64
- func (x *OrderOption) GetPrice() int64
- func (*OrderOption) ProtoMessage()
- func (x *OrderOption) ProtoReflect() protoreflect.Message
- func (x *OrderOption) Reset()
- func (x *OrderOption) String() string
- type OrderServiceClient
- type OrderServiceServer
- type OrderService_SubscribeToOrdersClient
- type OrderService_SubscribeToOrdersServer
- type OrdersRequest
- type OrdersResponse
- type Ping
- type PingServiceClient
- type PingServiceServer
- type Pong
- type Response
- type UnimplementedMenuServiceServer
- func (*UnimplementedMenuServiceServer) CreateMenuItem(context.Context, *MenuItem) (*CreateMenuItemResponse, error)
- func (*UnimplementedMenuServiceServer) CreateMenuItemOption(context.Context, *MenuOption) (*Response, error)
- func (*UnimplementedMenuServiceServer) DeleteMenuItem(context.Context, *DeleteMenuItemRequest) (*Response, error)
- func (*UnimplementedMenuServiceServer) GetMenu(context.Context, *Empty) (*Menu, error)
- func (*UnimplementedMenuServiceServer) UpdateMenuItem(context.Context, *MenuItem) (*Response, error)
- type UnimplementedOrderServiceServer
- func (*UnimplementedOrderServiceServer) ActiveOrders(context.Context, *Empty) (*OrdersResponse, error)
- func (*UnimplementedOrderServiceServer) CompleteOrder(context.Context, *CompleteOrderRequest) (*Response, error)
- func (*UnimplementedOrderServiceServer) SubmitOrder(context.Context, *Order) (*Response, error)
- func (*UnimplementedOrderServiceServer) SubscribeToOrders(*Empty, OrderService_SubscribeToOrdersServer) error
- type UnimplementedPingServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_schema_tos_proto protoreflect.FileDescriptor
Functions ¶
func RegisterMenuServiceServer ¶
func RegisterMenuServiceServer(s *grpc.Server, srv MenuServiceServer)
func RegisterOrderServiceServer ¶
func RegisterOrderServiceServer(s *grpc.Server, srv OrderServiceServer)
func RegisterPingServiceServer ¶
func RegisterPingServiceServer(s *grpc.Server, srv PingServiceServer)
Types ¶
type CompleteOrderRequest ¶
type CompleteOrderRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CompleteOrderRequest) Descriptor
deprecated
func (*CompleteOrderRequest) Descriptor() ([]byte, []int)
Deprecated: Use CompleteOrderRequest.ProtoReflect.Descriptor instead.
func (*CompleteOrderRequest) GetId ¶
func (x *CompleteOrderRequest) GetId() int64
func (*CompleteOrderRequest) ProtoMessage ¶
func (*CompleteOrderRequest) ProtoMessage()
func (*CompleteOrderRequest) ProtoReflect ¶
func (x *CompleteOrderRequest) ProtoReflect() protoreflect.Message
func (*CompleteOrderRequest) Reset ¶
func (x *CompleteOrderRequest) Reset()
func (*CompleteOrderRequest) String ¶
func (x *CompleteOrderRequest) String() string
type CreateMenuItemResponse ¶
type CreateMenuItemResponse struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreateMenuItemResponse) Descriptor
deprecated
func (*CreateMenuItemResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateMenuItemResponse.ProtoReflect.Descriptor instead.
func (*CreateMenuItemResponse) GetId ¶
func (x *CreateMenuItemResponse) GetId() int64
func (*CreateMenuItemResponse) ProtoMessage ¶
func (*CreateMenuItemResponse) ProtoMessage()
func (*CreateMenuItemResponse) ProtoReflect ¶
func (x *CreateMenuItemResponse) ProtoReflect() protoreflect.Message
func (*CreateMenuItemResponse) Reset ¶
func (x *CreateMenuItemResponse) Reset()
func (*CreateMenuItemResponse) String ¶
func (x *CreateMenuItemResponse) String() string
type DeleteMenuItemRequest ¶
type DeleteMenuItemRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteMenuItemRequest) Descriptor
deprecated
func (*DeleteMenuItemRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteMenuItemRequest.ProtoReflect.Descriptor instead.
func (*DeleteMenuItemRequest) GetId ¶
func (x *DeleteMenuItemRequest) GetId() int64
func (*DeleteMenuItemRequest) ProtoMessage ¶
func (*DeleteMenuItemRequest) ProtoMessage()
func (*DeleteMenuItemRequest) ProtoReflect ¶
func (x *DeleteMenuItemRequest) ProtoReflect() protoreflect.Message
func (*DeleteMenuItemRequest) Reset ¶
func (x *DeleteMenuItemRequest) Reset()
func (*DeleteMenuItemRequest) String ¶
func (x *DeleteMenuItemRequest) String() string
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type Menu ¶
type Menu struct { ItemKinds []*MenuItemKind `protobuf:"bytes,1,rep,name=item_kinds,json=itemKinds,proto3" json:"item_kinds,omitempty"` // contains filtered or unexported fields }
func (*Menu) Descriptor
deprecated
func (*Menu) GetItemKinds ¶
func (x *Menu) GetItemKinds() []*MenuItemKind
func (*Menu) ProtoMessage ¶
func (*Menu) ProtoMessage()
func (*Menu) ProtoReflect ¶
func (x *Menu) ProtoReflect() protoreflect.Message
type MenuItem ¶
type MenuItem struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Price int64 `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"` ItemKindId int64 `protobuf:"varint,4,opt,name=item_kind_id,json=itemKindId,proto3" json:"item_kind_id,omitempty"` // contains filtered or unexported fields }
func (*MenuItem) Descriptor
deprecated
func (*MenuItem) GetItemKindId ¶
func (*MenuItem) ProtoMessage ¶
func (*MenuItem) ProtoMessage()
func (*MenuItem) ProtoReflect ¶
func (x *MenuItem) ProtoReflect() protoreflect.Message
type MenuItemKind ¶
type MenuItemKind struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Items []*MenuItem `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"` OptionKinds []*MenuOptionKind `protobuf:"bytes,4,rep,name=option_kinds,json=optionKinds,proto3" json:"option_kinds,omitempty"` // contains filtered or unexported fields }
func (*MenuItemKind) Descriptor
deprecated
func (*MenuItemKind) Descriptor() ([]byte, []int)
Deprecated: Use MenuItemKind.ProtoReflect.Descriptor instead.
func (*MenuItemKind) GetId ¶
func (x *MenuItemKind) GetId() int64
func (*MenuItemKind) GetItems ¶
func (x *MenuItemKind) GetItems() []*MenuItem
func (*MenuItemKind) GetName ¶
func (x *MenuItemKind) GetName() string
func (*MenuItemKind) GetOptionKinds ¶
func (x *MenuItemKind) GetOptionKinds() []*MenuOptionKind
func (*MenuItemKind) ProtoMessage ¶
func (*MenuItemKind) ProtoMessage()
func (*MenuItemKind) ProtoReflect ¶
func (x *MenuItemKind) ProtoReflect() protoreflect.Message
func (*MenuItemKind) Reset ¶
func (x *MenuItemKind) Reset()
func (*MenuItemKind) String ¶
func (x *MenuItemKind) String() string
type MenuOption ¶
type MenuOption struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Price int64 `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"` OptionKindId int64 `protobuf:"varint,4,opt,name=option_kind_id,json=optionKindId,proto3" json:"option_kind_id,omitempty"` // contains filtered or unexported fields }
func (*MenuOption) Descriptor
deprecated
func (*MenuOption) Descriptor() ([]byte, []int)
Deprecated: Use MenuOption.ProtoReflect.Descriptor instead.
func (*MenuOption) GetId ¶
func (x *MenuOption) GetId() int64
func (*MenuOption) GetName ¶
func (x *MenuOption) GetName() string
func (*MenuOption) GetOptionKindId ¶
func (x *MenuOption) GetOptionKindId() int64
func (*MenuOption) GetPrice ¶
func (x *MenuOption) GetPrice() int64
func (*MenuOption) ProtoMessage ¶
func (*MenuOption) ProtoMessage()
func (*MenuOption) ProtoReflect ¶
func (x *MenuOption) ProtoReflect() protoreflect.Message
func (*MenuOption) Reset ¶
func (x *MenuOption) Reset()
func (*MenuOption) String ¶
func (x *MenuOption) String() string
type MenuOptionKind ¶
type MenuOptionKind struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` ItemKindId int64 `protobuf:"varint,3,opt,name=item_kind_id,json=itemKindId,proto3" json:"item_kind_id,omitempty"` Options []*MenuOption `protobuf:"bytes,4,rep,name=options,proto3" json:"options,omitempty"` // contains filtered or unexported fields }
func (*MenuOptionKind) Descriptor
deprecated
func (*MenuOptionKind) Descriptor() ([]byte, []int)
Deprecated: Use MenuOptionKind.ProtoReflect.Descriptor instead.
func (*MenuOptionKind) GetId ¶
func (x *MenuOptionKind) GetId() int64
func (*MenuOptionKind) GetItemKindId ¶
func (x *MenuOptionKind) GetItemKindId() int64
func (*MenuOptionKind) GetName ¶
func (x *MenuOptionKind) GetName() string
func (*MenuOptionKind) GetOptions ¶
func (x *MenuOptionKind) GetOptions() []*MenuOption
func (*MenuOptionKind) ProtoMessage ¶
func (*MenuOptionKind) ProtoMessage()
func (*MenuOptionKind) ProtoReflect ¶
func (x *MenuOptionKind) ProtoReflect() protoreflect.Message
func (*MenuOptionKind) Reset ¶
func (x *MenuOptionKind) Reset()
func (*MenuOptionKind) String ¶
func (x *MenuOptionKind) String() string
type MenuServiceClient ¶
type MenuServiceClient interface { GetMenu(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Menu, error) CreateMenuItem(ctx context.Context, in *MenuItem, opts ...grpc.CallOption) (*CreateMenuItemResponse, error) UpdateMenuItem(ctx context.Context, in *MenuItem, opts ...grpc.CallOption) (*Response, error) DeleteMenuItem(ctx context.Context, in *DeleteMenuItemRequest, opts ...grpc.CallOption) (*Response, error) CreateMenuItemOption(ctx context.Context, in *MenuOption, opts ...grpc.CallOption) (*Response, error) }
MenuServiceClient is the client API for MenuService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMenuServiceClient ¶
func NewMenuServiceClient(cc grpc.ClientConnInterface) MenuServiceClient
type MenuServiceServer ¶
type MenuServiceServer interface { GetMenu(context.Context, *Empty) (*Menu, error) CreateMenuItem(context.Context, *MenuItem) (*CreateMenuItemResponse, error) UpdateMenuItem(context.Context, *MenuItem) (*Response, error) DeleteMenuItem(context.Context, *DeleteMenuItemRequest) (*Response, error) CreateMenuItemOption(context.Context, *MenuOption) (*Response, error) }
MenuServiceServer is the server API for MenuService service.
type Order ¶
type Order struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Items []*OrderItem `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"` Total int64 `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"` Status string `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"` // @inject_tag: db:"time_ordered" TimeOrdered string `protobuf:"bytes,6,opt,name=time_ordered,json=timeOrdered,proto3" json:"time_ordered,omitempty" db:"time_ordered"` // @inject_tag: db:"time_complete" TimeComplete string `protobuf:"bytes,7,opt,name=time_complete,json=timeComplete,proto3" json:"time_complete,omitempty" db:"time_complete"` // contains filtered or unexported fields }
func (*Order) Descriptor
deprecated
func (*Order) GetTimeComplete ¶
func (*Order) GetTimeOrdered ¶
func (*Order) ProtoMessage ¶
func (*Order) ProtoMessage()
func (*Order) ProtoReflect ¶
func (x *Order) ProtoReflect() protoreflect.Message
type OrderItem ¶
type OrderItem struct { ItemId int64 `protobuf:"varint,1,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"` Price int64 `protobuf:"varint,2,opt,name=price,proto3" json:"price,omitempty"` Options []*OrderOption `protobuf:"bytes,3,rep,name=options,proto3" json:"options,omitempty"` // contains filtered or unexported fields }
func (*OrderItem) Descriptor
deprecated
func (*OrderItem) GetOptions ¶
func (x *OrderItem) GetOptions() []*OrderOption
func (*OrderItem) ProtoMessage ¶
func (*OrderItem) ProtoMessage()
func (*OrderItem) ProtoReflect ¶
func (x *OrderItem) ProtoReflect() protoreflect.Message
type OrderOption ¶
type OrderOption struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` OrderId int64 `protobuf:"varint,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` OptionId int64 `protobuf:"varint,3,opt,name=option_id,json=optionId,proto3" json:"option_id,omitempty"` OrderItemId int64 `protobuf:"varint,4,opt,name=order_item_id,json=orderItemId,proto3" json:"order_item_id,omitempty"` Price int64 `protobuf:"varint,5,opt,name=price,proto3" json:"price,omitempty"` // contains filtered or unexported fields }
func (*OrderOption) Descriptor
deprecated
func (*OrderOption) Descriptor() ([]byte, []int)
Deprecated: Use OrderOption.ProtoReflect.Descriptor instead.
func (*OrderOption) GetId ¶
func (x *OrderOption) GetId() int64
func (*OrderOption) GetOptionId ¶
func (x *OrderOption) GetOptionId() int64
func (*OrderOption) GetOrderId ¶
func (x *OrderOption) GetOrderId() int64
func (*OrderOption) GetOrderItemId ¶
func (x *OrderOption) GetOrderItemId() int64
func (*OrderOption) GetPrice ¶
func (x *OrderOption) GetPrice() int64
func (*OrderOption) ProtoMessage ¶
func (*OrderOption) ProtoMessage()
func (*OrderOption) ProtoReflect ¶
func (x *OrderOption) ProtoReflect() protoreflect.Message
func (*OrderOption) Reset ¶
func (x *OrderOption) Reset()
func (*OrderOption) String ¶
func (x *OrderOption) String() string
type OrderServiceClient ¶
type OrderServiceClient interface { SubmitOrder(ctx context.Context, in *Order, opts ...grpc.CallOption) (*Response, error) ActiveOrders(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*OrdersResponse, error) CompleteOrder(ctx context.Context, in *CompleteOrderRequest, opts ...grpc.CallOption) (*Response, error) SubscribeToOrders(ctx context.Context, in *Empty, opts ...grpc.CallOption) (OrderService_SubscribeToOrdersClient, error) }
OrderServiceClient is the client API for OrderService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewOrderServiceClient ¶
func NewOrderServiceClient(cc grpc.ClientConnInterface) OrderServiceClient
type OrderServiceServer ¶
type OrderServiceServer interface { SubmitOrder(context.Context, *Order) (*Response, error) ActiveOrders(context.Context, *Empty) (*OrdersResponse, error) CompleteOrder(context.Context, *CompleteOrderRequest) (*Response, error) SubscribeToOrders(*Empty, OrderService_SubscribeToOrdersServer) error }
OrderServiceServer is the server API for OrderService service.
type OrderService_SubscribeToOrdersClient ¶
type OrderService_SubscribeToOrdersClient interface { Recv() (*Order, error) grpc.ClientStream }
type OrderService_SubscribeToOrdersServer ¶
type OrderService_SubscribeToOrdersServer interface { Send(*Order) error grpc.ServerStream }
type OrdersRequest ¶
type OrdersRequest struct { Request string `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` // contains filtered or unexported fields }
func (*OrdersRequest) Descriptor
deprecated
func (*OrdersRequest) Descriptor() ([]byte, []int)
Deprecated: Use OrdersRequest.ProtoReflect.Descriptor instead.
func (*OrdersRequest) GetRequest ¶
func (x *OrdersRequest) GetRequest() string
func (*OrdersRequest) ProtoMessage ¶
func (*OrdersRequest) ProtoMessage()
func (*OrdersRequest) ProtoReflect ¶
func (x *OrdersRequest) ProtoReflect() protoreflect.Message
func (*OrdersRequest) Reset ¶
func (x *OrdersRequest) Reset()
func (*OrdersRequest) String ¶
func (x *OrdersRequest) String() string
type OrdersResponse ¶
type OrdersResponse struct { Orders []*Order `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders,omitempty"` // contains filtered or unexported fields }
func (*OrdersResponse) Descriptor
deprecated
func (*OrdersResponse) Descriptor() ([]byte, []int)
Deprecated: Use OrdersResponse.ProtoReflect.Descriptor instead.
func (*OrdersResponse) GetOrders ¶
func (x *OrdersResponse) GetOrders() []*Order
func (*OrdersResponse) ProtoMessage ¶
func (*OrdersResponse) ProtoMessage()
func (*OrdersResponse) ProtoReflect ¶
func (x *OrdersResponse) ProtoReflect() protoreflect.Message
func (*OrdersResponse) Reset ¶
func (x *OrdersResponse) Reset()
func (*OrdersResponse) String ¶
func (x *OrdersResponse) String() string
type Ping ¶
type Ping struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` DelaySeconds float32 `protobuf:"fixed32,2,opt,name=delaySeconds,proto3" json:"delaySeconds,omitempty"` // contains filtered or unexported fields }
func (*Ping) Descriptor
deprecated
func (*Ping) GetDelaySeconds ¶
func (*Ping) GetMessage ¶
func (*Ping) ProtoMessage ¶
func (*Ping) ProtoMessage()
func (*Ping) ProtoReflect ¶
func (x *Ping) ProtoReflect() protoreflect.Message
type PingServiceClient ¶
type PingServiceClient interface {
SendPing(ctx context.Context, in *Ping, opts ...grpc.CallOption) (*Pong, error)
}
PingServiceClient is the client API for PingService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPingServiceClient ¶
func NewPingServiceClient(cc grpc.ClientConnInterface) PingServiceClient
type PingServiceServer ¶
PingServiceServer is the server API for PingService service.
type Pong ¶
type Pong struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*Pong) Descriptor
deprecated
func (*Pong) GetMessage ¶
func (*Pong) ProtoMessage ¶
func (*Pong) ProtoMessage()
func (*Pong) ProtoReflect ¶
func (x *Pong) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { Response string `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) GetResponse ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type UnimplementedMenuServiceServer ¶
type UnimplementedMenuServiceServer struct { }
UnimplementedMenuServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedMenuServiceServer) CreateMenuItem ¶
func (*UnimplementedMenuServiceServer) CreateMenuItem(context.Context, *MenuItem) (*CreateMenuItemResponse, error)
func (*UnimplementedMenuServiceServer) CreateMenuItemOption ¶
func (*UnimplementedMenuServiceServer) CreateMenuItemOption(context.Context, *MenuOption) (*Response, error)
func (*UnimplementedMenuServiceServer) DeleteMenuItem ¶
func (*UnimplementedMenuServiceServer) DeleteMenuItem(context.Context, *DeleteMenuItemRequest) (*Response, error)
func (*UnimplementedMenuServiceServer) UpdateMenuItem ¶
type UnimplementedOrderServiceServer ¶
type UnimplementedOrderServiceServer struct { }
UnimplementedOrderServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedOrderServiceServer) ActiveOrders ¶
func (*UnimplementedOrderServiceServer) ActiveOrders(context.Context, *Empty) (*OrdersResponse, error)
func (*UnimplementedOrderServiceServer) CompleteOrder ¶
func (*UnimplementedOrderServiceServer) CompleteOrder(context.Context, *CompleteOrderRequest) (*Response, error)
func (*UnimplementedOrderServiceServer) SubmitOrder ¶
func (*UnimplementedOrderServiceServer) SubscribeToOrders ¶
func (*UnimplementedOrderServiceServer) SubscribeToOrders(*Empty, OrderService_SubscribeToOrdersServer) error
type UnimplementedPingServiceServer ¶
type UnimplementedPingServiceServer struct { }
UnimplementedPingServiceServer can be embedded to have forward compatible implementations.