config

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2019 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() []string

func WriteConfig

func WriteConfig(location string, conf *Config) error

Types

type Config

type Config struct {
	Token        string `json:"token"`
	URL          string `json:"url"`
	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