Documentation ¶
Index ¶
- func RegisterServer(gRPC *grpc.Server, log *slog.Logger, repository *repository.Repository)
- type ServerAPI
- func (s *ServerAPI) Cancel(ctx context.Context, req *proto.CancelRequest) (*proto.CancelResponse, error)
- func (s *ServerAPI) Complete(ctx context.Context, req *proto.CompleteRequest) (*proto.CompleteResponse, error)
- 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) Order(ctx context.Context, req *proto.OrderRequest) (*proto.OrderResponse, 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.UnimplementedOrderServiceServer // contains filtered or unexported fields }
func (*ServerAPI) Cancel ¶
func (s *ServerAPI) Cancel(ctx context.Context, req *proto.CancelRequest) (*proto.CancelResponse, error)
func (*ServerAPI) Complete ¶
func (s *ServerAPI) Complete(ctx context.Context, req *proto.CompleteRequest) (*proto.CompleteResponse, error)
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) Order ¶
func (s *ServerAPI) Order(ctx context.Context, req *proto.OrderRequest) (*proto.OrderResponse, 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.