Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.