scans

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SamplingModeCount        = "count"
	SamplingModeOnePerPrefix = "one_per_prefix"
)

Variables

This section is empty.

Functions

func ApplyDefaults

func ApplyDefaults(input *model.CreateScanJobRequest)

func Validate

func Validate(input model.CreateScanJobRequest) error

Types

type PrefixSyncer

type PrefixSyncer interface {
	Sync(context.Context) (model.SourceStatus, error)
	SyncEnabledASNs(context.Context) (model.ASNSyncSummary, error)
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(store Store, syncer PrefixSyncer) *Service

func (*Service) Create

func (s *Service) Create(ctx context.Context, input model.CreateScanJobRequest, kind string) (model.ScanJob, error)

type Store

type Store interface {
	ListActivePrefixes(context.Context, bool) ([]model.Prefix, error)
	CreateScanJob(context.Context, model.CreateScanJobRequest, []string) (model.ScanJob, error)
}

Jump to

Keyboard shortcuts

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