Documentation
¶
Overview ¶
Package app provides the core application logic for awslogcheck.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoRulesFolder = errors.New("no rules folder found") ErrLogGroupNotFound = errors.New("log group not found") ErrRulesDirNotFound = errors.New("rules directory not found") ErrServiceNotConfig = errors.New("service not configured") ErrSMTPConfigMissing = errors.New("smtp configuration missing") ErrSMTPServerFormat = errors.New("smtp server format should be: host:port") )
Static errors for wrapping.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App represents the main application structure.
func New ¶
func New(_ context.Context, cfg configapp.AppConfig, awscfg aws.Config, lastPeriodToWatch int, log *slog.Logger) *App
New creates a new App instance.
func (*App) GetTimeStampMsRangeofLastHour ¶
GetTimeStampMsRangeofLastHour returns timestamps for the last hour in milliseconds.
func (*App) PrintMemoryStats ¶
func (a *App) PrintMemoryStats(stop <-chan interface{})
PrintMemoryStats prints memory statistics periodically until stopped.
func (*App) SendReport ¶
SendReport sends the report file via email using configured mail service.
type CloudWatchLogsFilterClient ¶ added in v0.6.1
type CloudWatchLogsFilterClient interface {
FilterLogEvents(ctx context.Context,
params *cloudwatchlogs.FilterLogEventsInput,
optFns ...func(*cloudwatchlogs.Options)) (*cloudwatchlogs.FilterLogEventsOutput, error)
}
CloudWatchLogsFilterClient interface for testing.
Click to show internal directories.
Click to hide internal directories.