config

package
v0.0.0-...-4242d0d Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	Server       string `toml:"server"`
	ClientID     string `toml:"clientID"`
	ClientSecret string `toml:"clientSecret"`
	Email        string `toml:"email"`
	Password     string `toml:"password"`
	Tagname      string `toml:"tagname"`
}

DBConfig represents database connection configuration information.

type Config

type Config struct {
	APP AppConfig `toml:"mastodon"`
}

Config represents application configuration.

func NewConfig

func NewConfig(path string, appMode string) (Config, error)

NewConfig return configuration struct.

Jump to

Keyboard shortcuts

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