opentsdbtelnet

package
v3.0.0-...-93162ec Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Enable            bool
	PortList          []int
	TCPKeepAlive      bool
	MaxTCPConnections int
	DBList            []string
	User              string
	Password          string
	BatchSize         int
	FlushInterval     time.Duration
	TTL               int
}

type Connection

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

type Plugin

type Plugin struct {
	TCPListeners []*TCPListener
	// contains filtered or unexported fields
}

func (*Plugin) Init

func (p *Plugin) Init(_ gin.IRouter) error

func (*Plugin) Start

func (p *Plugin) Start() error

func (*Plugin) Stop

func (p *Plugin) Stop() error

func (*Plugin) String

func (p *Plugin) String() string

func (*Plugin) Version

func (p *Plugin) Version() string

type TCPListener

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

func NewTCPListener

func NewTCPListener(plugin *Plugin, index int, listener *net.TCPListener, maxConnections int, keepalive bool) *TCPListener

Jump to

Keyboard shortcuts

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