root

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package root provides shared resources to the whole application.

In particular, this package initialize IoC with binding for external packages. This package can be imported by all other application specific packages (main/* and mid/*). Therefore, it must not import any application specific package.

Index

Constants

This section is empty.

Variables

View Source
var BaseDir string

BaseDir is the path in which the configuration file has been found.

View Source
var Configured = false

Configured indicates whether the configuration file has successfully been read.

View Source
var IoC = ioc.New()

IoC is the root locator for the application. Application packages providing services must Bind to it in their init function.

Functions

func PasswdHash added in v0.1.5

func PasswdHash() (hash.Hash, error)

PasswdHash provides the hash function used for passwords.

Types

This section is empty.

Jump to

Keyboard shortcuts

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