Documentation
¶
Index ¶
- Constants
- func AgentAcksReceived(root, agent string) string
- func AgentAcksSent(root, agent string) string
- func AgentBase(root, agent string) string
- func AgentInboxCur(root, agent string) string
- func AgentInboxNew(root, agent string) string
- func AgentInboxTmp(root, agent string) string
- func AgentOutboxSent(root, agent string) string
- func DeliverToInbox(root, agent, filename string, data []byte) (string, error)
- func DeliverToInboxes(root string, recipients []string, filename string, data []byte) (map[string]string, error)
- func EnsureAgentDirs(root, agent string) error
- func EnsureRootDirs(root string) error
- func FindMessage(root, agent, filename string) (string, string, error)
- func FindTmpFilesOlderThan(root string, cutoff time.Time) ([]string, error)
- func ListAgents(root string) ([]string, error)
- func MoveNewToCur(root, agent, filename string) error
- func SyncDir(dir string) error
- func WriteFileAtomic(dir, filename string, data []byte, perm os.FileMode) (string, error)
Constants ¶
View Source
const ( BoxNew = "new" BoxCur = "cur" )
Variables ¶
This section is empty.
Functions ¶
func AgentAcksReceived ¶
func AgentAcksSent ¶
func AgentInboxCur ¶
func AgentInboxNew ¶
func AgentInboxTmp ¶
func AgentOutboxSent ¶
func DeliverToInbox ¶
DeliverToInbox writes a message using Maildir semantics (tmp -> new). It returns the final path in inbox/new.
func DeliverToInboxes ¶ added in v0.2.0
func DeliverToInboxes(root string, recipients []string, filename string, data []byte) (map[string]string, error)
DeliverToInboxes writes a message to multiple inboxes. On failure, it attempts to roll back any prior deliveries.
func EnsureAgentDirs ¶
func EnsureRootDirs ¶
func FindTmpFilesOlderThan ¶
func ListAgents ¶
func MoveNewToCur ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.