config

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultHost is the default host to listen on.
	DefaultHost = "localhost"
	// DefaultPort is the default port to listen on.
	DefaultPort = "8080"
	// DefaultURNPath is the default file path to the URN alias file.
	DefaultURNPath = "urns.yml"
	// DefaultFingerPath is the default file path to the webfinger definition file.
	DefaultFingerPath = "fingers.yml"
)

Variables

View Source
var ErrInvalidConfig = errors.New("invalid config")

ErrInvalidConfig is returned when the config is invalid.

Functions

This section is empty.

Types

type Config

type Config struct {
	Debug      bool
	Host       string
	Port       string
	URNPath    string
	FingerPath string
}

func NewConfig

func NewConfig() *Config

func (*Config) GetAddr

func (c *Config) GetAddr() string

func (*Config) Validate

func (c *Config) Validate() error

Jump to

Keyboard shortcuts

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