config

package
v0.0.0-...-9369106 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DBName       string `json:"db_name"`       // DBName is the type of database to use. Right now, only "sqlite3" is supported
	DBPath       string `json:"db_path"`       // DBPath is the name of the database itself.
	HostAddress  string `json:"host_address"`  // HostAddress is the address to listen for connections on.
	HostPort     string `json:"host_port"`     // HostPort is the port to listen on.
	LogFile      string `json:"log_file"`      // LogFile is an optional file to log messages to.
	RelyingParty string `json:"relying_party"` // RelyingParty is the name of the WebAuthn relying party.
}

Config represents the configuration information.

func LoadConfig

func LoadConfig(filepath string) (*Config, error)

LoadConfig loads a configuration at the provided filepath, returning the parsed configuration.

Jump to

Keyboard shortcuts

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