internal

package
v0.0.0-...-bbe481d Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Overview

Package internal implements the HTTP authentication server that is designed to interact with the NGINX Mail Proxy module.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidHash         = errors.New("the encoded hash is not in the correct format")
	ErrIncompatibleVersion = errors.New("incompatible version of argon2")
)

Errors used in the decodeHash function.

Functions

func PrintVersion

func PrintVersion()

PrintVersion prints the version of the application, the Go version it was built with and a list of every external dependency it was built with.

func Run

func Run(configPath string, prod bool) (*http.Server, error)

Run initializes the server using the given configuration path. Depending on the 'prod' flag, it connects to either the main or CI database. Returns an HTTP server instance if successful or an error otherwise.

Types

This section is empty.

Jump to

Keyboard shortcuts

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