config

package
v0.0.0-...-d23200b Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: 0BSD Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Devices

type Devices struct {
	Printer  string `toml:"printer"`
	Keyboard string `toml:"keyboard"`
}

type Matrix

type Matrix struct {
	UserID      string                `toml:"user_id"`
	DeviceID    string                `toml:"device_id"`
	AccessToken string                `toml:"access_token"`
	AdminRoom   string                `toml:"admin_room"`
	Users       map[string]MatrixUser `toml:"users"`
	FeelgoodKey string                `toml:"feelgood_key"`
	Database    string                `toml:"database"`
	MautrixLog  string                `toml:"mautrix_log"`
}

type MatrixUser

type MatrixUser struct{}

type Ntfy

type Ntfy struct {
	Host        string           `toml:"host"`
	AccessToken string           `toml:"access_token"`
	Topics      map[string]Topic `toml:"topics"`
}

type Topic

type Topic struct {
	Name string `toml:"name"`
}

type Toplevel

type Toplevel struct {
	Ntfy    Ntfy    `toml:"ntfy"`
	Matrix  Matrix  `toml:"matrix"`
	Devices Devices `toml:"devices"`
}

func Load

func Load(altpath string) *Toplevel

Jump to

Keyboard shortcuts

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