Documentation
¶
Index ¶
- func DurationToProto(d time.Duration) *durationpb.Duration
- func ProtoToDuration(d *durationpb.Duration) time.Duration
- func ProtoToTime(ts *timestamppb.Timestamp) time.Time
- func TimeToProto(t time.Time) *timestamppb.Timestamp
- type ArtifactDiscovered
- type ArtifactDownloaded
- type ArtifactExtracted
- type Base
- type Chunk
- type Complete
- type Error
- type Event
- type ProtoEvent
- type RowExtracted
- type SourceComplete
- type Started
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DurationToProto ¶
func DurationToProto(d time.Duration) *durationpb.Duration
func ProtoToDuration ¶
func ProtoToDuration(d *durationpb.Duration) time.Duration
func ProtoToTime ¶
func ProtoToTime(ts *timestamppb.Timestamp) time.Time
func TimeToProto ¶
func TimeToProto(t time.Time) *timestamppb.Timestamp
Types ¶
type ArtifactDiscovered ¶
type ArtifactDiscovered struct { Base ExecutionId string Info *types.ArtifactInfo }
func NewArtifactDiscoveredEvent ¶
func NewArtifactDiscoveredEvent(executionId string, info *types.ArtifactInfo) *ArtifactDiscovered
func (*ArtifactDiscovered) ToProto ¶
func (c *ArtifactDiscovered) ToProto() *proto.Event
type ArtifactDownloaded ¶
type ArtifactDownloaded struct { Base ExecutionId string Info *types.DownloadedArtifactInfo }
func NewArtifactDownloadedEvent ¶
func NewArtifactDownloadedEvent(executionId string, info *types.DownloadedArtifactInfo) *ArtifactDownloaded
func (*ArtifactDownloaded) ToProto ¶
func (c *ArtifactDownloaded) ToProto() *proto.Event
type ArtifactExtracted ¶
type ArtifactExtracted struct { Base ExecutionId string Info *types.DownloadedArtifactInfo }
ArtifactExtracted is an event that is fired by an ExtractorSource when it has extracted an artifact (but not yet processed it into rows)
func NewArtifactExtractedEvent ¶
func NewArtifactExtractedEvent(executionId string, info *types.DownloadedArtifactInfo, rowsExtracted int64) *ArtifactExtracted
func (*ArtifactExtracted) ToProto ¶
func (c *ArtifactExtracted) ToProto() *proto.Event
ToProto converts the event to a proto event
type Base ¶
type Base struct { }
Base is the base struct for all events - it implements the marker function isEvent
type Chunk ¶
func NewChunkEvent ¶
type Complete ¶
func NewCompletedEvent ¶
type Error ¶
func NewErrorEvent ¶
type Event ¶
type Event interface {
// contains filtered or unexported methods
}
func SourceCompleteFromProto ¶
type ProtoEvent ¶
ProtoEvent is an interface for events that can be converted to a proto.Event
type RowExtracted ¶
type RowExtracted struct { Base ExecutionId string // enrichment values passed from the source to the collection to include in the enrichment process SourceEnrichment schema.SourceEnrichment Row any }
func NewRowExtractedEvent ¶
func NewRowExtractedEvent(executionId string, row any, SourceEnrichmens schema.SourceEnrichment) *RowExtracted
type SourceComplete ¶
SourceComplete is an event that is fired when a plugin used a source has completed a source collection
func NewSourceCompletedEvent ¶
func NewSourceCompletedEvent(executionId string, err error) *SourceComplete
func (*SourceComplete) ToProto ¶
func (c *SourceComplete) ToProto() *proto.Event
type Started ¶
func NewStartedEvent ¶
type Status ¶
type Status struct { Base ExecutionId string LatestArtifactLocation string // * ArtifactsDiscovered int64 ArtifactsDownloaded int64 ArtifactsDownloadedBytes int64 // * ArtifactsExtracted int64 ArtifactErrors int64 // * RowsReceived int64 RowsEnriched int64 Errors int64 // contains filtered or unexported fields }
func NewStatusEvent ¶
func (*Status) OnRowEnriched ¶
func (r *Status) OnRowEnriched()
Click to show internal directories.
Click to hide internal directories.