webiris

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PartyComponent

type PartyComponent func(app *iris.Application)

PartyComponent 路由组件

type WebBaseFunc

type WebBaseFunc interface {
	Run(ctx context.Context) error
	StaticSource(fs http.FileSystem) error
}

type WebIris

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

func Init

func Init(timeFormat, port, logLevel string, components PartyComponent) *WebIris

Init 初始化iris配置

func (*WebIris) Run

func (w *WebIris) Run(ctx context.Context) (err error)

Run 启动iris服务并监听端口

func (*WebIris) StaticSource added in v1.1.1

func (w *WebIris) StaticSource(fs http.FileSystem) (err error)

StaticSource 配置静态文件访问路径

Jump to

Keyboard shortcuts

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