web_iris

package
v1.2.15 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: Apache-2.0 Imports: 14 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAuthDriverEmpty = errors.New("auth driver initialize fail")

Functions

This section is empty.

Types

type Party

type Party struct {
	Perfix    string
	PartyFunc func(index iris.Party)
}

Party - perfix - partyFunc

type WebServer

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

func Init

func Init() *WebServer

Init

func (*WebServer) AddModule

func (ws *WebServer) AddModule(parties ...Party)

AddModule

func (*WebServer) AddUploadStatic

func (ws *WebServer) AddUploadStatic(webPrefix, staticAbsPath string)

AddUploadStatic

func (*WebServer) AddWebStatic

func (ws *WebServer) AddWebStatic(staticAbsPath, webPrefix string, paths ...string)

AddWebStatic

func (*WebServer) GetEngine added in v1.1.3

func (ws *WebServer) GetEngine() *iris.Application

GetEngine

func (*WebServer) GetSources

func (ws *WebServer) GetSources() ([]map[string]string, []map[string]string)

GetSources - PermRoutes - NoPermRoutes

func (*WebServer) InitRouter

func (ws *WebServer) InitRouter() error

InitRouter

func (*WebServer) Run

func (ws *WebServer) Run()

Run

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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