config

package
v0.0.0-...-7cc0ef5 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FedConfig

type FedConfig struct {
	// Hostname under which the instance is reachable in the
	// open web. Something like "fed.example.com"
	Hostname string

	// What address to listen on. Something like "localhost:8080"
	// if you are using a reverse proxy like nginx.
	ListenAddress string

	// Location of the storage file. The process running fed
	// will need rw permissions on that file and the directory
	// it is in.
	StorageFile string
}

func Get

func Get() *FedConfig

Return the singleton instance of the configuration.

func (*FedConfig) GlobalURL

func (fc *FedConfig) GlobalURL() *url.URL

Return the Hostname property as a newly created URL. This is the base URL under which the instance should be reachable on the open internet.

Jump to

Keyboard shortcuts

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