web

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component func(app *iris.Application)

type Server

type Server interface {
	Start(components ...Component)
	RegisterComponent(component Component)
	SetHomePage(indexHtml string)
	OnErrorCode(code int, onErr func(ctx iris.Context))
	ConfigExtra(handler func(app *iris.Application))
}

func Init

func Init(config ServerConfig) (handler *Server)

type ServerConfig

type ServerConfig struct {
	Listen string
}

Jump to

Keyboard shortcuts

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