Documentation ¶
Overview ¶
Package mail provides basic email sending capabilities
Index ¶
- func NewMail(parameters string) (stdio.Io, error)
- type Mail
- func (m *Mail) Close()
- func (m *Mail) DefaultDataType(bool)
- func (m *Mail) File() *os.File
- func (m *Mail) ForceClose()
- func (m *Mail) GetDataType() string
- func (m *Mail) IsTTY() bool
- func (m *Mail) Open()
- func (m *Mail) Read(p []byte) (int, error)
- func (m *Mail) ReadAll() ([]byte, error)
- func (m *Mail) ReadArray(context.Context, func([]byte)) error
- func (m *Mail) ReadArrayWithType(context.Context, func(interface{}, string)) error
- func (m *Mail) ReadLine(func([]byte)) error
- func (m *Mail) ReadMap(*config.Config, func(*stdio.Map)) error
- func (m *Mail) SetDataType(string)
- func (m *Mail) Stats() (bytesWritten, bytesRead uint64)
- func (m *Mail) Write(b []byte) (i int, err error)
- func (m *Mail) WriteArray(dataType string) (stdio.ArrayWriter, error)
- func (m *Mail) WriteTo(w io.Writer) (int64, error)
- func (m *Mail) Writeln(b []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Mail ¶
type Mail struct {
// contains filtered or unexported fields
}
Mail is null interface for named pipes
func (*Mail) DefaultDataType ¶
DefaultDataType - not required as data is emailed
func (*Mail) GetDataType ¶
GetDataType returns null because you cannot read a sent email
func (*Mail) ReadArrayWithType ¶
ReadArrayWithType is an empty method because you cannot read a sent email
func (*Mail) SetDataType ¶
SetDataType - not required as data is emailed
func (*Mail) WriteArray ¶
func (m *Mail) WriteArray(dataType string) (stdio.ArrayWriter, error)
WriteArray - caches the data before send
Click to show internal directories.
Click to hide internal directories.