Documentation ¶
Index ¶
- type JqObjectMiddleware
- type JqTableMiddleware
- type ObjectMiddleware
- type Processor
- type RowMiddleware
- type TableMiddleware
- type TableProcessor
- func (p *TableProcessor) AddObjectMiddleware(mw ...ObjectMiddleware)
- func (p *TableProcessor) AddObjectMiddlewareAtIndex(i int, mw ...ObjectMiddleware)
- func (p *TableProcessor) AddObjectMiddlewareInFront(mw ...ObjectMiddleware)
- func (p *TableProcessor) AddRow(ctx context.Context, row types.Row) error
- func (p *TableProcessor) AddRowMiddleware(mw ...RowMiddleware)
- func (p *TableProcessor) AddRowMiddlewareAtIndex(i int, mw ...RowMiddleware)
- func (p *TableProcessor) AddRowMiddlewareInFront(mw ...RowMiddleware)
- func (p *TableProcessor) AddTableMiddleware(mw ...TableMiddleware)
- func (p *TableProcessor) AddTableMiddlewareAtIndex(i int, mw ...TableMiddleware)
- func (p *TableProcessor) AddTableMiddlewareInFront(mw ...TableMiddleware)
- func (p *TableProcessor) Close(ctx context.Context) error
- func (p *TableProcessor) GetTable() *types.Table
- func (p *TableProcessor) ReplaceTableMiddleware(mw ...TableMiddleware)
- type TableProcessorOption
- func WithObjectMiddleware(om ...ObjectMiddleware) TableProcessorOption
- func WithPrependObjectMiddleware(om ...ObjectMiddleware) TableProcessorOption
- func WithPrependRowMiddleware(rm ...RowMiddleware) TableProcessorOption
- func WithPrependTableMiddleware(tm ...TableMiddleware) TableProcessorOption
- func WithRowMiddleware(rm ...RowMiddleware) TableProcessorOption
- func WithTableMiddleware(tm ...TableMiddleware) TableProcessorOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JqObjectMiddleware ¶ added in v0.2.33
type JqObjectMiddleware struct {
// contains filtered or unexported fields
}
func NewJqObjectMiddleware ¶ added in v0.2.33
func NewJqObjectMiddleware( expression string, ) (*JqObjectMiddleware, error)
type JqTableMiddleware ¶ added in v0.2.33
type JqTableMiddleware struct {
// contains filtered or unexported fields
}
func NewJqTableMiddleware ¶ added in v0.2.33
func NewJqTableMiddleware( fieldExpressions map[types.FieldName]string, ) (*JqTableMiddleware, error)
type ObjectMiddleware ¶
type RowMiddleware ¶ added in v0.3.0
type TableMiddleware ¶
type TableProcessor ¶ added in v0.3.1
type TableProcessor struct { TableMiddlewares []TableMiddleware ObjectMiddlewares []ObjectMiddleware RowMiddlewares []RowMiddleware Table *types.Table }
func NewTableProcessor ¶ added in v0.3.1
func NewTableProcessor(options ...TableProcessorOption) *TableProcessor
func (*TableProcessor) AddObjectMiddleware ¶ added in v0.3.1
func (p *TableProcessor) AddObjectMiddleware(mw ...ObjectMiddleware)
func (*TableProcessor) AddObjectMiddlewareAtIndex ¶ added in v0.3.1
func (p *TableProcessor) AddObjectMiddlewareAtIndex(i int, mw ...ObjectMiddleware)
func (*TableProcessor) AddObjectMiddlewareInFront ¶ added in v0.3.1
func (p *TableProcessor) AddObjectMiddlewareInFront(mw ...ObjectMiddleware)
func (*TableProcessor) AddRow ¶ added in v0.3.1
AddRow runs row through the chain of ObjectMiddlewares, then RowMiddlewares and adds the resulting rows to the table.
func (*TableProcessor) AddRowMiddleware ¶ added in v0.3.1
func (p *TableProcessor) AddRowMiddleware(mw ...RowMiddleware)
func (*TableProcessor) AddRowMiddlewareAtIndex ¶ added in v0.3.1
func (p *TableProcessor) AddRowMiddlewareAtIndex(i int, mw ...RowMiddleware)
func (*TableProcessor) AddRowMiddlewareInFront ¶ added in v0.3.1
func (p *TableProcessor) AddRowMiddlewareInFront(mw ...RowMiddleware)
func (*TableProcessor) AddTableMiddleware ¶ added in v0.3.1
func (p *TableProcessor) AddTableMiddleware(mw ...TableMiddleware)
func (*TableProcessor) AddTableMiddlewareAtIndex ¶ added in v0.3.1
func (p *TableProcessor) AddTableMiddlewareAtIndex(i int, mw ...TableMiddleware)
func (*TableProcessor) AddTableMiddlewareInFront ¶ added in v0.3.1
func (p *TableProcessor) AddTableMiddlewareInFront(mw ...TableMiddleware)
func (*TableProcessor) Close ¶ added in v0.3.1
func (p *TableProcessor) Close(ctx context.Context) error
func (*TableProcessor) GetTable ¶ added in v0.3.1
func (p *TableProcessor) GetTable() *types.Table
func (*TableProcessor) ReplaceTableMiddleware ¶ added in v0.3.1
func (p *TableProcessor) ReplaceTableMiddleware(mw ...TableMiddleware)
type TableProcessorOption ¶ added in v0.3.1
type TableProcessorOption func(*TableProcessor)
func WithObjectMiddleware ¶ added in v0.3.0
func WithObjectMiddleware(om ...ObjectMiddleware) TableProcessorOption
func WithPrependObjectMiddleware ¶ added in v0.3.0
func WithPrependObjectMiddleware(om ...ObjectMiddleware) TableProcessorOption
func WithPrependRowMiddleware ¶ added in v0.3.0
func WithPrependRowMiddleware(rm ...RowMiddleware) TableProcessorOption
func WithPrependTableMiddleware ¶ added in v0.5.20
func WithPrependTableMiddleware(tm ...TableMiddleware) TableProcessorOption
func WithRowMiddleware ¶ added in v0.3.0
func WithRowMiddleware(rm ...RowMiddleware) TableProcessorOption
func WithTableMiddleware ¶ added in v0.3.0
func WithTableMiddleware(tm ...TableMiddleware) TableProcessorOption
Click to show internal directories.
Click to hide internal directories.