config

package
v5.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Store

func Store(config Config) error

Store serialises the given config struct as TOML and saves it to disk

Types

type Config

type Config struct {
	Domain   string
	Token    oauth2.Token
	Database string
}

Config describes the configuration for the draupnir client

func Load

func Load() (Config, error)

Load parses the client config file

Jump to

Keyboard shortcuts

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