server

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitAppEngine

func InitAppEngine(quietMode bool) *gin.Engine

InitAppEngine sets up the whole Gin application, loading templates and middleware and defining routes. The test suite can use this to get an instance of the Gin engine to bind to.

Set param quietMode during unit/integration tests to suppress Gin's STDOUT logging. Those log statements are useful in development, but can be verbose and clutter the test output.

func Run

func Run(port int, quietMode bool)

Run runs the Registry application. This is called from main() to start the app. Listen on 127.0.0.1, not on 0.0.0.0 because we don't want to accept outside connections.

func SetVersion

func SetVersion(version string)

SetVersion passes the build version into the core namespace, so other parts of the app have access to it. This value is passed in at build time by the go build command.

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