config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImportCfg

func ImportCfg(args []string) error

Types

type AccountConfig

type AccountConfig struct {
	URI        string
	NameFormat *string `json:",omitempty"`
	UserAgent  *string `json:",omitempty"`
}

func (AccountConfig) String

func (cfg AccountConfig) String() string

type GrueConfig

type GrueConfig struct {
	Recipient    string
	FromAddress  string
	NameFormat   string
	ListIdFormat string
	UserAgent    string
	SmtpUser     *string
	SmtpPass     *string
	SmtpServer   *string
	LogLevel     *string
	Accounts     map[string]AccountConfig
	// contains filtered or unexported fields
}

func ReadConfig

func ReadConfig() (*GrueConfig, error)

func (*GrueConfig) AddAccount

func (conf *GrueConfig) AddAccount(name, uri string) error

func (*GrueConfig) DeleteAccount

func (conf *GrueConfig) DeleteAccount(name string) error

func (*GrueConfig) Lock

func (conf *GrueConfig) Lock() error

func (*GrueConfig) RenameAccount

func (conf *GrueConfig) RenameAccount(old, new string) error

func (*GrueConfig) String

func (conf *GrueConfig) String() string

func (*GrueConfig) Unlock

func (conf *GrueConfig) Unlock() error

Jump to

Keyboard shortcuts

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