input

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TCPTimeout = time.Minute

TCPTimeout defines the maximum time between Reads

Functions

func StartTCP

func StartTCP(addr string, cb WriteLineFunc) (io.Closer, error)

StartTCP ...

func StartUDP

func StartUDP(addr string, cb WriteLineFunc) (io.Closer, error)

StartUDP ...

Types

type NotifyCloser

type NotifyCloser struct {
	// contains filtered or unexported fields
}

NotifyCloser ...

func NewNotifyCloser

func NewNotifyCloser(toClose io.Closer) *NotifyCloser

NewNotifyCloser ...

func (*NotifyCloser) Close

func (c *NotifyCloser) Close() error

Close ...

func (*NotifyCloser) CloseChan

func (c *NotifyCloser) CloseChan() chan struct{}

CloseChan ...

func (*NotifyCloser) WasClosed

func (c *NotifyCloser) WasClosed() bool

WasClosed returns true if this Closable was closed

type WriteLineFunc

type WriteLineFunc func(line []byte, remoteIP string)

WriteLineFunc ...

Jump to

Keyboard shortcuts

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