config

package
v0.0.0-...-dbf448c Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfiguration

type AuthConfiguration struct {
	AuthKey string `json:"auth_key"`
}

type Configuration

type Configuration struct {
	Neo4j           Neo4jConfiguration `json:"neo4j"`
	Mail            MailConfiguration  `json:"mail"`
	Auth            AuthConfiguration  `json:"auth"`
	RSAKeyFile      string             `json:"rsa_key_file"`
	FrontendBaseUrl string             `json:"frontend_base_url"`
	ServerPort      int                `json:"server_port"`
}

type ConfigurationManager

type ConfigurationManager struct {
	// contains filtered or unexported fields
}

func GetConfigManager

func GetConfigManager() *ConfigurationManager

func (*ConfigurationManager) GetConfig

func (c *ConfigurationManager) GetConfig() (config *Configuration, err error)

func (*ConfigurationManager) LoadConfig

func (c *ConfigurationManager) LoadConfig(configFile string) (err error)

type MailConfiguration

type MailConfiguration struct {
	Server      string `json:"server"`
	ServerPort  int    `json:"server_port"`
	Password    string `json:"password"`
	Username    string `json:"username"`
	MailAddress string `json:"mail_address"`
	MailName    string `json:"mail_name"`
}

type Neo4jConfiguration

type Neo4jConfiguration struct {
	Host     string `json:"host"`
	Port     int    `json:"port"`
	Username string `json:"username"`
	Password string `json:"password"`
}

Jump to

Keyboard shortcuts

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