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) List(ctx context.Context, req *proto.ListRequest) (*proto.ListResponse, error)
- func (s *ServerAPI) Supplier(ctx context.Context, req *proto.SupplierRequest) (*proto.SupplierResponse, 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.UnimplementedSupplierServiceServer // contains filtered or unexported fields }
func (*ServerAPI) Create ¶
func (s *ServerAPI) Create(ctx context.Context, req *proto.CreateRequest) (*proto.CreateResponse, error)
func (*ServerAPI) List ¶
func (s *ServerAPI) List(ctx context.Context, req *proto.ListRequest) (*proto.ListResponse, error)
func (*ServerAPI) Supplier ¶
func (s *ServerAPI) Supplier(ctx context.Context, req *proto.SupplierRequest) (*proto.SupplierResponse, 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.