date_time

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DateTimeTableIdentifier = "chaos_date_time"

Variables

This section is empty.

Functions

func NewDateTimeExtractor

func NewDateTimeExtractor() artifact_source.Extractor

NewDateTimeExtractor creates a new DateTimeExtractor

Types

type DateTimeExtractor

type DateTimeExtractor struct {
}

DateTimeExtractor is an extractor that receives JSON serialised DateTimeBatch objects and extracts DateTime records from them

func (*DateTimeExtractor) Extract

func (c *DateTimeExtractor) Extract(_ context.Context, a any) ([]any, error)

Extract unmarshalls the artifact data as an DateTimeBatch and returns the DateTime records

func (*DateTimeExtractor) Identifier

func (c *DateTimeExtractor) Identifier() string

type DateTimeTable

type DateTimeTable struct {
}

func (*DateTimeTable) EnrichRow

func (c *DateTimeTable) EnrichRow(row *rows.DateTime, sourceEnrichmentFields schema.SourceEnrichment) (*rows.DateTime, error)

func (*DateTimeTable) GetSourceMetadata

func (c *DateTimeTable) GetSourceMetadata() ([]*table.SourceMetadata[*rows.DateTime], error)

func (*DateTimeTable) Identifier

func (c *DateTimeTable) Identifier() string

Jump to

Keyboard shortcuts

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