ingest

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2020 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Metrics

func Metrics(w http.ResponseWriter, r *http.Request)

Types

type MetricsResponse

type MetricsResponse struct {
	Invalid          int
	Published        int
	ValidationErrors map[string]ValidationError
}

func NewMetricsResponse

func NewMetricsResponse() MetricsResponse

func (*MetricsResponse) AddInvalid

func (m *MetricsResponse) AddInvalid(err error, index int)

AddInvalid updates the counts and makes sure there's up to 10 examples per error

type ValidationError

type ValidationError struct {
	Count      int
	ExampleIds []int
}

Jump to

Keyboard shortcuts

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