conf

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const MaxPagination = 20

Variables

This section is empty.

Functions

func Changed

func Changed() chan Configuration

func ID

func ID() string

func Version

func Version() string

Types

type Configuration

type Configuration struct {
	ListenAddress  string
	ClientName     string
	ClientScope    string
	ClientWebsite  string
	PostFormats    []PostFormat
	AssetStamp     string
	UserAgent      string
	Instance       string
	ResponseLimit  int64
	RequestTimeout time.Duration
	// contains filtered or unexported fields
}

func Get

func Get() *Configuration

func (Configuration) SingleInstance

func (c Configuration) SingleInstance() (instance string, ok bool)

type PostFormat

type PostFormat struct {
	Name string
	Type string
}

Jump to

Keyboard shortcuts

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