Documentation ¶
Index ¶
- Constants
- Variables
- type Authorizator
- type Backend
- type CapaCommand
- type Client
- type Config
- type DeleCommand
- type Executable
- type ListCommand
- type NoopCommand
- type PassCommand
- type Printer
- type QuitCommand
- type RetrCommand
- type RsetCommand
- type Server
- type StatCommand
- type UidlCommand
- type UserCommand
Constants ¶
View Source
const ( STATE_AUTHORIZATION = iota + 1 STATE_TRANSACTION STATE_UPDATE )
Variables ¶
View Source
var (
ErrInvalidState = fmt.Errorf("Invalid state")
)
Functions ¶
This section is empty.
Types ¶
type Authorizator ¶
type Backend ¶
type Backend interface { Stat(user string) (messages, octets int, err error) List(user string) (octets []int, err error) ListMessage(user string, msgId int) (exists bool, octets int, err error) Retr(user string, msgId int) (message string, err error) Dele(user string, msgId int) error Rset(user string) error Uidl(user string) (uids []string, err error) UidlMessage(user string, msgId int) (exists bool, uid string, err error) Update(user string) error Lock(user string) error Unlock(user string) error }
type CapaCommand ¶
type CapaCommand struct{}
type DeleCommand ¶
type DeleCommand struct{}
type ListCommand ¶
type ListCommand struct{}
type NoopCommand ¶
type NoopCommand struct{}
type PassCommand ¶
type PassCommand struct{}
type QuitCommand ¶
type QuitCommand struct{}
type RetrCommand ¶
type RetrCommand struct{}
type RsetCommand ¶
type RsetCommand struct{}
type StatCommand ¶
type StatCommand struct{}
type UidlCommand ¶
type UidlCommand struct{}
type UserCommand ¶
type UserCommand struct{}
Click to show internal directories.
Click to hide internal directories.