Skip to content

urn

gitlab.com/phpboyscout/go/urn is the grammar of the estate's URN identifiers, and their parsers.

urn:phpboyscout:schema:orders.created:3
urn:phpboyscout:scope:continuity:01JQ8Z3F7K2M4N6P8R0T2V4W6X

A schema URN is what an event's dataschema attribute carries, and what go/schema resolves. A scope URN is the estate's tenancy attribute.

s, err := urn.ParseSchema("urn:phpboyscout:schema:orders.created:3")
// s.Name == "orders.created", s.Version == 3

The module used to be gitlab.com/phpboyscout/go/cloudevents/urn. The types and functions are unchanged; only the import path moved.