Documentation ¶
Index ¶
- Variables
- func RegisterDvdstoreServer(s grpc.ServiceRegistrar, srv DvdstoreServer)
- type AddCustomerReq
- type AddCustomerRes
- type AddOrderReq
- func (*AddOrderReq) Descriptor() ([]byte, []int)deprecated
- func (x *AddOrderReq) GetCustomerID() int64
- func (x *AddOrderReq) GetProductList() []*Product
- func (*AddOrderReq) ProtoMessage()
- func (x *AddOrderReq) ProtoReflect() protoreflect.Message
- func (x *AddOrderReq) Reset()
- func (x *AddOrderReq) String() string
- type AddOrderRes
- type AddProductReq
- type AddProductRes
- type Customer
- func (*Customer) Descriptor() ([]byte, []int)deprecated
- func (x *Customer) GetAge() int64
- func (x *Customer) GetFirstName() string
- func (x *Customer) GetId() int64
- func (x *Customer) GetLastName() string
- func (*Customer) ProtoMessage()
- func (x *Customer) ProtoReflect() protoreflect.Message
- func (x *Customer) Reset()
- func (x *Customer) String() string
- type DeleteCustomerReq
- type DeleteCustomerRes
- type DeleteOrderReq
- type DeleteOrderRes
- type DeleteProductReq
- type DeleteProductRes
- type DvdstoreClient
- type DvdstoreServer
- type GetCustomerOrdersReq
- func (*GetCustomerOrdersReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetCustomerOrdersReq) GetCustomerID() int64
- func (*GetCustomerOrdersReq) ProtoMessage()
- func (x *GetCustomerOrdersReq) ProtoReflect() protoreflect.Message
- func (x *GetCustomerOrdersReq) Reset()
- func (x *GetCustomerOrdersReq) String() string
- type GetCustomerOrdersRes
- func (*GetCustomerOrdersRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetCustomerOrdersRes) GetOrderList() []*Order
- func (*GetCustomerOrdersRes) ProtoMessage()
- func (x *GetCustomerOrdersRes) ProtoReflect() protoreflect.Message
- func (x *GetCustomerOrdersRes) Reset()
- func (x *GetCustomerOrdersRes) String() string
- type GetCustomerReq
- type GetCustomerRes
- type GetCustomersReq
- type GetCustomersRes
- type GetOrderReq
- type GetOrderRes
- type GetProductReq
- type GetProductRes
- type GetProductsReq
- type GetProductsRes
- type Order
- func (*Order) Descriptor() ([]byte, []int)deprecated
- func (x *Order) GetDate() *timestamppb.Timestamp
- func (x *Order) GetId() int64
- func (x *Order) GetNetAmount() float64
- func (x *Order) GetProductList() []*Product
- func (x *Order) GetTax() float64
- func (x *Order) GetTotalAmount() float64
- func (*Order) ProtoMessage()
- func (x *Order) ProtoReflect() protoreflect.Message
- func (x *Order) Reset()
- func (x *Order) String() string
- type Product
- func (*Product) Descriptor() ([]byte, []int)deprecated
- func (x *Product) GetId() int64
- func (x *Product) GetPrice() float64
- func (x *Product) GetQuantity() int64
- func (x *Product) GetTitle() string
- func (*Product) ProtoMessage()
- func (x *Product) ProtoReflect() protoreflect.Message
- func (x *Product) Reset()
- func (x *Product) String() string
- type UnimplementedDvdstoreServer
- func (UnimplementedDvdstoreServer) AddCustomer(context.Context, *AddCustomerReq) (*AddCustomerRes, error)
- func (UnimplementedDvdstoreServer) AddOrder(context.Context, *AddOrderReq) (*AddOrderRes, error)
- func (UnimplementedDvdstoreServer) AddProduct(context.Context, *AddProductReq) (*AddProductRes, error)
- func (UnimplementedDvdstoreServer) DeleteCustomer(context.Context, *DeleteCustomerReq) (*DeleteCustomerRes, error)
- func (UnimplementedDvdstoreServer) DeleteOrder(context.Context, *DeleteOrderReq) (*DeleteOrderRes, error)
- func (UnimplementedDvdstoreServer) DeleteProduct(context.Context, *DeleteProductReq) (*DeleteProductRes, error)
- func (UnimplementedDvdstoreServer) GetCustomer(context.Context, *GetCustomerReq) (*GetCustomerRes, error)
- func (UnimplementedDvdstoreServer) GetCustomerOrders(context.Context, *GetCustomerOrdersReq) (*GetCustomerOrdersRes, error)
- func (UnimplementedDvdstoreServer) GetCustomers(context.Context, *GetCustomersReq) (*GetCustomersRes, error)
- func (UnimplementedDvdstoreServer) GetOrder(context.Context, *GetOrderReq) (*GetOrderRes, error)
- func (UnimplementedDvdstoreServer) GetProduct(context.Context, *GetProductReq) (*GetProductRes, error)
- func (UnimplementedDvdstoreServer) GetProducts(context.Context, *GetProductsReq) (*GetProductsRes, error)
- type UnsafeDvdstoreServer
Constants ¶
This section is empty.
Variables ¶
var Dvdstore_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.Dvdstore", HandlerType: (*DvdstoreServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetCustomers", Handler: _Dvdstore_GetCustomers_Handler, }, { MethodName: "GetCustomer", Handler: _Dvdstore_GetCustomer_Handler, }, { MethodName: "AddCustomer", Handler: _Dvdstore_AddCustomer_Handler, }, { MethodName: "DeleteCustomer", Handler: _Dvdstore_DeleteCustomer_Handler, }, { MethodName: "GetProducts", Handler: _Dvdstore_GetProducts_Handler, }, { MethodName: "GetProduct", Handler: _Dvdstore_GetProduct_Handler, }, { MethodName: "AddProduct", Handler: _Dvdstore_AddProduct_Handler, }, { MethodName: "DeleteProduct", Handler: _Dvdstore_DeleteProduct_Handler, }, { MethodName: "GetOrder", Handler: _Dvdstore_GetOrder_Handler, }, { MethodName: "GetCustomerOrders", Handler: _Dvdstore_GetCustomerOrders_Handler, }, { MethodName: "AddOrder", Handler: _Dvdstore_AddOrder_Handler, }, { MethodName: "DeleteOrder", Handler: _Dvdstore_DeleteOrder_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/dvdstore.proto", }
Dvdstore_ServiceDesc is the grpc.ServiceDesc for Dvdstore service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_proto_dvdstore_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDvdstoreServer ¶
func RegisterDvdstoreServer(s grpc.ServiceRegistrar, srv DvdstoreServer)
Types ¶
type AddCustomerReq ¶
type AddCustomerReq struct { Customer *Customer `protobuf:"bytes,1,opt,name=Customer,proto3" json:"Customer,omitempty"` // contains filtered or unexported fields }
AddCustomerReq contains single customer to add Customer "Id" field is ignored
func (*AddCustomerReq) Descriptor
deprecated
func (*AddCustomerReq) Descriptor() ([]byte, []int)
Deprecated: Use AddCustomerReq.ProtoReflect.Descriptor instead.
func (*AddCustomerReq) GetCustomer ¶
func (x *AddCustomerReq) GetCustomer() *Customer
func (*AddCustomerReq) ProtoMessage ¶
func (*AddCustomerReq) ProtoMessage()
func (*AddCustomerReq) ProtoReflect ¶
func (x *AddCustomerReq) ProtoReflect() protoreflect.Message
func (*AddCustomerReq) Reset ¶
func (x *AddCustomerReq) Reset()
func (*AddCustomerReq) String ¶
func (x *AddCustomerReq) String() string
type AddCustomerRes ¶
type AddCustomerRes struct { CustomerID int64 `protobuf:"varint,1,opt,name=CustomerID,proto3" json:"CustomerID,omitempty"` // contains filtered or unexported fields }
AddCustomerRes contains added customer id
func (*AddCustomerRes) Descriptor
deprecated
func (*AddCustomerRes) Descriptor() ([]byte, []int)
Deprecated: Use AddCustomerRes.ProtoReflect.Descriptor instead.
func (*AddCustomerRes) GetCustomerID ¶
func (x *AddCustomerRes) GetCustomerID() int64
func (*AddCustomerRes) ProtoMessage ¶
func (*AddCustomerRes) ProtoMessage()
func (*AddCustomerRes) ProtoReflect ¶
func (x *AddCustomerRes) ProtoReflect() protoreflect.Message
func (*AddCustomerRes) Reset ¶
func (x *AddCustomerRes) Reset()
func (*AddCustomerRes) String ¶
func (x *AddCustomerRes) String() string
type AddOrderReq ¶
type AddOrderReq struct { CustomerID int64 `protobuf:"varint,1,opt,name=CustomerID,proto3" json:"CustomerID,omitempty"` ProductList []*Product `protobuf:"bytes,2,rep,name=ProductList,proto3" json:"ProductList,omitempty"` // contains filtered or unexported fields }
AddOrderReq contains customer id and list of products to make order. "Title" and "Price" fields in ProductList are ignored
func (*AddOrderReq) Descriptor
deprecated
func (*AddOrderReq) Descriptor() ([]byte, []int)
Deprecated: Use AddOrderReq.ProtoReflect.Descriptor instead.
func (*AddOrderReq) GetCustomerID ¶
func (x *AddOrderReq) GetCustomerID() int64
func (*AddOrderReq) GetProductList ¶
func (x *AddOrderReq) GetProductList() []*Product
func (*AddOrderReq) ProtoMessage ¶
func (*AddOrderReq) ProtoMessage()
func (*AddOrderReq) ProtoReflect ¶
func (x *AddOrderReq) ProtoReflect() protoreflect.Message
func (*AddOrderReq) Reset ¶
func (x *AddOrderReq) Reset()
func (*AddOrderReq) String ¶
func (x *AddOrderReq) String() string
type AddOrderRes ¶
type AddOrderRes struct { OrderID int64 `protobuf:"varint,1,opt,name=OrderID,proto3" json:"OrderID,omitempty"` // contains filtered or unexported fields }
AddOrderRes contains created order id
func (*AddOrderRes) Descriptor
deprecated
func (*AddOrderRes) Descriptor() ([]byte, []int)
Deprecated: Use AddOrderRes.ProtoReflect.Descriptor instead.
func (*AddOrderRes) GetOrderID ¶
func (x *AddOrderRes) GetOrderID() int64
func (*AddOrderRes) ProtoMessage ¶
func (*AddOrderRes) ProtoMessage()
func (*AddOrderRes) ProtoReflect ¶
func (x *AddOrderRes) ProtoReflect() protoreflect.Message
func (*AddOrderRes) Reset ¶
func (x *AddOrderRes) Reset()
func (*AddOrderRes) String ¶
func (x *AddOrderRes) String() string
type AddProductReq ¶
type AddProductReq struct { Product *Product `protobuf:"bytes,1,opt,name=Product,proto3" json:"Product,omitempty"` // contains filtered or unexported fields }
AddProductReq contains product tot add Product "Id" field is ignored
func (*AddProductReq) Descriptor
deprecated
func (*AddProductReq) Descriptor() ([]byte, []int)
Deprecated: Use AddProductReq.ProtoReflect.Descriptor instead.
func (*AddProductReq) GetProduct ¶
func (x *AddProductReq) GetProduct() *Product
func (*AddProductReq) ProtoMessage ¶
func (*AddProductReq) ProtoMessage()
func (*AddProductReq) ProtoReflect ¶
func (x *AddProductReq) ProtoReflect() protoreflect.Message
func (*AddProductReq) Reset ¶
func (x *AddProductReq) Reset()
func (*AddProductReq) String ¶
func (x *AddProductReq) String() string
type AddProductRes ¶
type AddProductRes struct { ProductID int64 `protobuf:"varint,1,opt,name=ProductID,proto3" json:"ProductID,omitempty"` // contains filtered or unexported fields }
AddProductRes contains added product id
func (*AddProductRes) Descriptor
deprecated
func (*AddProductRes) Descriptor() ([]byte, []int)
Deprecated: Use AddProductRes.ProtoReflect.Descriptor instead.
func (*AddProductRes) GetProductID ¶
func (x *AddProductRes) GetProductID() int64
func (*AddProductRes) ProtoMessage ¶
func (*AddProductRes) ProtoMessage()
func (*AddProductRes) ProtoReflect ¶
func (x *AddProductRes) ProtoReflect() protoreflect.Message
func (*AddProductRes) Reset ¶
func (x *AddProductRes) Reset()
func (*AddProductRes) String ¶
func (x *AddProductRes) String() string
type Customer ¶
type Customer struct { Id int64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"` FirstName string `protobuf:"bytes,2,opt,name=FirstName,proto3" json:"FirstName,omitempty"` LastName string `protobuf:"bytes,3,opt,name=LastName,proto3" json:"LastName,omitempty"` Age int64 `protobuf:"varint,4,opt,name=Age,proto3" json:"Age,omitempty"` // contains filtered or unexported fields }
func (*Customer) Descriptor
deprecated
func (*Customer) GetFirstName ¶
func (*Customer) GetLastName ¶
func (*Customer) ProtoMessage ¶
func (*Customer) ProtoMessage()
func (*Customer) ProtoReflect ¶
func (x *Customer) ProtoReflect() protoreflect.Message
type DeleteCustomerReq ¶
type DeleteCustomerReq struct { CustomerID int64 `protobuf:"varint,1,opt,name=CustomerID,proto3" json:"CustomerID,omitempty"` // contains filtered or unexported fields }
DeleteCustomerReq contains customer id to delete
func (*DeleteCustomerReq) Descriptor
deprecated
func (*DeleteCustomerReq) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCustomerReq.ProtoReflect.Descriptor instead.
func (*DeleteCustomerReq) GetCustomerID ¶
func (x *DeleteCustomerReq) GetCustomerID() int64
func (*DeleteCustomerReq) ProtoMessage ¶
func (*DeleteCustomerReq) ProtoMessage()
func (*DeleteCustomerReq) ProtoReflect ¶
func (x *DeleteCustomerReq) ProtoReflect() protoreflect.Message
func (*DeleteCustomerReq) Reset ¶
func (x *DeleteCustomerReq) Reset()
func (*DeleteCustomerReq) String ¶
func (x *DeleteCustomerReq) String() string
type DeleteCustomerRes ¶
type DeleteCustomerRes struct {
// contains filtered or unexported fields
}
DeleteCustomerRes returns only error
func (*DeleteCustomerRes) Descriptor
deprecated
func (*DeleteCustomerRes) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCustomerRes.ProtoReflect.Descriptor instead.
func (*DeleteCustomerRes) ProtoMessage ¶
func (*DeleteCustomerRes) ProtoMessage()
func (*DeleteCustomerRes) ProtoReflect ¶
func (x *DeleteCustomerRes) ProtoReflect() protoreflect.Message
func (*DeleteCustomerRes) Reset ¶
func (x *DeleteCustomerRes) Reset()
func (*DeleteCustomerRes) String ¶
func (x *DeleteCustomerRes) String() string
type DeleteOrderReq ¶
type DeleteOrderReq struct { OrderID int64 `protobuf:"varint,1,opt,name=OrderID,proto3" json:"OrderID,omitempty"` // contains filtered or unexported fields }
DeleteOrderReq contains order id to delete
func (*DeleteOrderReq) Descriptor
deprecated
func (*DeleteOrderReq) Descriptor() ([]byte, []int)
Deprecated: Use DeleteOrderReq.ProtoReflect.Descriptor instead.
func (*DeleteOrderReq) GetOrderID ¶
func (x *DeleteOrderReq) GetOrderID() int64
func (*DeleteOrderReq) ProtoMessage ¶
func (*DeleteOrderReq) ProtoMessage()
func (*DeleteOrderReq) ProtoReflect ¶
func (x *DeleteOrderReq) ProtoReflect() protoreflect.Message
func (*DeleteOrderReq) Reset ¶
func (x *DeleteOrderReq) Reset()
func (*DeleteOrderReq) String ¶
func (x *DeleteOrderReq) String() string
type DeleteOrderRes ¶
type DeleteOrderRes struct {
// contains filtered or unexported fields
}
DeleteOrderRes returns only error
func (*DeleteOrderRes) Descriptor
deprecated
func (*DeleteOrderRes) Descriptor() ([]byte, []int)
Deprecated: Use DeleteOrderRes.ProtoReflect.Descriptor instead.
func (*DeleteOrderRes) ProtoMessage ¶
func (*DeleteOrderRes) ProtoMessage()
func (*DeleteOrderRes) ProtoReflect ¶
func (x *DeleteOrderRes) ProtoReflect() protoreflect.Message
func (*DeleteOrderRes) Reset ¶
func (x *DeleteOrderRes) Reset()
func (*DeleteOrderRes) String ¶
func (x *DeleteOrderRes) String() string
type DeleteProductReq ¶
type DeleteProductReq struct { ProductID int64 `protobuf:"varint,1,opt,name=ProductID,proto3" json:"ProductID,omitempty"` // contains filtered or unexported fields }
DeleteProductReq contains product id to delete
func (*DeleteProductReq) Descriptor
deprecated
func (*DeleteProductReq) Descriptor() ([]byte, []int)
Deprecated: Use DeleteProductReq.ProtoReflect.Descriptor instead.
func (*DeleteProductReq) GetProductID ¶
func (x *DeleteProductReq) GetProductID() int64
func (*DeleteProductReq) ProtoMessage ¶
func (*DeleteProductReq) ProtoMessage()
func (*DeleteProductReq) ProtoReflect ¶
func (x *DeleteProductReq) ProtoReflect() protoreflect.Message
func (*DeleteProductReq) Reset ¶
func (x *DeleteProductReq) Reset()
func (*DeleteProductReq) String ¶
func (x *DeleteProductReq) String() string
type DeleteProductRes ¶
type DeleteProductRes struct {
// contains filtered or unexported fields
}
DeleteProductRes returns only error
func (*DeleteProductRes) Descriptor
deprecated
func (*DeleteProductRes) Descriptor() ([]byte, []int)
Deprecated: Use DeleteProductRes.ProtoReflect.Descriptor instead.
func (*DeleteProductRes) ProtoMessage ¶
func (*DeleteProductRes) ProtoMessage()
func (*DeleteProductRes) ProtoReflect ¶
func (x *DeleteProductRes) ProtoReflect() protoreflect.Message
func (*DeleteProductRes) Reset ¶
func (x *DeleteProductRes) Reset()
func (*DeleteProductRes) String ¶
func (x *DeleteProductRes) String() string
type DvdstoreClient ¶
type DvdstoreClient interface { // GetCustomers returns list of all Customers limited by provided limit GetCustomers(ctx context.Context, in *GetCustomersReq, opts ...grpc.CallOption) (*GetCustomersRes, error) // GetCustomer returns Customer by provided id GetCustomer(ctx context.Context, in *GetCustomerReq, opts ...grpc.CallOption) (*GetCustomerRes, error) // AddCustomer adds passed Customer and returns his id. // Passed customer "Id" field is ignored AddCustomer(ctx context.Context, in *AddCustomerReq, opts ...grpc.CallOption) (*AddCustomerRes, error) // DeleteCustomer deletes Customer by provided id. // Returns empty response if no errors were met DeleteCustomer(ctx context.Context, in *DeleteCustomerReq, opts ...grpc.CallOption) (*DeleteCustomerRes, error) // GetProducts returns list of all Products limited by provided limit GetProducts(ctx context.Context, in *GetProductsReq, opts ...grpc.CallOption) (*GetProductsRes, error) // GetProduct returns Product by provided id GetProduct(ctx context.Context, in *GetProductReq, opts ...grpc.CallOption) (*GetProductRes, error) // AddProduct adds passed Product and returns his id // Passed product "Id" field is ignored AddProduct(ctx context.Context, in *AddProductReq, opts ...grpc.CallOption) (*AddProductRes, error) // DeleteProduct deletes Product by provided id. // Returns empty response if no errors were met DeleteProduct(ctx context.Context, in *DeleteProductReq, opts ...grpc.CallOption) (*DeleteProductRes, error) // GetOrder gets order by provided id GetOrder(ctx context.Context, in *GetOrderReq, opts ...grpc.CallOption) (*GetOrderRes, error) // GetCustomerOrders returns customer orders by provided customer id GetCustomerOrders(ctx context.Context, in *GetCustomerOrdersReq, opts ...grpc.CallOption) (*GetCustomerOrdersRes, error) // AddOrder adds order for passed customer id with provided products // and returns created order id. "Title" and "Price" fields in passed // ProductList are ignored AddOrder(ctx context.Context, in *AddOrderReq, opts ...grpc.CallOption) (*AddOrderRes, error) // DeleteOrder deletes order with provided order id. // Returns empty response if no errors were met DeleteOrder(ctx context.Context, in *DeleteOrderReq, opts ...grpc.CallOption) (*DeleteOrderRes, error) }
DvdstoreClient is the client API for Dvdstore 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 NewDvdstoreClient ¶
func NewDvdstoreClient(cc grpc.ClientConnInterface) DvdstoreClient
type DvdstoreServer ¶
type DvdstoreServer interface { // GetCustomers returns list of all Customers limited by provided limit GetCustomers(context.Context, *GetCustomersReq) (*GetCustomersRes, error) // GetCustomer returns Customer by provided id GetCustomer(context.Context, *GetCustomerReq) (*GetCustomerRes, error) // AddCustomer adds passed Customer and returns his id. // Passed customer "Id" field is ignored AddCustomer(context.Context, *AddCustomerReq) (*AddCustomerRes, error) // DeleteCustomer deletes Customer by provided id. // Returns empty response if no errors were met DeleteCustomer(context.Context, *DeleteCustomerReq) (*DeleteCustomerRes, error) // GetProducts returns list of all Products limited by provided limit GetProducts(context.Context, *GetProductsReq) (*GetProductsRes, error) // GetProduct returns Product by provided id GetProduct(context.Context, *GetProductReq) (*GetProductRes, error) // AddProduct adds passed Product and returns his id // Passed product "Id" field is ignored AddProduct(context.Context, *AddProductReq) (*AddProductRes, error) // DeleteProduct deletes Product by provided id. // Returns empty response if no errors were met DeleteProduct(context.Context, *DeleteProductReq) (*DeleteProductRes, error) // GetOrder gets order by provided id GetOrder(context.Context, *GetOrderReq) (*GetOrderRes, error) // GetCustomerOrders returns customer orders by provided customer id GetCustomerOrders(context.Context, *GetCustomerOrdersReq) (*GetCustomerOrdersRes, error) // AddOrder adds order for passed customer id with provided products // and returns created order id. "Title" and "Price" fields in passed // ProductList are ignored AddOrder(context.Context, *AddOrderReq) (*AddOrderRes, error) // DeleteOrder deletes order with provided order id. // Returns empty response if no errors were met DeleteOrder(context.Context, *DeleteOrderReq) (*DeleteOrderRes, error) // contains filtered or unexported methods }
DvdstoreServer is the server API for Dvdstore service. All implementations must embed UnimplementedDvdstoreServer for forward compatibility
type GetCustomerOrdersReq ¶
type GetCustomerOrdersReq struct { CustomerID int64 `protobuf:"varint,1,opt,name=CustomerID,proto3" json:"CustomerID,omitempty"` // contains filtered or unexported fields }
GetCustomerOrdersReq contains customer id
func (*GetCustomerOrdersReq) Descriptor
deprecated
func (*GetCustomerOrdersReq) Descriptor() ([]byte, []int)
Deprecated: Use GetCustomerOrdersReq.ProtoReflect.Descriptor instead.
func (*GetCustomerOrdersReq) GetCustomerID ¶
func (x *GetCustomerOrdersReq) GetCustomerID() int64
func (*GetCustomerOrdersReq) ProtoMessage ¶
func (*GetCustomerOrdersReq) ProtoMessage()
func (*GetCustomerOrdersReq) ProtoReflect ¶
func (x *GetCustomerOrdersReq) ProtoReflect() protoreflect.Message
func (*GetCustomerOrdersReq) Reset ¶
func (x *GetCustomerOrdersReq) Reset()
func (*GetCustomerOrdersReq) String ¶
func (x *GetCustomerOrdersReq) String() string
type GetCustomerOrdersRes ¶
type GetCustomerOrdersRes struct { OrderList []*Order `protobuf:"bytes,1,rep,name=OrderList,proto3" json:"OrderList,omitempty"` // contains filtered or unexported fields }
GetCustomerOrdersRes contain list of customer orders
func (*GetCustomerOrdersRes) Descriptor
deprecated
func (*GetCustomerOrdersRes) Descriptor() ([]byte, []int)
Deprecated: Use GetCustomerOrdersRes.ProtoReflect.Descriptor instead.
func (*GetCustomerOrdersRes) GetOrderList ¶
func (x *GetCustomerOrdersRes) GetOrderList() []*Order
func (*GetCustomerOrdersRes) ProtoMessage ¶
func (*GetCustomerOrdersRes) ProtoMessage()
func (*GetCustomerOrdersRes) ProtoReflect ¶
func (x *GetCustomerOrdersRes) ProtoReflect() protoreflect.Message
func (*GetCustomerOrdersRes) Reset ¶
func (x *GetCustomerOrdersRes) Reset()
func (*GetCustomerOrdersRes) String ¶
func (x *GetCustomerOrdersRes) String() string
type GetCustomerReq ¶
type GetCustomerReq struct { CustomerID int64 `protobuf:"varint,1,opt,name=CustomerID,proto3" json:"CustomerID,omitempty"` // contains filtered or unexported fields }
GetCustomerReq contains customer id to get
func (*GetCustomerReq) Descriptor
deprecated
func (*GetCustomerReq) Descriptor() ([]byte, []int)
Deprecated: Use GetCustomerReq.ProtoReflect.Descriptor instead.
func (*GetCustomerReq) GetCustomerID ¶
func (x *GetCustomerReq) GetCustomerID() int64
func (*GetCustomerReq) ProtoMessage ¶
func (*GetCustomerReq) ProtoMessage()
func (*GetCustomerReq) ProtoReflect ¶
func (x *GetCustomerReq) ProtoReflect() protoreflect.Message
func (*GetCustomerReq) Reset ¶
func (x *GetCustomerReq) Reset()
func (*GetCustomerReq) String ¶
func (x *GetCustomerReq) String() string
type GetCustomerRes ¶
type GetCustomerRes struct { Customer *Customer `protobuf:"bytes,1,opt,name=Customer,proto3" json:"Customer,omitempty"` // contains filtered or unexported fields }
GetCustomerRes contains single customer
func (*GetCustomerRes) Descriptor
deprecated
func (*GetCustomerRes) Descriptor() ([]byte, []int)
Deprecated: Use GetCustomerRes.ProtoReflect.Descriptor instead.
func (*GetCustomerRes) GetCustomer ¶
func (x *GetCustomerRes) GetCustomer() *Customer
func (*GetCustomerRes) ProtoMessage ¶
func (*GetCustomerRes) ProtoMessage()
func (*GetCustomerRes) ProtoReflect ¶
func (x *GetCustomerRes) ProtoReflect() protoreflect.Message
func (*GetCustomerRes) Reset ¶
func (x *GetCustomerRes) Reset()
func (*GetCustomerRes) String ¶
func (x *GetCustomerRes) String() string
type GetCustomersReq ¶
type GetCustomersReq struct { Limit int64 `protobuf:"varint,1,opt,name=Limit,proto3" json:"Limit,omitempty"` // contains filtered or unexported fields }
GetCustomersReq contains Limit that defines the limit of customers to return
func (*GetCustomersReq) Descriptor
deprecated
func (*GetCustomersReq) Descriptor() ([]byte, []int)
Deprecated: Use GetCustomersReq.ProtoReflect.Descriptor instead.
func (*GetCustomersReq) GetLimit ¶
func (x *GetCustomersReq) GetLimit() int64
func (*GetCustomersReq) ProtoMessage ¶
func (*GetCustomersReq) ProtoMessage()
func (*GetCustomersReq) ProtoReflect ¶
func (x *GetCustomersReq) ProtoReflect() protoreflect.Message
func (*GetCustomersReq) Reset ¶
func (x *GetCustomersReq) Reset()
func (*GetCustomersReq) String ¶
func (x *GetCustomersReq) String() string
type GetCustomersRes ¶
type GetCustomersRes struct { CustomerList []*Customer `protobuf:"bytes,1,rep,name=CustomerList,proto3" json:"CustomerList,omitempty"` // contains filtered or unexported fields }
GetCustomersRes contains list of customers
func (*GetCustomersRes) Descriptor
deprecated
func (*GetCustomersRes) Descriptor() ([]byte, []int)
Deprecated: Use GetCustomersRes.ProtoReflect.Descriptor instead.
func (*GetCustomersRes) GetCustomerList ¶
func (x *GetCustomersRes) GetCustomerList() []*Customer
func (*GetCustomersRes) ProtoMessage ¶
func (*GetCustomersRes) ProtoMessage()
func (*GetCustomersRes) ProtoReflect ¶
func (x *GetCustomersRes) ProtoReflect() protoreflect.Message
func (*GetCustomersRes) Reset ¶
func (x *GetCustomersRes) Reset()
func (*GetCustomersRes) String ¶
func (x *GetCustomersRes) String() string
type GetOrderReq ¶
type GetOrderReq struct { OrderID int64 `protobuf:"varint,1,opt,name=OrderID,proto3" json:"OrderID,omitempty"` // contains filtered or unexported fields }
GetOrderReq contains order id to get
func (*GetOrderReq) Descriptor
deprecated
func (*GetOrderReq) Descriptor() ([]byte, []int)
Deprecated: Use GetOrderReq.ProtoReflect.Descriptor instead.
func (*GetOrderReq) GetOrderID ¶
func (x *GetOrderReq) GetOrderID() int64
func (*GetOrderReq) ProtoMessage ¶
func (*GetOrderReq) ProtoMessage()
func (*GetOrderReq) ProtoReflect ¶
func (x *GetOrderReq) ProtoReflect() protoreflect.Message
func (*GetOrderReq) Reset ¶
func (x *GetOrderReq) Reset()
func (*GetOrderReq) String ¶
func (x *GetOrderReq) String() string
type GetOrderRes ¶
type GetOrderRes struct { Order *Order `protobuf:"bytes,1,opt,name=Order,proto3" json:"Order,omitempty"` // contains filtered or unexported fields }
GetOrderRes contains single order
func (*GetOrderRes) Descriptor
deprecated
func (*GetOrderRes) Descriptor() ([]byte, []int)
Deprecated: Use GetOrderRes.ProtoReflect.Descriptor instead.
func (*GetOrderRes) GetOrder ¶
func (x *GetOrderRes) GetOrder() *Order
func (*GetOrderRes) ProtoMessage ¶
func (*GetOrderRes) ProtoMessage()
func (*GetOrderRes) ProtoReflect ¶
func (x *GetOrderRes) ProtoReflect() protoreflect.Message
func (*GetOrderRes) Reset ¶
func (x *GetOrderRes) Reset()
func (*GetOrderRes) String ¶
func (x *GetOrderRes) String() string
type GetProductReq ¶
type GetProductReq struct { ProductID int64 `protobuf:"varint,1,opt,name=ProductID,proto3" json:"ProductID,omitempty"` // contains filtered or unexported fields }
GetProductReq contains product id to get
func (*GetProductReq) Descriptor
deprecated
func (*GetProductReq) Descriptor() ([]byte, []int)
Deprecated: Use GetProductReq.ProtoReflect.Descriptor instead.
func (*GetProductReq) GetProductID ¶
func (x *GetProductReq) GetProductID() int64
func (*GetProductReq) ProtoMessage ¶
func (*GetProductReq) ProtoMessage()
func (*GetProductReq) ProtoReflect ¶
func (x *GetProductReq) ProtoReflect() protoreflect.Message
func (*GetProductReq) Reset ¶
func (x *GetProductReq) Reset()
func (*GetProductReq) String ¶
func (x *GetProductReq) String() string
type GetProductRes ¶
type GetProductRes struct { Product *Product `protobuf:"bytes,1,opt,name=Product,proto3" json:"Product,omitempty"` // contains filtered or unexported fields }
GetProductRes contains single product
func (*GetProductRes) Descriptor
deprecated
func (*GetProductRes) Descriptor() ([]byte, []int)
Deprecated: Use GetProductRes.ProtoReflect.Descriptor instead.
func (*GetProductRes) GetProduct ¶
func (x *GetProductRes) GetProduct() *Product
func (*GetProductRes) ProtoMessage ¶
func (*GetProductRes) ProtoMessage()
func (*GetProductRes) ProtoReflect ¶
func (x *GetProductRes) ProtoReflect() protoreflect.Message
func (*GetProductRes) Reset ¶
func (x *GetProductRes) Reset()
func (*GetProductRes) String ¶
func (x *GetProductRes) String() string
type GetProductsReq ¶
type GetProductsReq struct { Limit int64 `protobuf:"varint,1,opt,name=Limit,proto3" json:"Limit,omitempty"` // contains filtered or unexported fields }
GetProductsReq contains Limit that defines the limit of products to return
func (*GetProductsReq) Descriptor
deprecated
func (*GetProductsReq) Descriptor() ([]byte, []int)
Deprecated: Use GetProductsReq.ProtoReflect.Descriptor instead.
func (*GetProductsReq) GetLimit ¶
func (x *GetProductsReq) GetLimit() int64
func (*GetProductsReq) ProtoMessage ¶
func (*GetProductsReq) ProtoMessage()
func (*GetProductsReq) ProtoReflect ¶
func (x *GetProductsReq) ProtoReflect() protoreflect.Message
func (*GetProductsReq) Reset ¶
func (x *GetProductsReq) Reset()
func (*GetProductsReq) String ¶
func (x *GetProductsReq) String() string
type GetProductsRes ¶
type GetProductsRes struct { ProductList []*Product `protobuf:"bytes,1,rep,name=ProductList,proto3" json:"ProductList,omitempty"` // contains filtered or unexported fields }
GetProductsRes contains list of products
func (*GetProductsRes) Descriptor
deprecated
func (*GetProductsRes) Descriptor() ([]byte, []int)
Deprecated: Use GetProductsRes.ProtoReflect.Descriptor instead.
func (*GetProductsRes) GetProductList ¶
func (x *GetProductsRes) GetProductList() []*Product
func (*GetProductsRes) ProtoMessage ¶
func (*GetProductsRes) ProtoMessage()
func (*GetProductsRes) ProtoReflect ¶
func (x *GetProductsRes) ProtoReflect() protoreflect.Message
func (*GetProductsRes) Reset ¶
func (x *GetProductsRes) Reset()
func (*GetProductsRes) String ¶
func (x *GetProductsRes) String() string
type Order ¶
type Order struct { Id int64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"` Date *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=Date,proto3" json:"Date,omitempty"` NetAmount float64 `protobuf:"fixed64,3,opt,name=NetAmount,proto3" json:"NetAmount,omitempty"` Tax float64 `protobuf:"fixed64,4,opt,name=Tax,proto3" json:"Tax,omitempty"` TotalAmount float64 `protobuf:"fixed64,5,opt,name=TotalAmount,proto3" json:"TotalAmount,omitempty"` ProductList []*Product `protobuf:"bytes,6,rep,name=ProductList,proto3" json:"ProductList,omitempty"` // contains filtered or unexported fields }
func (*Order) Descriptor
deprecated
func (*Order) GetDate ¶
func (x *Order) GetDate() *timestamppb.Timestamp
func (*Order) GetNetAmount ¶
func (*Order) GetProductList ¶
func (*Order) GetTotalAmount ¶
func (*Order) ProtoMessage ¶
func (*Order) ProtoMessage()
func (*Order) ProtoReflect ¶
func (x *Order) ProtoReflect() protoreflect.Message
type Product ¶
type Product struct { Id int64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"` Title string `protobuf:"bytes,2,opt,name=Title,proto3" json:"Title,omitempty"` Price float64 `protobuf:"fixed64,3,opt,name=Price,proto3" json:"Price,omitempty"` Quantity int64 `protobuf:"varint,4,opt,name=Quantity,proto3" json:"Quantity,omitempty"` // contains filtered or unexported fields }
func (*Product) Descriptor
deprecated
func (*Product) GetQuantity ¶
func (*Product) ProtoMessage ¶
func (*Product) ProtoMessage()
func (*Product) ProtoReflect ¶
func (x *Product) ProtoReflect() protoreflect.Message
type UnimplementedDvdstoreServer ¶
type UnimplementedDvdstoreServer struct { }
UnimplementedDvdstoreServer must be embedded to have forward compatible implementations.
func (UnimplementedDvdstoreServer) AddCustomer ¶
func (UnimplementedDvdstoreServer) AddCustomer(context.Context, *AddCustomerReq) (*AddCustomerRes, error)
func (UnimplementedDvdstoreServer) AddOrder ¶
func (UnimplementedDvdstoreServer) AddOrder(context.Context, *AddOrderReq) (*AddOrderRes, error)
func (UnimplementedDvdstoreServer) AddProduct ¶
func (UnimplementedDvdstoreServer) AddProduct(context.Context, *AddProductReq) (*AddProductRes, error)
func (UnimplementedDvdstoreServer) DeleteCustomer ¶
func (UnimplementedDvdstoreServer) DeleteCustomer(context.Context, *DeleteCustomerReq) (*DeleteCustomerRes, error)
func (UnimplementedDvdstoreServer) DeleteOrder ¶
func (UnimplementedDvdstoreServer) DeleteOrder(context.Context, *DeleteOrderReq) (*DeleteOrderRes, error)
func (UnimplementedDvdstoreServer) DeleteProduct ¶
func (UnimplementedDvdstoreServer) DeleteProduct(context.Context, *DeleteProductReq) (*DeleteProductRes, error)
func (UnimplementedDvdstoreServer) GetCustomer ¶
func (UnimplementedDvdstoreServer) GetCustomer(context.Context, *GetCustomerReq) (*GetCustomerRes, error)
func (UnimplementedDvdstoreServer) GetCustomerOrders ¶
func (UnimplementedDvdstoreServer) GetCustomerOrders(context.Context, *GetCustomerOrdersReq) (*GetCustomerOrdersRes, error)
func (UnimplementedDvdstoreServer) GetCustomers ¶
func (UnimplementedDvdstoreServer) GetCustomers(context.Context, *GetCustomersReq) (*GetCustomersRes, error)
func (UnimplementedDvdstoreServer) GetOrder ¶
func (UnimplementedDvdstoreServer) GetOrder(context.Context, *GetOrderReq) (*GetOrderRes, error)
func (UnimplementedDvdstoreServer) GetProduct ¶
func (UnimplementedDvdstoreServer) GetProduct(context.Context, *GetProductReq) (*GetProductRes, error)
func (UnimplementedDvdstoreServer) GetProducts ¶
func (UnimplementedDvdstoreServer) GetProducts(context.Context, *GetProductsReq) (*GetProductsRes, error)
type UnsafeDvdstoreServer ¶
type UnsafeDvdstoreServer interface {
// contains filtered or unexported methods
}
UnsafeDvdstoreServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DvdstoreServer will result in compilation errors.