conversion

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Converters

func Converters() []string

Converters returns all available formats

Types

type Converter

type Converter interface {
	Convert(report ...pipeline.Report) ([]byte, error)
}

Converter represents a type capable of converting a list of reports to a certain format and then to an []byte

func Csv

func Csv() Converter

Csv returns a new csvConverter

func Get

func Get(name string) Converter

Get returns a registered converter for the given format

func Json

func Json() Converter

Json returns a new jsonConverter

Jump to

Keyboard shortcuts

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