deprecated

package
v0.0.0-...-42ca271 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GinLaunchAndSignal

func GinLaunchAndSignal(router *gin.Engine, port int) (serverReady chan bool, closePipe func())

This function is DEPRECATED. It is unnecessarily complex and has a race condition as Gin outputs serverReadyStr before it is actually ready to take requests.

GinLaunchAndSignal launches Gin on a given port in a separate goroutine and returns a channel that signals when the server is ready and a function to be deferred to close the pipe used in the implementation. The router parameter is a Gin Engine with configured routes.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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