app

package
v0.0.0-...-1f910d1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEcho

func NewEcho(router Router, cfg *config.Config) *echo.Echo

func Start

func Start(e *echo.Echo, cfg *config.Config) error

func Stop

func Stop(db *sql.DB, e *echo.Echo) error

Types

type AppHealth

type AppHealth map[string]error

func Health

func Health(pg *sql.DB, redis *redis.Client) AppHealth

func (AppHealth) Handle

func (h AppHealth) Handle(ec echo.Context) error

type Router

type Router struct {
	dig.In

	Health AppHealth

	Oauth              *auth.OAuthHandler
	BasicAuthValidator middleware.BasicAuthValidator

	service.EmployeeSvc
	service.ClockSvc
}

func (*Router) SetRoute

func (r *Router) SetRoute(e *echo.Echo)

Directories

Path Synopsis
infra
di
wrapper for dependency injection using dig
wrapper for dependency injection using dig

Jump to

Keyboard shortcuts

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