gin

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func Ping

func Ping(ctx *gin.Context)

Ping the server

func RegisterPing

func RegisterPing(router gin.IRouter)

Types

type LierGin

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

func NewGin

func NewGin(r *gin.Engine, options ...LierGinOption) *LierGin

func (*LierGin) Start

func (l *LierGin) Start() error

func (*LierGin) Stop

func (l *LierGin) Stop()

Stop http server stop

type LierGinOption

type LierGinOption func(*LierGin)

func WithRegisterRouters

func WithRegisterRouters(f ...Router) LierGinOption

WithRegisterRouters set register router func

func WithServer

func WithServer(s *http.Server) LierGinOption

WithServer set http server

type Router

type Router func(router gin.IRouter)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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