Documentation ¶
Index ¶
- type Server
- func (s *Server) CreateCustomer(ctx context.Context, req *proto.CreateCustomerRequest) (*proto.CreateCustomerResponse, error)
- func (s *Server) CreateItem(ctx context.Context, req *proto.CreateItemRequest) (*proto.CreateItemResponse, error)
- func (s *Server) GetCustomerByEmail(ctx context.Context, req *proto.GetCustomerByEmailRequest) (*proto.GetCustomerByEmailResponse, error)
- func (s *Server) GetCustomerById(ctx context.Context, req *proto.GetCustomerByIdRequest) (*proto.GetCustomerByIdResponse, error)
- func (s *Server) GetItemById(ctx context.Context, req *proto.GetItemByIdRequest) (*proto.GetItemByIdResponse, error)
- func (s *Server) ListCustomers(ctx context.Context, req *proto.ListCustomersRequest) (*proto.ListCustomersResponse, error)
- func (s *Server) ListItems(ctx context.Context, req *proto.ListItemsRequest) (*proto.ListItemsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { proto.UnimplementedDatabaseServiceServer // contains filtered or unexported fields }
func (*Server) CreateCustomer ¶
func (s *Server) CreateCustomer(ctx context.Context, req *proto.CreateCustomerRequest) (*proto.CreateCustomerResponse, error)
func (*Server) CreateItem ¶
func (s *Server) CreateItem(ctx context.Context, req *proto.CreateItemRequest) (*proto.CreateItemResponse, error)
func (*Server) GetCustomerByEmail ¶
func (s *Server) GetCustomerByEmail(ctx context.Context, req *proto.GetCustomerByEmailRequest) (*proto.GetCustomerByEmailResponse, error)
func (*Server) GetCustomerById ¶
func (s *Server) GetCustomerById(ctx context.Context, req *proto.GetCustomerByIdRequest) (*proto.GetCustomerByIdResponse, error)
func (*Server) GetItemById ¶
func (s *Server) GetItemById(ctx context.Context, req *proto.GetItemByIdRequest) (*proto.GetItemByIdResponse, error)
func (*Server) ListCustomers ¶
func (s *Server) ListCustomers(ctx context.Context, req *proto.ListCustomersRequest) (*proto.ListCustomersResponse, error)
func (*Server) ListItems ¶
func (s *Server) ListItems(ctx context.Context, req *proto.ListItemsRequest) (*proto.ListItemsResponse, error)
Click to show internal directories.
Click to hide internal directories.