v1

package
v0.0.0-...-986cd6b Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Overview

Package v1 реализует пути маршрутизации. Каждая служба в своем файле.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound             = errors.New("not found")
	ErrAlreadyExists        = errors.New("already exists")
	ErrAlreadyBeenUploaded  = errors.New("the order number has already been uploaded by another user")
	ErrAccessDenied         = errors.New(`access denied`)
	ErrBadRequest           = errors.New("bad request")
	ErrNotDataAnswer        = errors.New("no data to answer")
	ErrBadFormat            = errors.New("invalid request format")
	ErrBadFormatOrder       = errors.New("invalid order number format")
	ErrIncorrectLoginOrPass = errors.New("incorrect login or password")
)

Functions

func NewRouter

func NewRouter(handler *chi.Mux, l logger.Interface, s usecase.Gofermart, cfg *config.Config, c *client.AClient)

NewRouter -. Swagger spec: @title Gofermart @description URL shortener server @version 0.1.0 @host localhost:8080 @BasePath /

Types

This section is empty.

Jump to

Keyboard shortcuts

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