models

package
v0.0.0-...-783eb67 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2022 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonOriginator

type CommonOriginator struct {

	// id
	ID string `json:"id,omitempty"`

	// version
	Version string `json:"version,omitempty"`
}

CommonOriginator common originator swagger:model commonOriginator

func (*CommonOriginator) Validate

func (m *CommonOriginator) Validate(formats strfmt.Registry) error

Validate validates this common originator

type EventstoreAppLogEntry

type EventstoreAppLogEntry struct {

	// event
	Event *EventstoreEvent `json:"event,omitempty"`

	// the id number in the stream
	ID string `json:"id,omitempty"`
}

EventstoreAppLogEntry eventstore app log entry swagger:model eventstoreAppLogEntry

func (*EventstoreAppLogEntry) Validate

func (m *EventstoreAppLogEntry) Validate(formats strfmt.Registry) error

Validate validates this eventstore app log entry

type EventstoreAppLogResponse

type EventstoreAppLogResponse struct {

	// results
	Results []*EventstoreAppLogEntry `json:"results"`
}

EventstoreAppLogResponse eventstore app log response swagger:model eventstoreAppLogResponse

func (*EventstoreAppLogResponse) Validate

func (m *EventstoreAppLogResponse) Validate(formats strfmt.Registry) error

Validate validates this eventstore app log response

type EventstoreAppendEventResponse

type EventstoreAppendEventResponse interface{}

EventstoreAppendEventResponse eventstore append event response swagger:model eventstoreAppendEventResponse

type EventstoreEvent

type EventstoreEvent struct {

	// this is the event type that this is related to
	// event type should be in the format of `Entity.Created` so that store can infer the
	// partition this event belongs to
	EventType string `json:"event_type,omitempty"`

	// utc unix timestamp of the event occurence
	OccuredOn int64 `json:"occured_on,omitempty"`

	// The object this event belongs to
	Originator *CommonOriginator `json:"originator,omitempty"`

	// the data of the event is inside the payload
	Payload string `json:"payload,omitempty"`
}

EventstoreEvent Event is what you operate on with event store It's the smalled bit that the event store is aware of swagger:model eventstoreEvent

func (*EventstoreEvent) Validate

func (m *EventstoreEvent) Validate(formats strfmt.Registry) error

Validate validates this eventstore event

type EventstoreGetEventsResponse

type EventstoreGetEventsResponse struct {

	// events
	Events []*EventstoreEvent `json:"events"`
}

EventstoreGetEventsResponse eventstore get events response swagger:model eventstoreGetEventsResponse

func (*EventstoreGetEventsResponse) Validate

func (m *EventstoreGetEventsResponse) Validate(formats strfmt.Registry) error

Validate validates this eventstore get events response

type EventstoreHealthResponse

type EventstoreHealthResponse struct {

	// message
	Message string `json:"message,omitempty"`
}

EventstoreHealthResponse eventstore health response swagger:model eventstoreHealthResponse

func (*EventstoreHealthResponse) Validate

func (m *EventstoreHealthResponse) Validate(formats strfmt.Registry) error

Validate validates this eventstore health response

Jump to

Keyboard shortcuts

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