Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultSpoolDir = "/var/lib/cypress/spool"
View Source
const MaxFiles = 10
View Source
const PerFileSize = (1024 * 1024) // 1 meg per file
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Recv ¶
type Recv struct {
Dir string `short:"d" description:"where to write the messages to"`
}
type Send ¶
type Send struct {
Dir string `short:"d" description:"where to write the messages to"`
}
type Spool ¶
type Spool struct { // The size of each file will get before it's rotated PerFileSize int64 // How many rotate files to keep MaxFiles int OnRotate func(string) error // contains filtered or unexported fields }
func (*Spool) CurrentFile ¶
func (*Spool) Generator ¶
func (s *Spool) Generator() (*SpoolGenerator, error)
type SpoolGenerator ¶
type SpoolGenerator struct {
// contains filtered or unexported fields
}
func (*SpoolGenerator) Close ¶
func (sg *SpoolGenerator) Close() error
type SpoolPlugin ¶
type SpoolPlugin struct {
Directory string `description:"directory to read/write messages to"`
}
Click to show internal directories.
Click to hide internal directories.