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
NewChannelListener creates a new channel-based listener
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
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.
Click to show internal directories.
Click to hide internal directories.