config

package
v2.2.3 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoneSet = errors.New("no config set, run 'gotify init'")
)

Functions

func ExistingConfig

func ExistingConfig(locations []string) (string, error)

func GetLocations

func GetLocations() (res []string)

func WriteConfig

func WriteConfig(location string, conf *Config) error

Types

type Config

type Config struct {
	Token           string `json:"token"`
	URL             string `json:"url"`
	DefaultPriority int    `json:"defaultPriority"`
	FromLocation    string `json:"-"`
}

func ReadConfig

func ReadConfig(locations []string) (*Config, error)

Jump to

Keyboard shortcuts

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