golazy.dev
–
golazy.dev
/
lazyapp
Index
|
Files
package lazyapp
import "golazy.dev/lazyapp"
Types
type App
type App struct {
Name string
Context context.Context
Dispatcher *lazydispatch.Dispatcher
Router *lazyroutes.Scope
}
func New
func New(config Config) *App
func (app *App) ServeHTTP
func (app *App) ServeHTTP(w http.ResponseWriter, r *http.Request)
type Config
type Config struct {
Name string
Drawer func(*lazyroutes.Scope)
Public func() (fs.FS, error)
Views func() (fs.FS, error)
Context func(context.Context) context.Context
Middlewares []lazydispatch.Middleware
}