api

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupRouter

func SetupRouter(
	healthHandler handlers.HealthHandlerInterface,
	hostHandler handlers.HostHandlerInterface,
	metricHandler handlers.MetricHandlerInterface,
	allowedOrigins []string,
) *gin.Engine

SetupRouter initialises the router with all routes and middleware

func SetupRouterWithDB

func SetupRouterWithDB(db *sql.DB, allowedOrigins []string) *gin.Engine

SetupRouterWithDB is a convenience function for production use that creates handlers from a database connection

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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