server

package
v0.0.0-...-984e724 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAppHandler

func NewAppHandler(app *App, f func(app *App, ctx context.Context, w http.ResponseWriter, r *http.Request)) http.Handler

Types

type App

type App struct {
	Config  AppConfig
	Service AppServices
	Context context.Context
}

func NewApp

func NewApp(config *AppConfig) (*App, error)

type AppConfig

type AppConfig struct {
	Database struct {
		Connection string
	}
}

func ReadConfigFile

func ReadConfigFile(path string) (*AppConfig, error)

type AppServices

type AppServices struct {
	DB db.Service
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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