boot

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: ISC Imports: 46 Imported by: 1

Documentation

Index

Constants

View Source
const AuthenticationTokenKey = "AuthenticationToken"

AuthenticationTokenKey is the key used in the context to authenticate clients. If this is set to anything other than "" in the config, then the server expects the client to set a key value in the context metadata to 'AuthenticationToken: cfg.AuthToken'

Variables

This section is empty.

Functions

func SimulateInterrupt

func SimulateInterrupt()

SimulateInterrupt requests invoking the clean termination process by an internal component instead of a SIGINT.

func WalletMain

func WalletMain(optionalConfigPath *string) error

WalletMain is a work-around main function that is required since deferred functions (such as log flushing) are not called with calls to os.Exit. Instead, main runs this function and checks for a non-nil error, at which point any defers have already run, and if the error is non-nil, the program can be exited with an error exit status.

Types

This section is empty.

Jump to

Keyboard shortcuts

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