v1

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package v1 provides structures and functions to implement HTTP controllers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthMiddleware

func AuthMiddleware(auth usecase.Auth, logger log.Logger) api.Middleware

AuthMiddleware creates a middleware that verifies access token. It returns api.Middleware instance.

func Mux

func Mux(userUC usecase.User, tokenUC usecase.Token, authUC usecase.Auth, logger log.Logger) http.Handler

Mux creates a new mux and mounts controllers. It returns pointer to a chi.Mux instance.

Types

This section is empty.

Jump to

Keyboard shortcuts

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