web_gin

package
v1.2.12 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: Apache-2.0 Imports: 19 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 WebServer

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

WebServer - app gin.Engine - idleConnsClosed - addr - timeFormat - staticPrefix

func Init

func Init() *WebServer

Init

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() *gin.Engine

GetEngine return *gin.Engine

func (*WebServer) GetRouterGroup

func (ws *WebServer) GetRouterGroup(relativePath string) *gin.RouterGroup

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) NoRoute added in v1.1.3

func (ws *WebServer) NoRoute()

NoRoute for 404 http status

func (*WebServer) Run

func (ws *WebServer) Run()

Run

type WebStatic added in v1.1.3

type WebStatic struct {
	Prefix    string
	IndexFile []byte
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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