options

package
v0.0.0-...-0cc473b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PailS3    = "s3"
	PailLocal = "local"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AddMetadata

type AddMetadata struct {
	Key      string
	Data     interface{}
	Encoding string
}

type Bucket

type Bucket struct {
	Type PailType
	Name string
	S3   *S3Bucket
}

func (*Bucket) Validate

func (o *Bucket) Validate() error

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 PailType

type PailType string

type Read

type Read struct {
	Key      string
	Metadata bool
}

func (Read) Validate

func (o Read) Validate() error

type S3Bucket

type S3Bucket struct {
	Key    string
	Secret string
	Region string
}

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 Write

type Write struct {
	Key      string
	Data     interface{}
	Encoding string
}

func (Write) Validate

func (o Write) Validate() error

type WriteBytes

type WriteBytes struct {
	Key      string
	Data     []byte
	Encoding string
}

func (WriteBytes) Validate

func (o WriteBytes) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址