logstreamer

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const CaCert = `` /* 1874-byte string literal not displayed */

Variables

View Source
var ErrClosed = errors.New("pool is closed")

Functions

func NewChannelPool

func NewChannelPool(initialCap, maxCap int, factory Factory, isTls bool) (*channelPool, error)

Types

type Factory

type Factory func() (net.Conn, error)

Factory is a function to create new connections.

type LogStreamer

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

func NewLogStreamer

func NewLogStreamer(ctx context.Context, critool *cri.CRITool) (*LogStreamer, error)

func (*LogStreamer) Done

func (ls *LogStreamer) Done() chan struct{}

func (*LogStreamer) StreamLogs

func (ls *LogStreamer) StreamLogs() error

type PoolConn

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

func (*PoolConn) Close

func (p *PoolConn) Close() error

Close() puts the given connects back to the pool instead of closing it.

func (*PoolConn) MarkUnusable

func (p *PoolConn) MarkUnusable()

MarkUnusable() marks the connection not usable any more, to let the pool close it instead of returning it to pool.

Jump to

Keyboard shortcuts

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