golazy

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GolazyApp

type GolazyApp struct {
	App        lazyapp.LazyApp
	Server     lazyhttp.HttpService
	Assets     lazyassets.Server
	Views      lazyview.Views
	Dispatcher *lazydispatch.Dispatcher
}

func NewApp

func NewApp(name, version string) *GolazyApp

func NewWithContext

func NewWithContext(ctx context.Context, name, version string) *GolazyApp

func (*GolazyApp) AddAsset

func (b *GolazyApp) AddAsset(path string, content []byte)

func (*GolazyApp) AddAssets

func (b *GolazyApp) AddAssets(fs fs.FS)

func (*GolazyApp) AddViews

func (b *GolazyApp) AddViews(fs fs.FS)

func (*GolazyApp) DrawRoutes

func (b *GolazyApp) DrawRoutes(fn func(r *lazydispatch.Scope)) *lazydispatch.Scope

func (*GolazyApp) Run

func (b *GolazyApp) Run() error

func (*GolazyApp) Start

func (b *GolazyApp) Start() <-chan (error)

func (*GolazyApp) Use

func (b *GolazyApp) Use(middleware func(http.Handler) http.Handler)

Jump to

Keyboard shortcuts

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