server

package
v0.0.62 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 EnableSwagger

func EnableSwagger()

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