Documentation ¶
Index ¶
- Constants
- Variables
- func BuildJournalPathWithTSuffix(key string, bq JournalFileType, tSuffix string) string
- func IsValidJournalPathInfo(info JournalPathInfo) bool
- type CompressingBlob
- type CompressingBlobReader
- type ConnectionCountTopic
- type Disposable
- type EntryCountTopic
- type Errors
- type FileJournal
- func (journal *FileJournal) AddFlushListener(listener JournalChunkListener)
- func (journal *FileJournal) AddNewChunkListener(listener JournalChunkListener)
- func (journal *FileJournal) Dispose() error
- func (journal *FileJournal) Flush(visitor func(JournalChunk) interface{}) error
- func (journal *FileJournal) Key() string
- func (journal *FileJournal) TailChunk() JournalChunk
- func (journal *FileJournal) Write(data []byte) error
- type FileJournalChunk
- type FileJournalChunkDequeue
- type FileJournalChunkDequeueHead
- type FileJournalChunkWrapper
- func (wrapper *FileJournalChunkWrapper) Dispose() error
- func (wrapper *FileJournalChunkWrapper) Dup() JournalChunk
- func (wrapper *FileJournalChunkWrapper) Id() string
- func (wrapper *FileJournalChunkWrapper) MD5Sum() ([]byte, error)
- func (wrapper *FileJournalChunkWrapper) NextChunk() JournalChunk
- func (wrapper *FileJournalChunkWrapper) Path() (string, error)
- func (wrapper *FileJournalChunkWrapper) Reader() (io.ReadCloser, error)
- func (wrapper *FileJournalChunkWrapper) Size() (int64, error)
- func (wrapper *FileJournalChunkWrapper) String() string
- type FileJournalGroup
- type FileJournalGroupFactory
- type FluentRecord
- type FluentRecordSet
- type ForwardInput
- type ForwardInputFactory
- type ForwardOutput
- type Journal
- type JournalChunk
- type JournalChunkListener
- type JournalFileType
- type JournalGroup
- type JournalGroupFactory
- type JournalPathInfo
- type Panicked
- type Port
- type TDOutput
- type TinyFluentRecord
- type Worker
- type WorkerSet
Constants ¶
View Source
const ( Head = JournalFileType('b') Rest = JournalFileType('q') )
Variables ¶
View Source
var NilJournalPathInfo = JournalPathInfo{"", 0, "", "", 0, nil}
Functions ¶
func BuildJournalPathWithTSuffix ¶
func BuildJournalPathWithTSuffix(key string, bq JournalFileType, tSuffix string) string
func IsValidJournalPathInfo ¶
func IsValidJournalPathInfo(info JournalPathInfo) bool
Types ¶
type CompressingBlob ¶
type CompressingBlob struct {
// contains filtered or unexported fields
}
func NewCompressingBlob ¶
func NewCompressingBlob(blob td_client.Blob, bufferSize int, level int, tempFactory ioextras.RandomAccessStoreFactory) *CompressingBlob
func (*CompressingBlob) Dispose ¶
func (blob *CompressingBlob) Dispose() error
func (*CompressingBlob) MD5Sum ¶
func (blob *CompressingBlob) MD5Sum() ([]byte, error)
func (*CompressingBlob) Reader ¶
func (blob *CompressingBlob) Reader() (io.ReadCloser, error)
func (*CompressingBlob) Size ¶
func (blob *CompressingBlob) Size() (int64, error)
type CompressingBlobReader ¶
type CompressingBlobReader struct {
// contains filtered or unexported fields
}
func (*CompressingBlobReader) Close ¶
func (reader *CompressingBlobReader) Close() error
type ConnectionCountTopic ¶
type ConnectionCountTopic struct{}
type Disposable ¶
type Disposable interface {
Dispose() error
}
type EntryCountTopic ¶
type EntryCountTopic struct{}
type FileJournal ¶
type FileJournal struct {
// contains filtered or unexported fields
}
func (*FileJournal) AddFlushListener ¶
func (journal *FileJournal) AddFlushListener(listener JournalChunkListener)
func (*FileJournal) AddNewChunkListener ¶
func (journal *FileJournal) AddNewChunkListener(listener JournalChunkListener)
func (*FileJournal) Dispose ¶
func (journal *FileJournal) Dispose() error
func (*FileJournal) Flush ¶
func (journal *FileJournal) Flush(visitor func(JournalChunk) interface{}) error
func (*FileJournal) Key ¶
func (journal *FileJournal) Key() string
func (*FileJournal) TailChunk ¶
func (journal *FileJournal) TailChunk() JournalChunk
func (*FileJournal) Write ¶
func (journal *FileJournal) Write(data []byte) error
type FileJournalChunk ¶
type FileJournalChunkDequeue ¶
type FileJournalChunkDequeue struct {
// contains filtered or unexported fields
}
type FileJournalChunkDequeueHead ¶
type FileJournalChunkDequeueHead struct {
// contains filtered or unexported fields
}
type FileJournalChunkWrapper ¶
type FileJournalChunkWrapper struct {
// contains filtered or unexported fields
}
func (*FileJournalChunkWrapper) Dispose ¶
func (wrapper *FileJournalChunkWrapper) Dispose() error
func (*FileJournalChunkWrapper) Dup ¶
func (wrapper *FileJournalChunkWrapper) Dup() JournalChunk
func (*FileJournalChunkWrapper) Id ¶
func (wrapper *FileJournalChunkWrapper) Id() string
func (*FileJournalChunkWrapper) MD5Sum ¶
func (wrapper *FileJournalChunkWrapper) MD5Sum() ([]byte, error)
func (*FileJournalChunkWrapper) NextChunk ¶
func (wrapper *FileJournalChunkWrapper) NextChunk() JournalChunk
func (*FileJournalChunkWrapper) Path ¶
func (wrapper *FileJournalChunkWrapper) Path() (string, error)
func (*FileJournalChunkWrapper) Reader ¶
func (wrapper *FileJournalChunkWrapper) Reader() (io.ReadCloser, error)
func (*FileJournalChunkWrapper) Size ¶
func (wrapper *FileJournalChunkWrapper) Size() (int64, error)
func (*FileJournalChunkWrapper) String ¶
func (wrapper *FileJournalChunkWrapper) String() string
type FileJournalGroup ¶
type FileJournalGroup struct {
// contains filtered or unexported fields
}
func (*FileJournalGroup) Dispose ¶
func (journalGroup *FileJournalGroup) Dispose() error
func (*FileJournalGroup) GetFileJournal ¶
func (journalGroup *FileJournalGroup) GetFileJournal(key string) *FileJournal
func (*FileJournalGroup) GetJournal ¶
func (journalGroup *FileJournalGroup) GetJournal(key string) Journal
func (*FileJournalGroup) GetJournalKeys ¶
func (journalGroup *FileJournalGroup) GetJournalKeys() []string
type FileJournalGroupFactory ¶
type FileJournalGroupFactory struct {
// contains filtered or unexported fields
}
func (*FileJournalGroupFactory) GetJournalGroup ¶
func (factory *FileJournalGroupFactory) GetJournalGroup(path string, worker Worker) (*FileJournalGroup, error)
type FluentRecord ¶
type FluentRecordSet ¶
type FluentRecordSet struct { Tag string Records []TinyFluentRecord }
type ForwardInput ¶
type ForwardInput struct {
// contains filtered or unexported fields
}
func NewForwardInput ¶
func (*ForwardInput) Start ¶
func (input *ForwardInput) Start()
func (*ForwardInput) Stop ¶
func (input *ForwardInput) Stop()
func (*ForwardInput) String ¶
func (input *ForwardInput) String() string
func (*ForwardInput) WaitForShutdown ¶
func (input *ForwardInput) WaitForShutdown()
type ForwardInputFactory ¶
type ForwardInputFactory struct{}
type ForwardOutput ¶
type ForwardOutput struct {
// contains filtered or unexported fields
}
func NewForwardOutput ¶
func (*ForwardOutput) Emit ¶
func (output *ForwardOutput) Emit(recordSets []FluentRecordSet) error
func (*ForwardOutput) Start ¶
func (output *ForwardOutput) Start()
func (*ForwardOutput) Stop ¶
func (output *ForwardOutput) Stop()
func (*ForwardOutput) String ¶
func (output *ForwardOutput) String() string
func (*ForwardOutput) WaitForShutdown ¶
func (output *ForwardOutput) WaitForShutdown()
type Journal ¶
type Journal interface { Disposable Key() string Write(data []byte) error TailChunk() JournalChunk AddNewChunkListener(JournalChunkListener) AddFlushListener(JournalChunkListener) Flush(func(JournalChunk) interface{}) error }
type JournalChunk ¶
type JournalChunk interface { Disposable Id() string String() string Size() (int64, error) Reader() (io.ReadCloser, error) NextChunk() JournalChunk MD5Sum() ([]byte, error) Dup() JournalChunk }
type JournalChunkListener ¶
type JournalChunkListener interface { NewChunkCreated(JournalChunk) error ChunkFlushed(JournalChunk) error }
type JournalFileType ¶
type JournalFileType rune
type JournalGroup ¶
type JournalGroup interface { Disposable GetJournal(key string) Journal GetJournalKeys() []string }
type JournalGroupFactory ¶
type JournalGroupFactory interface {
GetJournalGroup() JournalGroup
}
type JournalPathInfo ¶
type JournalPathInfo struct { Key string Type JournalFileType VariablePortion string TSuffix string Timestamp int64 // elapsed time in msec since epoch UniqueId []byte }
func BuildJournalPath ¶
func BuildJournalPath(key string, bq JournalFileType, time_ time.Time, randValue int64) JournalPathInfo
func DecodeJournalPath ¶
func DecodeJournalPath(variablePortion string) (JournalPathInfo, error)
type Port ¶
type Port interface {
Emit(recordSets []FluentRecordSet) error
}
type TDOutput ¶
type TDOutput struct {
// contains filtered or unexported fields
}
func NewTDOutput ¶
func NewTDOutput( logger *logging.Logger, endpoint string, connectionTimeout time.Duration, writeTimeout time.Duration, flushInterval time.Duration, parallelism int, journalGroupPath string, maxJournalChunkSize int64, apiKey string, databaseName string, tableName string, tempDir string, useSsl bool, rootCAs *x509.CertPool, httpProxy string, ) (*TDOutput, error)
func (*TDOutput) Emit ¶
func (output *TDOutput) Emit(recordSets []FluentRecordSet) error
func (*TDOutput) WaitForShutdown ¶
func (output *TDOutput) WaitForShutdown()
type TinyFluentRecord ¶
type WorkerSet ¶
type WorkerSet struct {
// contains filtered or unexported fields
}
func NewWorkerSet ¶
func NewWorkerSet() *WorkerSet
Source Files ¶
Click to show internal directories.
Click to hide internal directories.