category

package
v0.0.0-...-845418e Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const AVERAGE_LINES_COUNT = 50
View Source
const BIG_FILE_SUFFIX = "_big"
View Source
const LOG_FILE_SUFFIX = ".log"
View Source
const MAX_BYTES_PER_BATCH = network.MAX_BYTES_TO_SEND / 2 // depends on how much we can to network at once
View Source
const MAX_BYTES_PER_LINE = 1 << 20 // 1mb per line
View Source
const OLD_FILE_SUFFIX = ".old"
View Source
const READ_BUFFER_SIZE = 1 << 14 // 16kb

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Name         string
	AbsolutePath string
	Inode        uint64
	Size         uint64
	IsExclusive  bool
	IsRotated    bool
	IsFinal      bool
}

func NewEvent

func NewEvent(cname, absPath string, inode, size uint64, alwaysFlock bool, isFinal bool) Event

type FinalSyncRequest

type FinalSyncRequest struct {
	AbsolutePath string
	Inode        uint64
	Size         uint64
}

type Listener

type Listener struct {
	InCh chan Event
	// contains filtered or unexported fields
}

func NewListener

func NewListener(ctx context.Context, config *lsdProto.LsdConfigClientConfigT, name string, odb *offsets.Db, checker *usage.Checker, inCh chan Event, outCh chan *lsdProto.RequestNewEventsEventT, finalSyncCh chan FinalSyncRequest) *Listener

func (*Listener) Listen

func (cl *Listener) Listen()

Jump to

Keyboard shortcuts

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