web

package
v0.0.0-...-9588241 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RegisterRoutesResult

type RegisterRoutesResult bool

func RegisterRoutes

func RegisterRoutes(
	router fiber.Router,
	config ServerConfig,
	pageRenderHandler *page_render_handler.PageRender,
	index *handler.Index,
	getProducts *handler.GetProducts,
) RegisterRoutesResult

type Server

type Server interface {
	Router() fiber.Router
	Start()
	Stop()
}

func NewServer

func NewServer(conf ServerConfig, errorHandler fiber.ErrorHandler, render fiber.Views) Server

type ServerConfig

type ServerConfig interface {
	GetAddr() string
	GetReadTimeout() time.Duration
	GetWriteTimeout() time.Duration
	GetStaticPath() string
}

type ServerImpl

type ServerImpl struct {
	App  *fiber.App
	Conf ServerConfig
}

func (*ServerImpl) Router

func (s *ServerImpl) Router() fiber.Router

func (*ServerImpl) Start

func (s *ServerImpl) Start()

func (*ServerImpl) Stop

func (s *ServerImpl) Stop()

Jump to

Keyboard shortcuts

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