config

package
v0.0.0-brrefs-pull-75-... Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const API_SUB_PATH = "/api/v1"

the sub path any API's are served over

View Source
const CONTEXT_ADDRESS = "address"

the context name we keep the address

View Source
const WEBSOCKET_SUB_PATH = "/ws"

the sub path the websocket server is mounted on

View Source
const X_COOPHIVE_SIGNATURE_HEADER = "X-Lilypad-Signature"

this is the signature of the message

View Source
const X_COOPHIVE_USER_HEADER = "X-Lilypad-User"

this is the address of the user

Variables

View Source
var AppDataDir string // use inject Conf , temporarily using this global variable
View Source
var Conf *viper.Viper
View Source
var MODULE_PATH string // temporary init for shortcuts pkg, use conf injected
View Source
var Module = fx.Options(
	fx.Provide(
		newConfig,
	),
	fx.Invoke(tempInitForFx),
	fx.WithLogger(func(conf *viper.Viper) (l fxevent.Logger) {
		if conf.GetBool(enums.DEBUG) {
			return &fxevent.ConsoleLogger{W: os.Stderr}
		}
		return fxevent.NopLogger
	}))
View Source
var STD_MODULE_FORMAT string

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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