{"modulePath":"github.com/utmstack/UTMStack/plugins/feeds","version":"v0.0.0-20261126134315-738f65073a40","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package mapper\n\n## Variables\n\n```go\nvar ErrInvalidValue = errors.New(\"value is not valid for the entity type\")\n```\n\n## Types\n\n```go\ntype EntityEnrichmentContext struct {\n\tIncidentID string\n\tAlertID    string\n\tEventID    string\n\n\tSeverity string\n\tDataType string\n\n\tSourceType string\n\n\tCountry        string\n\tCity           string\n\tLatitude       *float64\n\tLongitude      *float64\n\tASO            string\n\tAccuracyRadius *float64\n}\n```\n\n```go\ntype EntityMapper struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewEntityMapper() *EntityMapper\n```\n\n```go\nfunc (m *EntityMapper) BuildEntity(entityType string, value any, context EntityEnrichmentContext) (*entities.Entity, string, error)\n```\n\n```go\nfunc (m *EntityMapper) MapFieldToEntityType(field *models.FlattenedField) (string, bool)\n```\n\n","path":"github.com/utmstack/UTMStack/plugins/feeds/internal/mapper","name":"mapper","synopsis":"","isRedistributable":true}
