web

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOCALHOST = "localhost"
	PORT8080  = 8080
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Addr           string
	Port           int
	ReadTimeout    time.Duration
	WriteTimeout   time.Duration
	MaxHeaderBytes int
}

type LierGin

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

func NewGin

func NewGin(routerFunc ...func(router *gin.Engine)) *LierGin

func (*LierGin) SetRouterFunc

func (l *LierGin) SetRouterFunc(routerFunc func(router *gin.Engine))

func (*LierGin) SetServer

func (l *LierGin) SetServer(c *Config)

func (*LierGin) Start

func (l *LierGin) Start() error

func (*LierGin) Stop

func (l *LierGin) Stop()

Stop http server stop

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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