Documentation
¶
Index ¶
Constants ¶
View Source
const ( PailS3 = "s3" PailLocal = "local" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddMetadata ¶
type FollowFile ¶
type FollowFile struct {
Key string
Filename string
Exit chan struct{}
Encoding string
MaxBufferSize int
}
func (FollowFile) Validate ¶
func (o FollowFile) Validate() error
type Sender ¶
type Sender struct {
Key string
// Local sender for "fallback" operations.
Local send.Sender `bson:"-" json:"-" yaml:"-"`
// LevelInfo is used to set the default and threshold logging levels.
// This can be set at anytime but must be set at least once before any
// calls to Send.
LevelInfo *send.LevelInfo
// MaxBufferSize is the maximum number of bytes to buffer before
// flushing data.
MaxBufferSize int `bson:"max_buffer_size" json:"max_buffer_size" yaml:"max_buffer_size"`
// FlushInterval is the interval at which to flush data, regardless of
// whether the max buffer size has been reached or not. Setting
// FlushInterval to a duration less than 0 will disable timed flushes.
FlushInterval time.Duration `bson:"flush_interval" json:"flush_interval" yaml:"flush_interval"`
}
type WriteBytes ¶
func (WriteBytes) Validate ¶
func (o WriteBytes) Validate() error
Click to show internal directories.
Click to hide internal directories.