diff --git a/l9helper.go b/l9helper.go new file mode 100644 index 0000000..ccf2c2a --- /dev/null +++ b/l9helper.go @@ -0,0 +1,19 @@ +package l9format + +func (event *L9Event) HasTransport(transport string) bool { + for _, check := range event.Transports { + if check == transport { + return true + } + } + return false +} + +func (event *L9Event) HasSource(source string) bool { + for _, check := range event.EventPipeline { + if check == source { + return true + } + } + return false +} \ No newline at end of file