config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Username string
	Password string
	Secret   string
}

type BunnyCDN

type BunnyCDN struct {
	Zone string
	Key  string
	Base string
}

type Config

type Config struct {
	Development       bool
	Port              int
	BaseURL           string
	SourceDirectory   string
	PublicDirectory   string
	WebhookSecret     string
	XRayEndpoint      string
	WebmentionsSecret string
	Auth              *Auth
	Tailscale         *Tailscale
	Tor               *Tor
	BunnyCDN          *BunnyCDN
	Telegram          *Telegram
	Twitter           *Twitter
	Miniflux          *Miniflux
	MeiliSearch       *MeiliSearch
}

func Parse

func Parse() (*Config, error)

Parse parses the configuration from the default files and paths.

type MeiliSearch

type MeiliSearch struct {
	Endpoint string
	Key      string
}

type Miniflux

type Miniflux struct {
	Endpoint string
	Key      string
}

type Tailscale

type Tailscale struct {
	ExclusiveDashboard bool
	Hostname           string
	Logging            bool
	Port               int
	AuthKey            string
}

type Telegram

type Telegram struct {
	Token  string
	ChatID int64
}

type Tor

type Tor struct {
	ConfDir string
	Logging bool
}

type Twitter

type Twitter struct {
	User        string
	Key         string
	Secret      string
	Token       string
	TokenSecret string
}

Jump to

Keyboard shortcuts

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