Documentation
¶
Overview ¶
Package mailschema carries the Mail Action Protocol 0.2 core artifacts and the MailSchema Registry contribution schema, byte for byte as mailschema.org publishes them.
Type contracts are not bundled: a client obtains them from the Registry catalogue by digest. Processing MAP messages is outside this module.
Index ¶
Constants ¶
View Source
const Profile = "https://mailschema.org/profiles/map/0.2"
Profile is the MAP profile whose core artifacts this module carries.
Variables ¶
This section is empty.
Functions ¶
func Schema ¶
func Schema(name SchemaName) ([]byte, error)
Schema returns an independent copy of a bundled artifact's exact bytes.
Types ¶
type SchemaName ¶
type SchemaName string
SchemaName identifies an artifact bundled with this module.
const ( // MAPSchema is the MAP 0.2 core schema: descriptions, requests, results and problems. MAPSchema SchemaName = "map-0.2" // MAPContext is the MAP 0.2 JSON-LD context. MAPContext SchemaName = "map-0.2-context" // ContractFormatSchema is the type contract format every MAP 0.2 contract follows. ContractFormatSchema SchemaName = "type-contract-0.2" // FormsSchema is the form fields block contracts pin. FormsSchema SchemaName = "forms-0.1" // ContributionSchema describes Registry contributions and expanded type records. ContributionSchema SchemaName = "contribution" )
Click to show internal directories.
Click to hide internal directories.