handlers

package
v0.0.0-...-7acbbf3 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthCheckRoute

type HealthCheckRoute struct {
}

func NewHealthCheckRoute

func NewHealthCheckRoute() HealthCheckRoute

func (HealthCheckRoute) GetHealthCheck

func (hcr HealthCheckRoute) GetHealthCheck() mw.AppHandler

GetHealthCheck returns OK when is called

func (HealthCheckRoute) SetupRoutes

func (hcr HealthCheckRoute) SetupRoutes(routePath string, router *mux.Router)

type UserRoute

type UserRoute struct {
	UserController controller.UserController
}

func NewUserRoute

func NewUserRoute(userController controller.UserController) UserRoute

func (UserRoute) GetUserById

func (ur UserRoute) GetUserById() middleware.AppHandler

GetUserById retrieves a user by it's Id

func (UserRoute) RegisterUser

func (ur UserRoute) RegisterUser() middleware.AppHandler

RegisterUser registers a user

func (UserRoute) SetupRoutes

func (ur UserRoute) SetupRoutes(routePath string, router *mux.Router)

type UserRouteFactory

type UserRouteFactory struct {
}

func (UserRouteFactory) CreateUserRoute

func (urf UserRouteFactory) CreateUserRoute() UserRoute

Jump to

Keyboard shortcuts

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