config

package
v0.0.0-...-f6a5026 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	EmacsCfgDir string     `json:"emacs_cfg_dir"`
	BinDir      string     `json:"bindir"`
	Profiles    []*Profile `json:"profiles"`
}

func NewConfig

func NewConfig() *Config

func Read

func Read() *Config

func (*Config) Save

func (c *Config) Save() error

type Profile

type Profile struct {
	Name     string `json:"profile_name"`
	Email    string `json:"email"`
	FullName string `json:"full_name"`
	ImapHost string `json:"imaphost"`
	ImapPort uint16 `json:"imapport"`
	ImapUser string `json:"imapuser"`
	SmtpHost string `json:"smtphost"`
	SmtpPort uint16 `json:"smtpport"`
	SmtpUser string `json:"smtpuser"`
}

Jump to

Keyboard shortcuts

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