reporting

package
v0.1.162 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Copyright (c) 2022 Take 2 Identity, Inc

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProgressReporter

type ProgressReporter interface {
	Progress()
	Close()
}

type SimpleProgress

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

func NewSimpleProgress

func NewSimpleProgress(out io.Writer, stats *StatsReporter) *SimpleProgress

func (*SimpleProgress) Close

func (s *SimpleProgress) Close()

func (*SimpleProgress) Progress

func (s *SimpleProgress) Progress()

type StatsReporter

type StatsReporter struct {
	Processed         int                  `json:"processed"`
	Errors            int                  `json:"errors"`
	RiskDistribution  map[string]int       `json:"riskDistribution"`
	ScoreDistribution []float64            `json:"scoreDistribution"`
	TopRisky          []*formatters.Record `json:"topRisky"`
}

func NewStatsHandler

func NewStatsHandler() *StatsReporter

func (*StatsReporter) Handle

func (s *StatsReporter) Handle(record *formatters.Record)

func (*StatsReporter) JsonReport

func (s *StatsReporter) JsonReport(writer io.Writer) error

Jump to

Keyboard shortcuts

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