restapi

package
v0.0.0-...-03da4f4 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoggingMiddleware

func LoggingMiddleware(next http.Handler) http.Handler

Types

type Handler

type Handler struct {
	SwaggerController controllers.SwaggerController
	FilmController    controllers.FilmController
	UserController    controllers.UserController
}

func (*Handler) InitRouter

func (c *Handler) InitRouter(conf *configParser.ConnectionConfig) http.Handler

TODO: Set context through all handlers

type Middleware

type Middleware func(http.Handler) http.Handler

func CacheMiddlewareTTL

func CacheMiddlewareTTL(ttl int) Middleware

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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