proto

package
v0.0.0-...-2d13855 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)

View Source
var File_platform_db_pkg_proto_customer_proto protoreflect.FileDescriptor
View Source
var File_platform_db_pkg_proto_database_service_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Customer.ProtoReflect.Descriptor instead.

func (*Customer) GetEmail

func (x *Customer) GetEmail() string

func (*Customer) GetId

func (x *Customer) GetId() string

func (*Customer) GetName

func (x *Customer) GetName() string

func (*Customer) GetPassword

func (x *Customer) GetPassword() string

func (*Customer) ProtoMessage

func (*Customer) ProtoMessage()

func (*Customer) ProtoReflect

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

func (*Customer) Reset

func (x *Customer) Reset()

func (*Customer) String

func (x *Customer) String() string

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.

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

Deprecated: Use Item.ProtoReflect.Descriptor instead.

func (*Item) GetCustomerId

func (x *Item) GetCustomerId() string

func (*Item) GetId

func (x *Item) GetId() string

func (*Item) GetPrice

func (x *Item) GetPrice() int64

func (*Item) GetTitle

func (x *Item) GetTitle() string

func (*Item) ProtoMessage

func (*Item) ProtoMessage()

func (*Item) ProtoReflect

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

func (*Item) Reset

func (x *Item) Reset()

func (*Item) String

func (x *Item) String() string

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) CreateItem

func (UnimplementedDatabaseServiceServer) GetCustomerByEmail

func (UnimplementedDatabaseServiceServer) GetCustomerById

func (UnimplementedDatabaseServiceServer) GetItemById

func (UnimplementedDatabaseServiceServer) ListCustomers

func (UnimplementedDatabaseServiceServer) ListItems

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.

Jump to

Keyboard shortcuts

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