Documentation
¶
Index ¶
- Constants
- func MIMEBase64To(w io.Writer, r io.Reader) (err error)
- func MIMEHeaderTo(w io.Writer, header textproto.MIMEHeader) (err error)
- func PreviewMessage(m *loaders.Message)
- func RegisterCompressor(contentType string, resizer Compressor)
- func Send(message *loaders.Message, o *Options) error
- type Attachment
- type Compressor
- type MIMELineWrapper
- type Mailer
- type Message
- type Option
- type Options
Constants ¶
View Source
const Version = "dev"
Variables ¶
This section is empty.
Functions ¶
func MIMEHeaderTo ¶
func MIMEHeaderTo(w io.Writer, header textproto.MIMEHeader) (err error)
func PreviewMessage ¶
func RegisterCompressor ¶
func RegisterCompressor(contentType string, resizer Compressor)
Types ¶
type Attachment ¶
type Attachment struct { Name string Source string Hash uint64 // for XXHash2 // contains filtered or unexported fields }
func NewAttachment ¶
func NewAttachment(p string) (*Attachment, error)
type Compressor ¶
func NewImageJPEGResizer ¶
func NewImageJPEGResizer(maxWidth, maxHeight, quality uint) Compressor
type MIMELineWrapper ¶
type MIMELineWrapper struct {
// contains filtered or unexported fields
}
MIMELineWrapper writes everything to io.Writer chunked by maxMIMELineLen.
type Option ¶
func WithOptions ¶
type Options ¶
type Options struct { URI string // Credentials for provider API backend. Verbose bool Dryrun bool // Run the program without delivering or locking anything down. YesOnPrompt bool // Automatically confirm all prompts. Logger loggers.Logger Loader loaders.Loader Renderer renderers.Renderer Provider providers.Provider Distributor distributors.Distributor }
Options provide configuration to component execution.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.