config

package
v0.0.0-...-f6da3f2 Latest Latest
Warning

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

Go to latest
Published: May 13, 2023 License: AGPL-3.0 Imports: 5 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 {
	Core CoreConfig `toml:"core"`
	Web  WebConfig  `toml:"web"`
}

func Parse

func Parse(filename string) (Config, error)

type CoreConfig

type CoreConfig struct {
	Postgres string `toml:"postgres"`
	Dev      bool   `toml:"dev"`
}

type WebConfig

type WebConfig struct {
	// Domain should be the instance's full domain, including https:// but without the trailing slash.
	Domain string `toml:"domain"`
	// WebfingerDomain is the domain used for WebFinger lookups (and by extension, the part after the @ in usernames).
	// If left empty, this defaults to the host part of Domain.
	WebfingerDomain string `toml:"webfinger_domain"`

	// Port is the port the server should listen on.
	Port int `toml:"port"`
}

func (WebConfig) Webfinger

func (c WebConfig) Webfinger() string

Jump to

Keyboard shortcuts

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