screener

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: MIT Imports: 32 Imported by: 0

Documentation

Overview

Package screener provides the screener api.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SplitAndWriteCSV added in v0.0.11

func SplitAndWriteCSV(file string, outDir string) (files []string, err error)

SplitAndWriteCSV splits a csv file and writes the output to a directory.

Types

type Screener

type Screener interface {
	Start(ctx context.Context) error
}

Screener is the interface for the screener.

func NewScreener

func NewScreener(ctx context.Context, cfg config.Config, metricHandler metrics.Handler) (_ Screener, err error)

NewScreener creates a new screener.

type Set

type Set struct {
	Enabled    string `csv:"Enabled"`
	ID         string `csv:"ID"`
	Category   string `csv:"Category"`
	Name       string `csv:"Name"`
	TypeOfRisk string `csv:"Type of risk"`
	Severity   string `csv:"Severity"`
}

Set is a struct for the screener set.

Directories

Path Synopsis
Package internal provides internal functionality for the screener-api.
Package internal provides internal functionality for the screener-api.

Jump to

Keyboard shortcuts

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