pb

package
v0.0.0-...-7d965fe Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string
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() ([]byte, []int)

Deprecated: Use Menu.ProtoReflect.Descriptor instead.

func (x *Menu) GetItemKinds() []*MenuItemKind
func (*Menu) ProtoMessage()
func (x *Menu) ProtoReflect() protoreflect.Message
func (x *Menu) Reset()
func (x *Menu) String() string
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() ([]byte, []int)

Deprecated: Use MenuItem.ProtoReflect.Descriptor instead.

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

Deprecated: Use MenuItemKind.ProtoReflect.Descriptor instead.

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

Deprecated: Use MenuOption.ProtoReflect.Descriptor instead.

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

Deprecated: Use MenuOptionKind.ProtoReflect.Descriptor instead.

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 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.

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

Deprecated: Use Order.ProtoReflect.Descriptor instead.

func (*Order) GetId

func (x *Order) GetId() int64

func (*Order) GetItems

func (x *Order) GetItems() []*OrderItem

func (*Order) GetName

func (x *Order) GetName() string

func (*Order) GetStatus

func (x *Order) GetStatus() string

func (*Order) GetTimeComplete

func (x *Order) GetTimeComplete() string

func (*Order) GetTimeOrdered

func (x *Order) GetTimeOrdered() string

func (*Order) GetTotal

func (x *Order) GetTotal() int64

func (*Order) ProtoMessage

func (*Order) ProtoMessage()

func (*Order) ProtoReflect

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

func (*Order) Reset

func (x *Order) Reset()

func (*Order) String

func (x *Order) String() string

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

Deprecated: Use OrderItem.ProtoReflect.Descriptor instead.

func (*OrderItem) GetItemId

func (x *OrderItem) GetItemId() int64

func (*OrderItem) GetOptions

func (x *OrderItem) GetOptions() []*OrderOption

func (*OrderItem) GetPrice

func (x *OrderItem) GetPrice() int64

func (*OrderItem) ProtoMessage

func (*OrderItem) ProtoMessage()

func (*OrderItem) ProtoReflect

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

func (*OrderItem) Reset

func (x *OrderItem) Reset()

func (*OrderItem) String

func (x *OrderItem) String() string

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.

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

Deprecated: Use Ping.ProtoReflect.Descriptor instead.

func (*Ping) GetDelaySeconds

func (x *Ping) GetDelaySeconds() float32

func (*Ping) GetMessage

func (x *Ping) GetMessage() string

func (*Ping) ProtoMessage

func (*Ping) ProtoMessage()

func (*Ping) ProtoReflect

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

func (*Ping) Reset

func (x *Ping) Reset()

func (*Ping) String

func (x *Ping) String() string

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.

type PingServiceServer

type PingServiceServer interface {
	SendPing(context.Context, *Ping) (*Pong, error)
}

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

Deprecated: Use Pong.ProtoReflect.Descriptor instead.

func (*Pong) GetMessage

func (x *Pong) GetMessage() string

func (*Pong) ProtoMessage

func (*Pong) ProtoMessage()

func (*Pong) ProtoReflect

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

func (*Pong) Reset

func (x *Pong) Reset()

func (*Pong) String

func (x *Pong) String() string

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetResponse

func (x *Response) GetResponse() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type UnimplementedMenuServiceServer

type UnimplementedMenuServiceServer struct {
}

UnimplementedMenuServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedMenuServiceServer) CreateMenuItem

func (*UnimplementedMenuServiceServer) CreateMenuItemOption

func (*UnimplementedMenuServiceServer) DeleteMenuItem

func (*UnimplementedMenuServiceServer) GetMenu

func (*UnimplementedMenuServiceServer) UpdateMenuItem

type UnimplementedOrderServiceServer

type UnimplementedOrderServiceServer struct {
}

UnimplementedOrderServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedOrderServiceServer) ActiveOrders

func (*UnimplementedOrderServiceServer) CompleteOrder

func (*UnimplementedOrderServiceServer) SubmitOrder

func (*UnimplementedOrderServiceServer) SubscribeToOrders

type UnimplementedPingServiceServer

type UnimplementedPingServiceServer struct {
}

UnimplementedPingServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedPingServiceServer) SendPing

Jump to

Keyboard shortcuts

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