Documentation ¶
Index ¶
- func RegisterServer(gRPC *grpc.Server, log *slog.Logger, repository *repository.Repository)
- type ServerAPI
- func (s *ServerAPI) Create(ctx context.Context, req *proto.CreateRequest) (*proto.CreateResponse, error)
- func (s *ServerAPI) Customer(ctx context.Context, req *proto.CustomerRequest) (*proto.CustomerResponse, error)
- func (s *ServerAPI) Delete(ctx context.Context, req *proto.DeleteRequest) (*proto.DeleteResponse, error)
- func (s *ServerAPI) List(ctx context.Context, req *proto.ListRequest) (*proto.ListResponse, error)
- func (s *ServerAPI) Update(ctx context.Context, req *proto.UpdateRequest) (*proto.UpdateResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterServer ¶
func RegisterServer(gRPC *grpc.Server, log *slog.Logger, repository *repository.Repository)
Types ¶
type ServerAPI ¶
type ServerAPI struct { proto.UnimplementedCustomerServiceServer // contains filtered or unexported fields }
func (*ServerAPI) Create ¶
func (s *ServerAPI) Create(ctx context.Context, req *proto.CreateRequest) (*proto.CreateResponse, error)
func (*ServerAPI) Customer ¶
func (s *ServerAPI) Customer(ctx context.Context, req *proto.CustomerRequest) (*proto.CustomerResponse, error)
func (*ServerAPI) Delete ¶
func (s *ServerAPI) Delete(ctx context.Context, req *proto.DeleteRequest) (*proto.DeleteResponse, error)
func (*ServerAPI) List ¶
func (s *ServerAPI) List(ctx context.Context, req *proto.ListRequest) (*proto.ListResponse, error)
func (*ServerAPI) Update ¶
func (s *ServerAPI) Update(ctx context.Context, req *proto.UpdateRequest) (*proto.UpdateResponse, error)
Click to show internal directories.
Click to hide internal directories.