cmd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package cmd abstracts the "main" function's logic out of the main package for integration testing purposes.

Index

Constants

View Source
const (
	// DefaultHTTPServerReadTimeout is the default HTTP server read timeout.
	DefaultHTTPServerReadTimeout = 1 * time.Second
	// DefaultHTTPServerReadHeaderTimeout is the default HTTP server read header timeout.
	DefaultHTTPServerReadHeaderTimeout = 5 * time.Second
	// DefaultAuditCheckInterval when to check audit.log modify time.
	DefaultAuditCheckInterval = 15 * time.Second
	// DefaultAuditModifyTimeThreshold seconds since last write to audit.log before alerting.
	DefaultAuditModifyTimeThreshold = 86400
)

Variables

This section is empty.

Functions

func RunNamedPipe

func RunNamedPipe(ctx context.Context, osArgs []string, h *health.Health, optLoggerConfig *zap.Config) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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