type Format interface {
// MediaType identifies the format MediaType() string// Marshal event to bytes Marshal(*event.Event) ([]byte, error)
// Unmarshal bytes to event Unmarshal([]byte, *event.Event) error
}
Format marshals and unmarshals structured events to bytes.