Documentation ¶
Overview ¶
Package api имплементация grpc сервера
Index ¶
- type PackageAPI
- func (p *PackageAPI) CreateV1(ctx context.Context, req *pb.CreateRequestV1) (*pb.CreateResponseV1, error)
- func (p *PackageAPI) DeleteV1(ctx context.Context, req *pb.DeleteV1Request) (*pb.DeleteV1Response, error)
- func (p *PackageAPI) GetV1(ctx context.Context, req *pb.GetV1Request) (*pb.GetV1Response, error)
- func (p *PackageAPI) ListV1(ctx context.Context, req *pb.ListV1Request) (*pb.ListV1Response, error)
- func (p *PackageAPI) UpdateV1(ctx context.Context, req *pb.UpdateV1Request) (*pb.UpdateV1Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PackageAPI ¶
type PackageAPI struct { pb.UnimplementedLogisticPackageApiServiceServer // contains filtered or unexported fields }
PackageAPI имплементация grpc сервера
func NewPackageAPI ¶
func NewPackageAPI(packageService *service.PackageService) *PackageAPI
NewPackageAPI returns api of logistic-package-api service
func (*PackageAPI) CreateV1 ¶
func (p *PackageAPI) CreateV1(ctx context.Context, req *pb.CreateRequestV1) (*pb.CreateResponseV1, error)
CreateV1 grpc ручка создания пакета
func (*PackageAPI) DeleteV1 ¶
func (p *PackageAPI) DeleteV1(ctx context.Context, req *pb.DeleteV1Request) (*pb.DeleteV1Response, error)
DeleteV1 grpc ручка удаления пакета
func (*PackageAPI) GetV1 ¶
func (p *PackageAPI) GetV1(ctx context.Context, req *pb.GetV1Request) (*pb.GetV1Response, error)
GetV1 grpc ручка получения пакета
func (*PackageAPI) ListV1 ¶
func (p *PackageAPI) ListV1(ctx context.Context, req *pb.ListV1Request) (*pb.ListV1Response, error)
ListV1 grpc ручка получения списка пакетов
func (*PackageAPI) UpdateV1 ¶
func (p *PackageAPI) UpdateV1(ctx context.Context, req *pb.UpdateV1Request) (*pb.UpdateV1Response, error)
UpdateV1 grpc ручка изменения пакета
Click to show internal directories.
Click to hide internal directories.