v1

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1 is a container for endpoints that are used to power the v1 of the service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DependencyCheckHandler added in v0.4.0

type DependencyCheckHandler struct {
	DynamoDBDependencyChecker      domain.DependencyChecker
	NexposeClientDependencyChecker domain.DependencyChecker
}

DependencyCheckHandler takes in a domain.DependencyChecker to check external dependencies

func (*DependencyCheckHandler) Handle added in v0.4.0

Handle makes a call CheckDependencies from DependencyChecker that verifies this app can talk to it's external dependencies

type NotificationHandler

type NotificationHandler struct {
	ScanFetcher      domain.ScanFetcher
	TimestampFetcher domain.TimestampFetcher
	TimestampStorer  domain.TimestampStorer
	Producer         domain.Producer
	LogFn            domain.LogFn
	StatFn           domain.StatFn
}

NotificationHandler takes a duration and returns a list of completed scans.

func (*NotificationHandler) Handle

func (h *NotificationHandler) Handle(ctx context.Context) (Output, error)

Handle queries for completed scans since the last known successfully processed scan timestamp, produces all completed scans to a queue, and returns the list of completed scans.

type Output

type Output struct {
	Response []scanNotification `json:"response"`
}

Output contains a list of completed Nexpose scans.

Jump to

Keyboard shortcuts

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