core

package
v0.0.0-...-72c62c3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupRoutes

func SetupRoutes(h *handler.Handler, e *echo.Echo)

Types

type Config

type Config struct {
	AppAddr string `env:"APP_ADDR" default:":8080"`
	DBUser  string `env:"DB_USER" default:"root"`
	DBPass  string `env:"DB_PASS" default:"pass"`
	DBHost  string `env:"DB_HOST" default:"localhost"`
	DBPort  int    `env:"DB_PORT" default:"3306"`
	DBName  string `env:"DB_NAME" default:"app"`
}

func (Config) MySQLConfig

func (c Config) MySQLConfig() *mysql.Config

func (*Config) Parse

func (c *Config) Parse()

type Deps

type Deps struct {
	Handler *handler.Handler
}

func InjectDeps

func InjectDeps(db *sqlx.DB) *Deps

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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