Documentation ¶
Index ¶
- Variables
- func RegisterDatabaseServiceServer(s grpc.ServiceRegistrar, srv DatabaseServiceServer)
- type CreateCustomerRequest
- func (*CreateCustomerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCustomerRequest) GetEmail() string
- func (x *CreateCustomerRequest) GetName() string
- func (x *CreateCustomerRequest) GetPassword() string
- func (*CreateCustomerRequest) ProtoMessage()
- func (x *CreateCustomerRequest) ProtoReflect() protoreflect.Message
- func (x *CreateCustomerRequest) Reset()
- func (x *CreateCustomerRequest) String() string
- type CreateCustomerResponse
- func (*CreateCustomerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCustomerResponse) GetCustomer() *Customer
- func (*CreateCustomerResponse) ProtoMessage()
- func (x *CreateCustomerResponse) ProtoReflect() protoreflect.Message
- func (x *CreateCustomerResponse) Reset()
- func (x *CreateCustomerResponse) String() string
- type CreateItemRequest
- func (*CreateItemRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateItemRequest) GetCustomerId() string
- func (x *CreateItemRequest) GetPrice() int64
- func (x *CreateItemRequest) GetTitle() string
- func (*CreateItemRequest) ProtoMessage()
- func (x *CreateItemRequest) ProtoReflect() protoreflect.Message
- func (x *CreateItemRequest) Reset()
- func (x *CreateItemRequest) String() string
- type CreateItemResponse
- type Customer
- func (*Customer) Descriptor() ([]byte, []int)deprecated
- func (x *Customer) GetEmail() string
- func (x *Customer) GetId() string
- func (x *Customer) GetName() string
- func (x *Customer) GetPassword() string
- func (*Customer) ProtoMessage()
- func (x *Customer) ProtoReflect() protoreflect.Message
- func (x *Customer) Reset()
- func (x *Customer) String() string
- type DatabaseServiceClient
- type DatabaseServiceServer
- type GetCustomerByEmailRequest
- func (*GetCustomerByEmailRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCustomerByEmailRequest) GetEmail() string
- func (*GetCustomerByEmailRequest) ProtoMessage()
- func (x *GetCustomerByEmailRequest) ProtoReflect() protoreflect.Message
- func (x *GetCustomerByEmailRequest) Reset()
- func (x *GetCustomerByEmailRequest) String() string
- type GetCustomerByEmailResponse
- func (*GetCustomerByEmailResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCustomerByEmailResponse) GetCustomer() *Customer
- func (*GetCustomerByEmailResponse) ProtoMessage()
- func (x *GetCustomerByEmailResponse) ProtoReflect() protoreflect.Message
- func (x *GetCustomerByEmailResponse) Reset()
- func (x *GetCustomerByEmailResponse) String() string
- type GetCustomerByIdRequest
- func (*GetCustomerByIdRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCustomerByIdRequest) GetId() string
- func (*GetCustomerByIdRequest) ProtoMessage()
- func (x *GetCustomerByIdRequest) ProtoReflect() protoreflect.Message
- func (x *GetCustomerByIdRequest) Reset()
- func (x *GetCustomerByIdRequest) String() string
- type GetCustomerByIdResponse
- func (*GetCustomerByIdResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCustomerByIdResponse) GetCustomer() *Customer
- func (*GetCustomerByIdResponse) ProtoMessage()
- func (x *GetCustomerByIdResponse) ProtoReflect() protoreflect.Message
- func (x *GetCustomerByIdResponse) Reset()
- func (x *GetCustomerByIdResponse) String() string
- type GetItemByIdRequest
- type GetItemByIdResponse
- func (*GetItemByIdResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetItemByIdResponse) GetItem() *Item
- func (*GetItemByIdResponse) ProtoMessage()
- func (x *GetItemByIdResponse) ProtoReflect() protoreflect.Message
- func (x *GetItemByIdResponse) Reset()
- func (x *GetItemByIdResponse) String() string
- type Item
- func (*Item) Descriptor() ([]byte, []int)deprecated
- func (x *Item) GetCustomerId() string
- func (x *Item) GetId() string
- func (x *Item) GetPrice() int64
- func (x *Item) GetTitle() string
- func (*Item) ProtoMessage()
- func (x *Item) ProtoReflect() protoreflect.Message
- func (x *Item) Reset()
- func (x *Item) String() string
- type ListCustomersRequest
- type ListCustomersResponse
- func (*ListCustomersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListCustomersResponse) GetCustomers() []*Customer
- func (*ListCustomersResponse) ProtoMessage()
- func (x *ListCustomersResponse) ProtoReflect() protoreflect.Message
- func (x *ListCustomersResponse) Reset()
- func (x *ListCustomersResponse) String() string
- type ListItemsRequest
- type ListItemsResponse
- type UnimplementedDatabaseServiceServer
- func (UnimplementedDatabaseServiceServer) CreateCustomer(context.Context, *CreateCustomerRequest) (*CreateCustomerResponse, error)
- func (UnimplementedDatabaseServiceServer) CreateItem(context.Context, *CreateItemRequest) (*CreateItemResponse, error)
- func (UnimplementedDatabaseServiceServer) GetCustomerByEmail(context.Context, *GetCustomerByEmailRequest) (*GetCustomerByEmailResponse, error)
- func (UnimplementedDatabaseServiceServer) GetCustomerById(context.Context, *GetCustomerByIdRequest) (*GetCustomerByIdResponse, error)
- func (UnimplementedDatabaseServiceServer) GetItemById(context.Context, *GetItemByIdRequest) (*GetItemByIdResponse, error)
- func (UnimplementedDatabaseServiceServer) ListCustomers(context.Context, *ListCustomersRequest) (*ListCustomersResponse, error)
- func (UnimplementedDatabaseServiceServer) ListItems(context.Context, *ListItemsRequest) (*ListItemsResponse, error)
- type UnsafeDatabaseServiceServer
Constants ¶
This section is empty.
Variables ¶
var DatabaseService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "kitanoyoru.gigaservices.db.DatabaseService", HandlerType: (*DatabaseServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateCustomer", Handler: _DatabaseService_CreateCustomer_Handler, }, { MethodName: "GetCustomerById", Handler: _DatabaseService_GetCustomerById_Handler, }, { MethodName: "GetCustomerByEmail", Handler: _DatabaseService_GetCustomerByEmail_Handler, }, { MethodName: "ListCustomers", Handler: _DatabaseService_ListCustomers_Handler, }, { MethodName: "CreateItem", Handler: _DatabaseService_CreateItem_Handler, }, { MethodName: "GetItemById", Handler: _DatabaseService_GetItemById_Handler, }, { MethodName: "ListItems", Handler: _DatabaseService_ListItems_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "platform/db/pkg/proto/database_service.proto", }
DatabaseService_ServiceDesc is the grpc.ServiceDesc for DatabaseService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_platform_db_pkg_proto_customer_proto protoreflect.FileDescriptor
var File_platform_db_pkg_proto_database_service_proto protoreflect.FileDescriptor
var File_platform_db_pkg_proto_item_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDatabaseServiceServer ¶
func RegisterDatabaseServiceServer(s grpc.ServiceRegistrar, srv DatabaseServiceServer)
Types ¶
type CreateCustomerRequest ¶
type CreateCustomerRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*CreateCustomerRequest) Descriptor
deprecated
func (*CreateCustomerRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateCustomerRequest.ProtoReflect.Descriptor instead.
func (*CreateCustomerRequest) GetEmail ¶
func (x *CreateCustomerRequest) GetEmail() string
func (*CreateCustomerRequest) GetName ¶
func (x *CreateCustomerRequest) GetName() string
func (*CreateCustomerRequest) GetPassword ¶
func (x *CreateCustomerRequest) GetPassword() string
func (*CreateCustomerRequest) ProtoMessage ¶
func (*CreateCustomerRequest) ProtoMessage()
func (*CreateCustomerRequest) ProtoReflect ¶
func (x *CreateCustomerRequest) ProtoReflect() protoreflect.Message
func (*CreateCustomerRequest) Reset ¶
func (x *CreateCustomerRequest) Reset()
func (*CreateCustomerRequest) String ¶
func (x *CreateCustomerRequest) String() string
type CreateCustomerResponse ¶
type CreateCustomerResponse struct { Customer *Customer `protobuf:"bytes,1,opt,name=customer,proto3" json:"customer,omitempty"` // contains filtered or unexported fields }
func (*CreateCustomerResponse) Descriptor
deprecated
func (*CreateCustomerResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateCustomerResponse.ProtoReflect.Descriptor instead.
func (*CreateCustomerResponse) GetCustomer ¶
func (x *CreateCustomerResponse) GetCustomer() *Customer
func (*CreateCustomerResponse) ProtoMessage ¶
func (*CreateCustomerResponse) ProtoMessage()
func (*CreateCustomerResponse) ProtoReflect ¶
func (x *CreateCustomerResponse) ProtoReflect() protoreflect.Message
func (*CreateCustomerResponse) Reset ¶
func (x *CreateCustomerResponse) Reset()
func (*CreateCustomerResponse) String ¶
func (x *CreateCustomerResponse) String() string
type CreateItemRequest ¶
type CreateItemRequest struct { CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Price int64 `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"` // contains filtered or unexported fields }
func (*CreateItemRequest) Descriptor
deprecated
func (*CreateItemRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateItemRequest.ProtoReflect.Descriptor instead.
func (*CreateItemRequest) GetCustomerId ¶
func (x *CreateItemRequest) GetCustomerId() string
func (*CreateItemRequest) GetPrice ¶
func (x *CreateItemRequest) GetPrice() int64
func (*CreateItemRequest) GetTitle ¶
func (x *CreateItemRequest) GetTitle() string
func (*CreateItemRequest) ProtoMessage ¶
func (*CreateItemRequest) ProtoMessage()
func (*CreateItemRequest) ProtoReflect ¶
func (x *CreateItemRequest) ProtoReflect() protoreflect.Message
func (*CreateItemRequest) Reset ¶
func (x *CreateItemRequest) Reset()
func (*CreateItemRequest) String ¶
func (x *CreateItemRequest) String() string
type CreateItemResponse ¶
type CreateItemResponse struct { Item *Item `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"` // contains filtered or unexported fields }
func (*CreateItemResponse) Descriptor
deprecated
func (*CreateItemResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateItemResponse.ProtoReflect.Descriptor instead.
func (*CreateItemResponse) GetItem ¶
func (x *CreateItemResponse) GetItem() *Item
func (*CreateItemResponse) ProtoMessage ¶
func (*CreateItemResponse) ProtoMessage()
func (*CreateItemResponse) ProtoReflect ¶
func (x *CreateItemResponse) ProtoReflect() protoreflect.Message
func (*CreateItemResponse) Reset ¶
func (x *CreateItemResponse) Reset()
func (*CreateItemResponse) String ¶
func (x *CreateItemResponse) String() string
type Customer ¶
type Customer struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*Customer) Descriptor
deprecated
func (*Customer) GetPassword ¶
func (*Customer) ProtoMessage ¶
func (*Customer) ProtoMessage()
func (*Customer) ProtoReflect ¶
func (x *Customer) ProtoReflect() protoreflect.Message
type DatabaseServiceClient ¶
type DatabaseServiceClient interface { // Customer API CreateCustomer(ctx context.Context, in *CreateCustomerRequest, opts ...grpc.CallOption) (*CreateCustomerResponse, error) GetCustomerById(ctx context.Context, in *GetCustomerByIdRequest, opts ...grpc.CallOption) (*GetCustomerByIdResponse, error) GetCustomerByEmail(ctx context.Context, in *GetCustomerByEmailRequest, opts ...grpc.CallOption) (*GetCustomerByEmailResponse, error) ListCustomers(ctx context.Context, in *ListCustomersRequest, opts ...grpc.CallOption) (*ListCustomersResponse, error) // Item API CreateItem(ctx context.Context, in *CreateItemRequest, opts ...grpc.CallOption) (*CreateItemResponse, error) GetItemById(ctx context.Context, in *GetItemByIdRequest, opts ...grpc.CallOption) (*GetItemByIdResponse, error) ListItems(ctx context.Context, in *ListItemsRequest, opts ...grpc.CallOption) (*ListItemsResponse, error) }
DatabaseServiceClient is the client API for DatabaseService 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 NewDatabaseServiceClient ¶
func NewDatabaseServiceClient(cc grpc.ClientConnInterface) DatabaseServiceClient
type DatabaseServiceServer ¶
type DatabaseServiceServer interface { // Customer API CreateCustomer(context.Context, *CreateCustomerRequest) (*CreateCustomerResponse, error) GetCustomerById(context.Context, *GetCustomerByIdRequest) (*GetCustomerByIdResponse, error) GetCustomerByEmail(context.Context, *GetCustomerByEmailRequest) (*GetCustomerByEmailResponse, error) ListCustomers(context.Context, *ListCustomersRequest) (*ListCustomersResponse, error) // Item API CreateItem(context.Context, *CreateItemRequest) (*CreateItemResponse, error) GetItemById(context.Context, *GetItemByIdRequest) (*GetItemByIdResponse, error) ListItems(context.Context, *ListItemsRequest) (*ListItemsResponse, error) // contains filtered or unexported methods }
DatabaseServiceServer is the server API for DatabaseService service. All implementations must embed UnimplementedDatabaseServiceServer for forward compatibility
type GetCustomerByEmailRequest ¶
type GetCustomerByEmailRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*GetCustomerByEmailRequest) Descriptor
deprecated
func (*GetCustomerByEmailRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCustomerByEmailRequest.ProtoReflect.Descriptor instead.
func (*GetCustomerByEmailRequest) GetEmail ¶
func (x *GetCustomerByEmailRequest) GetEmail() string
func (*GetCustomerByEmailRequest) ProtoMessage ¶
func (*GetCustomerByEmailRequest) ProtoMessage()
func (*GetCustomerByEmailRequest) ProtoReflect ¶
func (x *GetCustomerByEmailRequest) ProtoReflect() protoreflect.Message
func (*GetCustomerByEmailRequest) Reset ¶
func (x *GetCustomerByEmailRequest) Reset()
func (*GetCustomerByEmailRequest) String ¶
func (x *GetCustomerByEmailRequest) String() string
type GetCustomerByEmailResponse ¶
type GetCustomerByEmailResponse struct { Customer *Customer `protobuf:"bytes,1,opt,name=customer,proto3" json:"customer,omitempty"` // contains filtered or unexported fields }
func (*GetCustomerByEmailResponse) Descriptor
deprecated
func (*GetCustomerByEmailResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCustomerByEmailResponse.ProtoReflect.Descriptor instead.
func (*GetCustomerByEmailResponse) GetCustomer ¶
func (x *GetCustomerByEmailResponse) GetCustomer() *Customer
func (*GetCustomerByEmailResponse) ProtoMessage ¶
func (*GetCustomerByEmailResponse) ProtoMessage()
func (*GetCustomerByEmailResponse) ProtoReflect ¶
func (x *GetCustomerByEmailResponse) ProtoReflect() protoreflect.Message
func (*GetCustomerByEmailResponse) Reset ¶
func (x *GetCustomerByEmailResponse) Reset()
func (*GetCustomerByEmailResponse) String ¶
func (x *GetCustomerByEmailResponse) String() string
type GetCustomerByIdRequest ¶
type GetCustomerByIdRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetCustomerByIdRequest) Descriptor
deprecated
func (*GetCustomerByIdRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCustomerByIdRequest.ProtoReflect.Descriptor instead.
func (*GetCustomerByIdRequest) GetId ¶
func (x *GetCustomerByIdRequest) GetId() string
func (*GetCustomerByIdRequest) ProtoMessage ¶
func (*GetCustomerByIdRequest) ProtoMessage()
func (*GetCustomerByIdRequest) ProtoReflect ¶
func (x *GetCustomerByIdRequest) ProtoReflect() protoreflect.Message
func (*GetCustomerByIdRequest) Reset ¶
func (x *GetCustomerByIdRequest) Reset()
func (*GetCustomerByIdRequest) String ¶
func (x *GetCustomerByIdRequest) String() string
type GetCustomerByIdResponse ¶
type GetCustomerByIdResponse struct { Customer *Customer `protobuf:"bytes,1,opt,name=customer,proto3" json:"customer,omitempty"` // contains filtered or unexported fields }
func (*GetCustomerByIdResponse) Descriptor
deprecated
func (*GetCustomerByIdResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCustomerByIdResponse.ProtoReflect.Descriptor instead.
func (*GetCustomerByIdResponse) GetCustomer ¶
func (x *GetCustomerByIdResponse) GetCustomer() *Customer
func (*GetCustomerByIdResponse) ProtoMessage ¶
func (*GetCustomerByIdResponse) ProtoMessage()
func (*GetCustomerByIdResponse) ProtoReflect ¶
func (x *GetCustomerByIdResponse) ProtoReflect() protoreflect.Message
func (*GetCustomerByIdResponse) Reset ¶
func (x *GetCustomerByIdResponse) Reset()
func (*GetCustomerByIdResponse) String ¶
func (x *GetCustomerByIdResponse) String() string
type GetItemByIdRequest ¶
type GetItemByIdRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetItemByIdRequest) Descriptor
deprecated
func (*GetItemByIdRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetItemByIdRequest.ProtoReflect.Descriptor instead.
func (*GetItemByIdRequest) GetId ¶
func (x *GetItemByIdRequest) GetId() string
func (*GetItemByIdRequest) ProtoMessage ¶
func (*GetItemByIdRequest) ProtoMessage()
func (*GetItemByIdRequest) ProtoReflect ¶
func (x *GetItemByIdRequest) ProtoReflect() protoreflect.Message
func (*GetItemByIdRequest) Reset ¶
func (x *GetItemByIdRequest) Reset()
func (*GetItemByIdRequest) String ¶
func (x *GetItemByIdRequest) String() string
type GetItemByIdResponse ¶
type GetItemByIdResponse struct { Item *Item `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"` // contains filtered or unexported fields }
func (*GetItemByIdResponse) Descriptor
deprecated
func (*GetItemByIdResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetItemByIdResponse.ProtoReflect.Descriptor instead.
func (*GetItemByIdResponse) GetItem ¶
func (x *GetItemByIdResponse) GetItem() *Item
func (*GetItemByIdResponse) ProtoMessage ¶
func (*GetItemByIdResponse) ProtoMessage()
func (*GetItemByIdResponse) ProtoReflect ¶
func (x *GetItemByIdResponse) ProtoReflect() protoreflect.Message
func (*GetItemByIdResponse) Reset ¶
func (x *GetItemByIdResponse) Reset()
func (*GetItemByIdResponse) String ¶
func (x *GetItemByIdResponse) String() string
type Item ¶
type Item struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` CustomerId string `protobuf:"bytes,2,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` Price int64 `protobuf:"varint,4,opt,name=price,proto3" json:"price,omitempty"` // contains filtered or unexported fields }
func (*Item) Descriptor
deprecated
func (*Item) GetCustomerId ¶
func (*Item) ProtoMessage ¶
func (*Item) ProtoMessage()
func (*Item) ProtoReflect ¶
func (x *Item) ProtoReflect() protoreflect.Message
type ListCustomersRequest ¶
type ListCustomersRequest struct {
// contains filtered or unexported fields
}
func (*ListCustomersRequest) Descriptor
deprecated
func (*ListCustomersRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListCustomersRequest.ProtoReflect.Descriptor instead.
func (*ListCustomersRequest) ProtoMessage ¶
func (*ListCustomersRequest) ProtoMessage()
func (*ListCustomersRequest) ProtoReflect ¶
func (x *ListCustomersRequest) ProtoReflect() protoreflect.Message
func (*ListCustomersRequest) Reset ¶
func (x *ListCustomersRequest) Reset()
func (*ListCustomersRequest) String ¶
func (x *ListCustomersRequest) String() string
type ListCustomersResponse ¶
type ListCustomersResponse struct { Customers []*Customer `protobuf:"bytes,1,rep,name=customers,proto3" json:"customers,omitempty"` // contains filtered or unexported fields }
func (*ListCustomersResponse) Descriptor
deprecated
func (*ListCustomersResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListCustomersResponse.ProtoReflect.Descriptor instead.
func (*ListCustomersResponse) GetCustomers ¶
func (x *ListCustomersResponse) GetCustomers() []*Customer
func (*ListCustomersResponse) ProtoMessage ¶
func (*ListCustomersResponse) ProtoMessage()
func (*ListCustomersResponse) ProtoReflect ¶
func (x *ListCustomersResponse) ProtoReflect() protoreflect.Message
func (*ListCustomersResponse) Reset ¶
func (x *ListCustomersResponse) Reset()
func (*ListCustomersResponse) String ¶
func (x *ListCustomersResponse) String() string
type ListItemsRequest ¶
type ListItemsRequest struct {
// contains filtered or unexported fields
}
func (*ListItemsRequest) Descriptor
deprecated
func (*ListItemsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListItemsRequest.ProtoReflect.Descriptor instead.
func (*ListItemsRequest) ProtoMessage ¶
func (*ListItemsRequest) ProtoMessage()
func (*ListItemsRequest) ProtoReflect ¶
func (x *ListItemsRequest) ProtoReflect() protoreflect.Message
func (*ListItemsRequest) Reset ¶
func (x *ListItemsRequest) Reset()
func (*ListItemsRequest) String ¶
func (x *ListItemsRequest) String() string
type ListItemsResponse ¶
type ListItemsResponse struct { Items []*Item `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*ListItemsResponse) Descriptor
deprecated
func (*ListItemsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListItemsResponse.ProtoReflect.Descriptor instead.
func (*ListItemsResponse) GetItems ¶
func (x *ListItemsResponse) GetItems() []*Item
func (*ListItemsResponse) ProtoMessage ¶
func (*ListItemsResponse) ProtoMessage()
func (*ListItemsResponse) ProtoReflect ¶
func (x *ListItemsResponse) ProtoReflect() protoreflect.Message
func (*ListItemsResponse) Reset ¶
func (x *ListItemsResponse) Reset()
func (*ListItemsResponse) String ¶
func (x *ListItemsResponse) String() string
type UnimplementedDatabaseServiceServer ¶
type UnimplementedDatabaseServiceServer struct { }
UnimplementedDatabaseServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedDatabaseServiceServer) CreateCustomer ¶
func (UnimplementedDatabaseServiceServer) CreateCustomer(context.Context, *CreateCustomerRequest) (*CreateCustomerResponse, error)
func (UnimplementedDatabaseServiceServer) CreateItem ¶
func (UnimplementedDatabaseServiceServer) CreateItem(context.Context, *CreateItemRequest) (*CreateItemResponse, error)
func (UnimplementedDatabaseServiceServer) GetCustomerByEmail ¶
func (UnimplementedDatabaseServiceServer) GetCustomerByEmail(context.Context, *GetCustomerByEmailRequest) (*GetCustomerByEmailResponse, error)
func (UnimplementedDatabaseServiceServer) GetCustomerById ¶
func (UnimplementedDatabaseServiceServer) GetCustomerById(context.Context, *GetCustomerByIdRequest) (*GetCustomerByIdResponse, error)
func (UnimplementedDatabaseServiceServer) GetItemById ¶
func (UnimplementedDatabaseServiceServer) GetItemById(context.Context, *GetItemByIdRequest) (*GetItemByIdResponse, error)
func (UnimplementedDatabaseServiceServer) ListCustomers ¶
func (UnimplementedDatabaseServiceServer) ListCustomers(context.Context, *ListCustomersRequest) (*ListCustomersResponse, error)
func (UnimplementedDatabaseServiceServer) ListItems ¶
func (UnimplementedDatabaseServiceServer) ListItems(context.Context, *ListItemsRequest) (*ListItemsResponse, error)
type UnsafeDatabaseServiceServer ¶
type UnsafeDatabaseServiceServer interface {
// contains filtered or unexported methods
}
UnsafeDatabaseServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DatabaseServiceServer will result in compilation errors.