avro1

package
v2.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Id                     string                      `json:"id"`
	Deliveredatdatetimeutc int64                       `json:"deliveredAtDateTimeUtc"`
	Eventtype              EventType                   `json:"eventType"`
	Interactivecontent     *[]InteractiveContentRecord `json:"interactiveContent"`
}

func (Event) AvroRecord

func (Event) AvroRecord() avrotypegen.RecordInfo

AvroRecord implements the avro.AvroRecord interface.

type EventType

type EventType int
const (
	EventTypeCreated EventType = iota
	EventTypeAssociated
)

func (EventType) MarshalText

func (e EventType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler by returning the textual representation of EventType.

func (EventType) String

func (e EventType) String() string

String returns the textual representation of EventType.

func (*EventType) UnmarshalText

func (e *EventType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler by expecting the textual representation of EventType.

type InteractiveContentRecord added in v2.1.1

type InteractiveContentRecord struct {
	Url string `json:"url"`
}

func (InteractiveContentRecord) AvroRecord added in v2.1.1

AvroRecord implements the avro.AvroRecord interface.

Jump to

Keyboard shortcuts

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