read

package
v0.0.0-...-3529d72 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: EUPL-1.2 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const GetEvents_Operation = `` /* 458-byte string literal not displayed */

The query or mutation executed by GetEvents.

View Source
const GetLimitedEvents_Operation = `
query GetLimitedEvents {
	get(query: {}) {
		objectIds
		eventType
		eventKind
		eventSourceType
	}
}
`

The query or mutation executed by GetLimitedEvents.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventKind

type EventKind string
const (
	EventKindClaim           EventKind = "CLAIM"
	EventKindCorrectionClaim EventKind = "CORRECTION_CLAIM"
	EventKindVerification    EventKind = "VERIFICATION"
)

type GetEventsGetEventValue

type GetEventsGetEventValue struct {
	Id              uuid.UUID              `json:"id"`
	CreatedAt       time.Time              `json:"createdAt"`
	OccurredAt      time.Time              `json:"occurredAt"`
	ObjectIds       []uuid.UUID            `json:"objectIds"`
	EventType       string                 `json:"eventType"`
	EventVersion    string                 `json:"eventVersion"`
	EventKind       EventKind              `json:"eventKind"`
	EventSourceId   uuid.UUID              `json:"eventSourceId"`
	EventSourceType string                 `json:"eventSourceType"`
	EventReference  []uuid.UUID            `json:"eventReference"`
	EventData       map[string]interface{} `json:"eventData"`
}

GetEventsGetEventValue includes the requested fields of the GraphQL type EventValue.

func (*GetEventsGetEventValue) GetCreatedAt

func (v *GetEventsGetEventValue) GetCreatedAt() time.Time

GetCreatedAt returns GetEventsGetEventValue.CreatedAt, and is useful for accessing the field via an interface.

func (*GetEventsGetEventValue) GetEventData

func (v *GetEventsGetEventValue) GetEventData() map[string]interface{}

GetEventData returns GetEventsGetEventValue.EventData, and is useful for accessing the field via an interface.

func (*GetEventsGetEventValue) GetEventKind

func (v *GetEventsGetEventValue) GetEventKind() EventKind

GetEventKind returns GetEventsGetEventValue.EventKind, and is useful for accessing the field via an interface.

func (*GetEventsGetEventValue) GetEventReference

func (v *GetEventsGetEventValue) GetEventReference() []uuid.UUID

GetEventReference returns GetEventsGetEventValue.EventReference, and is useful for accessing the field via an interface.

func (*GetEventsGetEventValue) GetEventSourceId

func (v *GetEventsGetEventValue) GetEventSourceId() uuid.UUID

GetEventSourceId returns GetEventsGetEventValue.EventSourceId, and is useful for accessing the field via an interface.

func (*GetEventsGetEventValue) GetEventSourceType

func (v *GetEventsGetEventValue) GetEventSourceType() string

GetEventSourceType returns GetEventsGetEventValue.EventSourceType, and is useful for accessing the field via an interface.

func (*GetEventsGetEventValue) GetEventType

func (v *GetEventsGetEventValue) GetEventType() string

GetEventType returns GetEventsGetEventValue.EventType, and is useful for accessing the field via an interface.

func (*GetEventsGetEventValue) GetEventVersion

func (v *GetEventsGetEventValue) GetEventVersion() string

GetEventVersion returns GetEventsGetEventValue.EventVersion, and is useful for accessing the field via an interface.

func (*GetEventsGetEventValue) GetId

func (v *GetEventsGetEventValue) GetId() uuid.UUID

GetId returns GetEventsGetEventValue.Id, and is useful for accessing the field via an interface.

func (*GetEventsGetEventValue) GetObjectIds

func (v *GetEventsGetEventValue) GetObjectIds() []uuid.UUID

GetObjectIds returns GetEventsGetEventValue.ObjectIds, and is useful for accessing the field via an interface.

func (*GetEventsGetEventValue) GetOccurredAt

func (v *GetEventsGetEventValue) GetOccurredAt() time.Time

GetOccurredAt returns GetEventsGetEventValue.OccurredAt, and is useful for accessing the field via an interface.

type GetEventsResponse

type GetEventsResponse struct {
	Get []GetEventsGetEventValue `json:"get"`
}

GetEventsResponse is returned by GetEvents on success.

func GetEvents

func GetEvents(
	ctx context.Context,
	client graphql.Client,
	objectIds []uuid.UUID,
	eventTypes []string,
	eventKind *EventKind,
	eventSourceType *string,
	startDate *time.Time,
	endDate *time.Time,
) (*GetEventsResponse, error)

func (*GetEventsResponse) GetGet

GetGet returns GetEventsResponse.Get, and is useful for accessing the field via an interface.

type GetLimitedEventsGetEventValue

type GetLimitedEventsGetEventValue struct {
	ObjectIds       []uuid.UUID `json:"objectIds"`
	EventType       string      `json:"eventType"`
	EventKind       EventKind   `json:"eventKind"`
	EventSourceType string      `json:"eventSourceType"`
}

GetLimitedEventsGetEventValue includes the requested fields of the GraphQL type EventValue.

func (*GetLimitedEventsGetEventValue) GetEventKind

func (v *GetLimitedEventsGetEventValue) GetEventKind() EventKind

GetEventKind returns GetLimitedEventsGetEventValue.EventKind, and is useful for accessing the field via an interface.

func (*GetLimitedEventsGetEventValue) GetEventSourceType

func (v *GetLimitedEventsGetEventValue) GetEventSourceType() string

GetEventSourceType returns GetLimitedEventsGetEventValue.EventSourceType, and is useful for accessing the field via an interface.

func (*GetLimitedEventsGetEventValue) GetEventType

func (v *GetLimitedEventsGetEventValue) GetEventType() string

GetEventType returns GetLimitedEventsGetEventValue.EventType, and is useful for accessing the field via an interface.

func (*GetLimitedEventsGetEventValue) GetObjectIds

func (v *GetLimitedEventsGetEventValue) GetObjectIds() []uuid.UUID

GetObjectIds returns GetLimitedEventsGetEventValue.ObjectIds, and is useful for accessing the field via an interface.

type GetLimitedEventsResponse

type GetLimitedEventsResponse struct {
	Get []GetLimitedEventsGetEventValue `json:"get"`
}

GetLimitedEventsResponse is returned by GetLimitedEvents on success.

func GetLimitedEvents

func GetLimitedEvents(
	ctx context.Context,
	client graphql.Client,
) (*GetLimitedEventsResponse, error)

func (*GetLimitedEventsResponse) GetGet

GetGet returns GetLimitedEventsResponse.Get, and is useful for accessing the field via an interface.

Jump to

Keyboard shortcuts

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