api

package
v0.0.0-...-1e03f0b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package api имплементация grpc сервера

Index

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 ручка изменения пакета

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL