Documentation ¶
Index ¶
- Constants
- Variables
- type Conn
- func (c *Conn) Close() error
- func (c *Conn) ReadFixedLength(length int) (data []byte, err error)
- func (c *Conn) ReadLine() (text string, ok bool)
- func (c *Conn) SetReadOnly()
- func (c *Conn) SetReadWrite()
- func (c *Conn) SetState(state connState)
- func (c *Conn) Start() error
- func (c *Conn) Write(p []byte) (n int, err error)
- type WriteMode
Constants ¶
View Source
const ( StateNew connState = iota StateNotAuthenticated StateAuthenticated StateSelected StateLoggedOut )
Variables ¶
View Source
var ErrUnrecognisedParameter = errors.New("Unrecognised Parameter")
ErrUnrecognisedParameter indicates that the parameter requested in a FETCH command is unrecognised or not implemented in this IMAP server
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct { Rwc io.ReadWriteCloser RwcScanner *bufio.Scanner // Provides an interface for scanning lines from the connection Transcript io.Writer Mailstore mailstore.Mailstore // Pointer to the IMAP server's mailstore to which this connection belongs User mailstore.User SelectedMailbox mailstore.Mailbox // contains filtered or unexported fields }
Conn represents a client connection to the IMAP server
func (*Conn) ReadFixedLength ¶
Reads data from the connection up to the length specified
func (*Conn) SetReadOnly ¶
func (c *Conn) SetReadOnly()
func (*Conn) SetReadWrite ¶
func (c *Conn) SetReadWrite()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.