Skip to content
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Cannot retrieve contributors at this time
package main
import (
type tomlConfig struct {
Database Database `toml:"Database"`
AquametaUser AquametaUser `toml:"AquametaUser"`
HTTPServer HTTPServer `toml:"HTTPServer"`
type Database struct {
Mode string
Role string
Password string
Host string
Port uint32
DatabaseName string
EmbeddedPostgresRuntimePath string
type AquametaUser struct {
Name string
Email string
// TODO: This belongs in the database
type HTTPServer struct {
Protocol string
IP string
Port string
SSLCertificateFile string
SSLKeyFile string
StartupURL string
func getConfig(configFile string) (tomlConfig, error) {
var config tomlConfig
if _, err := toml.DecodeFile(configFile, &config); err != nil {
return config, err
return config, nil