config

package
v0.0.0-...-3bded81 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2019 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Core   Core
	Mail   *Mail
	SMTP   *SMTP
	Remote map[string]*Remote
}

func Read

func Read(filename string) (*Configuration, error)

type Core

type Core struct {
	LogLevel   LogLevel
	LogFile    string
	LockDir    string
	SyncPeriod time.Duration
}

type LogLevel

type LogLevel struct {
	logrus.Level
}

func (*LogLevel) UnmarshalText

func (d *LogLevel) UnmarshalText(data []byte) (err error)

type Mail

type Mail struct {
	MailQuote            []string
	JiraTableColumnWidth int
	Path                 *Path
}

type Path

type Path struct {
	Globals string
	Board   string
	Sprint  string
	Epic    string
	Backlog string
	Project string
}

type Remote

type Remote struct {
	DestDir      string
	BaseURL      string
	Username     string
	Password     string
	ProjectMatch string
	BoardMatch   string
	Delete       string
}

type SMTP

type SMTP struct {
	Addr            string
	Hostname        string
	LockDir         string
	Auth            *SMTPAuth
	LogMessagesOnly bool
	TLS             struct {
		CertFile string
		KeyFile  string
	}
}

type SMTPAuth

type SMTPAuth struct {
	Username string
	Password string
}

Jump to

Keyboard shortcuts

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