http

package
v0.0.0-...-98bdd0e Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEcho

func NewEcho(
	shorten handler.ShortenHandler,
	getShorten handler.GetShortURLHandler,
	getOriginal handler.GetOriginalURLHandler,
	redirect handler.RedirectHandler,
) *echo.Echo

Types

type Config

type Config struct {
	Address string
}

func NewConfig

func NewConfig() Config

type Server

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

func NewServer

func NewServer(cfg Config, echoServer *echo.Echo, logger zerolog.Logger) *Server

func (*Server) Run

func (s *Server) Run() error

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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