internal

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Build = "dev"
	Date  = time.Now().String()
)

Functions

func InitConfig

func InitConfig(confPath string)

func InitEngine

func InitEngine(ginMode string) *gin.Engine

func InitRabbitMQ

func InitRabbitMQ(rabbitURI string, prefetchCount int)

func ParseArgs

func ParseArgs(defaultPort, defaultConfigPath string) (string, string)

func SetupGracefulShutdown

func SetupGracefulShutdown(port string, engine *gin.Engine)

func SetupGracefulShutdownForObserver

func SetupGracefulShutdownForObserver(cancel context.CancelFunc)

Types

This section is empty.

Jump to

Keyboard shortcuts

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