server

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 18 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 AddSentry added in v1.0.1

func AddSentry(scopeFunc func(*gin.Context, *sentry.Scope))

AddSentry adds the Sentry middleware to the gin router

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 Init added in v1.0.1

func Init()

func InitService

func InitService(config service.Config)

func JSONLogMiddleware added in v0.0.37

func JSONLogMiddleware(c *gin.Context)

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