write

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 AddEvent_Operation = `` /* 370-byte string literal not displayed */

The query or mutation executed by AddEvent.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddEventResponse

type AddEventResponse struct {
	AddEvent uuid.UUID `json:"addEvent"`
}

AddEventResponse is returned by AddEvent on success.

func AddEvent

func AddEvent(
	ctx context.Context,
	client graphql.Client,
	occurredAt time.Time,
	objectIds []uuid.UUID,
	eventType string,
	eventVersion string,
	eventKind EventKind,
	eventReference []uuid.UUID,
	eventData map[string]interface{},
) (*AddEventResponse, error)

func (*AddEventResponse) GetAddEvent

func (v *AddEventResponse) GetAddEvent() uuid.UUID

GetAddEvent returns AddEventResponse.AddEvent, and is useful for accessing the field via an interface.

type EventKind

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

Jump to

Keyboard shortcuts

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