socket

package
v0.0.0-...-701ea4a Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tailer

type Tailer struct {
	Conn net.Conn
	// contains filtered or unexported fields
}

Tailer reads data from a net.Conn. It uses a `read` callback to be generic over types of connections.

func NewTailer

func NewTailer(source *sources.LogSource, conn net.Conn, outputChan chan *message.Message, read func(*Tailer) ([]byte, string, error)) *Tailer

NewTailer returns a new Tailer

func (*Tailer) Start

func (t *Tailer) Start()

Start prepares the tailer to read and decode data from the connection

func (*Tailer) Stop

func (t *Tailer) Stop()

Stop stops the tailer and waits for the decoder to be flushed

Jump to

Keyboard shortcuts

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