xgin2

package
v0.0.0-...-953156a Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rule

type Rule struct {
	IsRuning int               `json:"IsRuning,omitempty" yaml:"IsRuning"` //0:有效 1:无效
	Location string            `json:"Location",omitempty yaml:"Location"`
	Params   map[string]string `json:"Params,omitempty" yaml:"Params"` // 和 Location 一起进行匹配g

}

type XEngine

type XEngine struct {
	*gin.Engine
}

func NewXGin

func NewXGin() *XEngine

NewXGin new enginx

func (*XEngine) Run

func (h *XEngine) Run(addr string) error

Run start

func (*XEngine) RunTLS

func (h *XEngine) RunTLS(addr, certFile, keyFile string) (err error)

RunTLS start

func (*XEngine) ServeHTTP

func (h *XEngine) ServeHTTP(w http.ResponseWriter, req *http.Request)

ServeHTTP conforms to the http.Handler interface.

Jump to

Keyboard shortcuts

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