server

package
v0.3.37 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPprof added in v0.3.5

func AddPprof()

func AddService

func AddService(addedservice service.Config)

func AddServices

func AddServices(addedservices []service.Config)

func EnableCustomHealthCheck added in v0.0.36

func EnableCustomHealthCheck(path string, check gin.HandlerFunc)

func EnableHealthCheck

func EnableHealthCheck()

func GetRouter added in v0.1.19

func GetRouter() *gin.Engine

func InitService

func InitService(config service.Config)

func JSONLogMiddleware added in v0.0.37

func JSONLogMiddleware() gin.HandlerFunc

func SetCORS

func SetCORS()

SetCORS applies CORS config to the gin router

func SetSPA

func SetSPA(url string, dir string)

SetSPA hosts a Single Page App directory at the specified url

func Start

func Start()

Types

This section is empty.

Jump to

Keyboard shortcuts

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