boot

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2025 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TEventFlushInterval is the time between automatic flushes of telemetry events (1 hour)
	TEventFlushInterval = time.Hour

	// TEventTickInterval is the time between ticker checks for telemetry events (5 minutes)
	TEventTickInterval = 5 * time.Minute

	// TEventMaxBufferSize is the maximum number of events to buffer before forcing a flush
	TEventMaxBufferSize = 300
)
View Source
const (
	// PeekBufferSize is the number of bytes to peek for protocol identification
	PeekBufferSize = 8
)

Variables

This section is empty.

Functions

func NewChannelListener added in v0.9.0

func NewChannelListener(addr net.Addr) *channelListener

NewChannelListener creates a new channel-based listener

func RunServer

func RunServer(config CLIConfig) error

RunServer initializes and runs the Outrig server

Types

type CLIConfig

type CLIConfig struct {
	// ListenAddr overrides the default web server listen address
	ListenAddr string
	// CloseOnStdin indicates whether the server should shut down when stdin is closed
	CloseOnStdin bool
	// TrayAppPid is the PID of the tray application that started the server (0 if not from tray)
	TrayAppPid int
}

CLIConfig holds configuration options passed from the command line

type MultiplexerListeners added in v0.9.0

type MultiplexerListeners struct {
	HTTPListener net.Listener
	TCPListener  net.Listener
}

MultiplexerListeners holds the two listeners returned by MakeMultiplexerListener

func MakeMultiplexerListener added in v0.9.0

func MakeMultiplexerListener(ctx context.Context, addr string) (*MultiplexerListeners, error)

MakeMultiplexerListener creates a multiplexer that listens on a single address and returns separate listeners for HTTP and custom TCP protocols

type PacketUnmarshalHelper

type PacketUnmarshalHelper struct {
	Type string          `json:"type"`
	Data json.RawMessage `json:"data"`
}

PacketUnmarshalHelper is the envelope for incoming JSON packets.

Jump to

Keyboard shortcuts

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