config

package
v0.0.0-br-refs-pull-13... Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 14 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 DEFAULT_DEALER = "std-autoaccept"
View Source
const JOB_PRICE = 2
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 = utils.Base64DecodeFast("WC1MaWx5cGFkLVNpZ25hdHVyZQ==")

this is the signature of the message

View Source
var X_COOPHIVE_USER_HEADER = utils.Base64DecodeFast("WC1MaWx5cGFkLVVzZXI=")

this is the address of the user

Functions

This section is empty.

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