application

package
v0.0.0-...-7d1b427 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Config       Config
	Db           *sql.DB
	Server       *http.Server
	UsersService services.UsersService
}

func (*Application) GetAllUsers

func (app *Application) GetAllUsers(w http.ResponseWriter, r *http.Request)

func (*Application) NewApplication

func (app *Application) NewApplication() error

func (*Application) RegisterRoutes

func (app *Application) RegisterRoutes() http.Handler

type Config

type Config struct {
	Addr string
	Db   DbConfig
}

type DbConfig

type DbConfig struct {
	Addr         string
	MaxOpenConns int
	MaxIdleConns int
	MaxIdleTime  time.Duration
}

Jump to

Keyboard shortcuts

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