config

package
v0.0.0-...-b595b4b Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupConfig

func SetupConfig() error

SetupConfig fills all default values, reads the config and/or writes the default config.

Types

type Key

type Key string

Key represents a config key

const (
	DaysUntilStale Key = "daysUntilStale"
	DaysUntilClose Key = "daysUntilClose"
	LabelBlacklist Key = "onlyLabels"
	LabelWhitelist Key = "exemptLabels"
	StaleLabel     Key = "staleLabel"

	MarkComment   Key = "markComment"
	UnmarkComment Key = "unmarkComment"
	CloseComment  Key = "closeComment"

	TypeBlacklist Key = "only"

	BaseURL Key = "host"

	GiteaURL          Key = "gitea.url"
	GiteaClientID     Key = "gitea.client_id"
	GiteaClientSecret Key = "gitea.client_secret"

	SessionSecret Key = "session_secret"
	DatabasePath  Key = "./database_path"
)

This block contains all config keys

func (Key) Get

func (k Key) Get() interface{}

Get the value of the key from config

func (Key) Set

func (k Key) Set(value interface{})

Set the value of the key to config

Jump to

Keyboard shortcuts

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