Documentation ¶
Index ¶
- type Implementation
- func (i *Implementation) CancelOrder(ctx context.Context, req *parcel_delivery_grpc.CancelOrderRequest) (*parcel_delivery_grpc.CancelOrderResponse, error)
- func (i *Implementation) ChangeDestination(ctx context.Context, req *parcel_delivery_grpc.ChangeDestinationRequest) (*parcel_delivery_grpc.ChengeDestinationResponse, error)
- func (i *Implementation) CreateOrder(ctx context.Context, req *parcel_delivery_grpc.CreateOrderRequest) (*parcel_delivery_grpc.CreateOrderResponse, error)
- func (i *Implementation) GetOrder(ctx context.Context, req *parcel_delivery_grpc.GetOrderRequest) (*parcel_delivery_grpc.GetOrderResponse, error)
- func (i *Implementation) ListOrders(ctx context.Context, req *parcel_delivery_grpc.ListOrdersRequest) (*parcel_delivery_grpc.ListOrdersResponse, error)
- func (i *Implementation) SignIn(ctx context.Context, req *parcel_delivery_grpc.SignInRequest) (*parcel_delivery_grpc.SignInResponse, error)
- func (i *Implementation) SignUp(ctx context.Context, req *parcel_delivery_grpc.SignUpRequest) (*parcel_delivery_grpc.SignUpResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Implementation ¶
type Implementation struct { parcel_delivery_grpc.UnimplementedParcelDeliveryServer OrdersRepo repositories.Orders UsersRepo repositories.Users Hasher auth.Hasher TokenManager auth.TokenManager }
func NewImplementation ¶
func NewImplementation( ordersRepo repositories.Orders, usersRepo repositories.Users, hasher auth.Hasher, tokenManager auth.TokenManager, ) Implementation
func (*Implementation) CancelOrder ¶
func (i *Implementation) CancelOrder(ctx context.Context, req *parcel_delivery_grpc.CancelOrderRequest) (*parcel_delivery_grpc.CancelOrderResponse, error)
func (*Implementation) ChangeDestination ¶
func (i *Implementation) ChangeDestination(ctx context.Context, req *parcel_delivery_grpc.ChangeDestinationRequest) (*parcel_delivery_grpc.ChengeDestinationResponse, error)
func (*Implementation) CreateOrder ¶
func (i *Implementation) CreateOrder(ctx context.Context, req *parcel_delivery_grpc.CreateOrderRequest) (*parcel_delivery_grpc.CreateOrderResponse, error)
func (*Implementation) GetOrder ¶
func (i *Implementation) GetOrder(ctx context.Context, req *parcel_delivery_grpc.GetOrderRequest) (*parcel_delivery_grpc.GetOrderResponse, error)
func (*Implementation) ListOrders ¶
func (i *Implementation) ListOrders(ctx context.Context, req *parcel_delivery_grpc.ListOrdersRequest) (*parcel_delivery_grpc.ListOrdersResponse, error)
func (*Implementation) SignIn ¶
func (i *Implementation) SignIn(ctx context.Context, req *parcel_delivery_grpc.SignInRequest) (*parcel_delivery_grpc.SignInResponse, error)
func (*Implementation) SignUp ¶
func (i *Implementation) SignUp(ctx context.Context, req *parcel_delivery_grpc.SignUpRequest) (*parcel_delivery_grpc.SignUpResponse, error)
Click to show internal directories.
Click to hide internal directories.