httpcontroller

package
v0.0.0-...-cef7651 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func New

func New(host string, port int, useCases interfaces.UseCases, logger *slog.Logger) *Controller

New creates an instance of HTTP Controller.

func (*Controller) Run

func (controller *Controller) Run()

Run HTTP server.

func (*Controller) Stop

func (controller *Controller) Stop()

Stop HTTP server gracefully (graceful shutdown).

type TokensHandler

type TokensHandler struct {
	UseCases interfaces.UseCases
	Logger   *slog.Logger
}

func (TokensHandler) GetHandleFunc

func (handler TokensHandler) GetHandleFunc() func(http.ResponseWriter, *http.Request)

Jump to

Keyboard shortcuts

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