Documentation
¶
Index ¶
- Constants
- func CheckFieldNames(fieldnames []string, ctx context.Context, v flagutils.ValidationSet, ...) error
- func NewOutput[I, O any](chain chain.Chain[I, O], ...) *internal.DefaultOutput[I, O]
- type ElementSpecs
- type ExtendableFieldProvider
- type FieldNameProvider
- type FieldProvider
- type Fields
- type MappingProvider
- type Options
- func (o *Options[I]) GetFieldNames(stage string) []string
- func (o *Options[I]) GetMode() string
- func (o *Options[I]) GetOutput() Output[I]
- func (o *Options[I]) GetOutputs() OutputsFactory[I]
- func (o *Options[I]) Validate(ctx context.Context, opts flagutils.OptionSet, v flagutils.ValidationSet) error
- func (o *Options[I]) WithDescription(s string) *Options[I]
- type Output
- type OutputFactory
- type OutputsFactory
- type Result
Constants ¶
View Source
const FIELD_MODE_OUTPUT = "<output>"
Variables ¶
This section is empty.
Functions ¶
func CheckFieldNames ¶
func NewOutput ¶
func NewOutput[I, O any](chain chain.Chain[I, O], processor streaming.ProcessorFactory[ElementSpecs, Result, O]) *internal.DefaultOutput[I, O]
Types ¶
type ElementSpecs ¶
type ElementSpecs = internal.ElementSpecs
type ExtendableFieldProvider ¶
type ExtendableFieldProvider = internal.ExtendedFieldProvider
type FieldNameProvider ¶
type FieldNameProvider = internal.FieldNameProvider
type FieldProvider ¶
type FieldProvider = internal.FieldProvider
type Fields ¶
func ComposeFields ¶
func ComposeFields(fields ...interface{}) Fields
ComposeFields composes a (string) field list based on a sequence of strings and or field lists.
type MappingProvider ¶
type MappingProvider[I any, F FieldProvider] = internal.MappingProvider[I, F]
type Options ¶
type Options[I any] struct { flagutils.SimpleOption[string, *Options[I]] // contains filtered or unexported fields }
func New ¶
func New[I any](out OutputsFactory[I]) *Options[I]
func (*Options[I]) GetFieldNames ¶
func (*Options[I]) GetOutputs ¶
func (o *Options[I]) GetOutputs() OutputsFactory[I]
func (*Options[I]) WithDescription ¶
type OutputFactory ¶
type OutputFactory[I any] = internal.OutputFactory[I]
type OutputsFactory ¶
type OutputsFactory[I any] = internal.OutputsFactory[I]
func NewOutputsFactory ¶
func NewOutputsFactory[I any](alt ...map[string]OutputFactory[I]) OutputsFactory[I]
Click to show internal directories.
Click to hide internal directories.