hot

package
v2.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Issuer = "ext/hot"
	CtxHot = "ext.hot"
)

ctx

Variables

View Source
var (
	ErrTmpDir = errors.New("TmpDir error")
)

error(s)

Functions

func NotFound added in v2.1.2

func NotFound(k string) sola.Handler

NotFound Handler

Types

type Hot

type Hot struct {
	// contains filtered or unexported fields
}

Hot Plugin

func Modules

func Modules(c sola.Context) *Hot

Modules from context

func New

func New(o *Option) (*Hot, error)

New Hot Plugin

func (*Hot) Handler

func (h *Hot) Handler(k string) sola.Handler

Handler Getter

func (*Hot) Middleware

func (h *Hot) Middleware(k string) sola.Middleware

Middleware Getter

func (*Hot) Scan

func (h *Hot) Scan()

Scan Hot Plugin

func (*Hot) Used

func (h *Hot) Used(app *sola.Sola)

Used by Sola App

type Option

type Option struct {
	Log    bool
	TmpDir string
	Init   []string
	Watch  []string
	Delay  time.Duration
}

Option of Hot Plugin

Jump to

Keyboard shortcuts

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