Documentation
¶
Index ¶
Constants ¶
View Source
const ( EntityEntitlement = "entitlement" EntitySubjectKey = "subjectKey" EntityGrant = "grant" )
Entitlements
View Source
const (
EntityEvent = "event"
)
Ingestion/Events
Variables ¶
This section is empty.
Functions ¶
func ComposeResourcePath ¶
func ComposeResourcePathRaw ¶
func GetEventName ¶
Types ¶
type EventMetadata ¶
type EventMetadata struct { // ID of the event ID string // Time specifies when the event occurred Time time.Time // Subject meta // Examples for source and subject pairs // grant: // source: //openmeter.io/namespace/<id>/entitlement/<id>/grant/<id> // subject: //openmeter.io/namespace/<id>/subject/<subjectID> // // entitlement: // source: //openmeter.io/namespace/<id>/entitlement/<id> // subject: //openmeter.io/namespace/<id>/subject/<subjectID> // // ingest: // source: //openmeter.io/namespace/<id>/event // subject: //openmeter.io/namespace/<id>/subject/<subjectID> Subject string Source string }
type EventSubsystem ¶
type EventSubsystem string
type EventType ¶
type EventType struct { // Subsystem defines which connector/component is responsible for the event (e.g. ingest, entitlements, etc) Subsystem EventSubsystem // Type is the actual event type (e.g. ingestion, flush, etc) Name EventName // Version is the version of the event (e.g. v1, v2, etc) Version EventVersion }
func (*EventType) VersionSubsystem ¶
type EventVersion ¶
type EventVersion string
Click to show internal directories.
Click to hide internal directories.