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
Click to show internal directories.
Click to hide internal directories.