config

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 17 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 AppDirSymbol = "$APP_DIR"
View Source
const CONTEXT_ADDRESS = "address"

the context name we keep the address

View Source
const DEFAULT_DEALER = "std-autoaccept"
View Source
const WEBSOCKET_SUB_PATH = "/ws"

the sub path the websocket server is mounted on

Variables

View Source
var APP_DATA_DIR 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 NETWORKS = getNetworks()
View Source
var STD_MODULE_FORMAT string
View Source
var X_COOPHIVE_SIGNATURE_HEADER = "X-Hive-Signature"

this is the signature of the message

View Source
var X_COOPHIVE_USER_HEADER = "X-Hive-User"

this is the address of the user

Functions

func SetAppDir added in v0.11.0

func SetAppDir(conf *viper.Viper, appDir string)

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