Comment out different sections of constants

This commit is contained in:
Melody Becker 2025-04-07 15:01:26 +02:00
parent 2bee4c5fb5
commit 6fa37a91b8

View file

@ -1,11 +1,13 @@
package goap package goap
// JsonLD fields
const ( const (
KEY_ID = "@id" // Value of type string KEY_ID = "@id" // Value of type string
KEY_TYPE = "@type" // Value of type string slice / activitystreams object url slice KEY_TYPE = "@type" // Value of type string slice / activitystreams object url slice
KEY_VALUE = "@value" // Could be any type really KEY_VALUE = "@value" // Could be any type really
) )
// Mastodon fields
const ( const (
KEY_MASTO_DEVICES = "http://joinmastodon.org/ns#devices" // No idea what this is, but Masto includes it KEY_MASTO_DEVICES = "http://joinmastodon.org/ns#devices" // No idea what this is, but Masto includes it
KEY_MASTO_DISCOVERABLE = "http://joinmastodon.org/ns#discoverable" // iirc this is whether the object can be found by crawlers KEY_MASTO_DISCOVERABLE = "http://joinmastodon.org/ns#discoverable" // iirc this is whether the object can be found by crawlers
@ -17,6 +19,7 @@ const (
KEY_MASTO_EMOJI = "http://joinmastodon.org/ns#Emoji" // Object is an emoji KEY_MASTO_EMOJI = "http://joinmastodon.org/ns#Emoji" // Object is an emoji
) )
// Generic W3 fields
const ( const (
KEY_W3_INBOX = "http://www.w3.org/ns/ldp#inbox" // Where to send activities to KEY_W3_INBOX = "http://www.w3.org/ns/ldp#inbox" // Where to send activities to
KEY_W3_SECURITY_OWNER = "https://w3id.org/security#owner" // Owner of the public key KEY_W3_SECURITY_OWNER = "https://w3id.org/security#owner" // Owner of the public key
@ -25,9 +28,14 @@ const (
KEY_W3_VCARD_ADDRESS = "http://www.w3.org/2006/vcard/ns#Address" // Vcard address of an account KEY_W3_VCARD_ADDRESS = "http://www.w3.org/2006/vcard/ns#Address" // Vcard address of an account
KEY_W3_VCARD_BIRTHDAY = "http://www.w3.org/2006/vcard/ns#bday" // Vcard birthday of an account KEY_W3_VCARD_BIRTHDAY = "http://www.w3.org/2006/vcard/ns#bday" // Vcard birthday of an account
)
// Generic W3 object type
const (
KEY_W3_SECURITY_KEY = "https://w3id.org/security#Key" // Object is a PublicKey KEY_W3_SECURITY_KEY = "https://w3id.org/security#Key" // Object is a PublicKey
) )
// W3 Activitystreams fields
const ( const (
KEY_ACTIVITYSTREAMS_ACTOR = "https://www.w3.org/ns/activitystreams#actor" KEY_ACTIVITYSTREAMS_ACTOR = "https://www.w3.org/ns/activitystreams#actor"
KEY_ACTIVITYSTREAMS_ALSOKNOWNAS = "https://www.w3.org/ns/activitystreams#alsoKnownAs" // Lists of usernames? KEY_ACTIVITYSTREAMS_ALSOKNOWNAS = "https://www.w3.org/ns/activitystreams#alsoKnownAs" // Lists of usernames?
@ -58,7 +66,10 @@ const (
KEY_ACTIVITYSTREAMS_UPDATED = "https://www.w3.org/ns/activitystreams#updated" // When the content was last updated KEY_ACTIVITYSTREAMS_UPDATED = "https://www.w3.org/ns/activitystreams#updated" // When the content was last updated
KEY_ACTIVITYSTREAMS_INREPLYTO = "https://www.w3.org/ns/activitystreams#inReplyTo" // What the object is replying to KEY_ACTIVITYSTREAMS_INREPLYTO = "https://www.w3.org/ns/activitystreams#inReplyTo" // What the object is replying to
KEY_ACTIVITYSTREAMS_QUOTEURL = "https://www.w3.org/ns/activitystreams#quoteUrl" // Url to the object being quoted KEY_ACTIVITYSTREAMS_QUOTEURL = "https://www.w3.org/ns/activitystreams#quoteUrl" // Url to the object being quoted
)
// W3 Activitystreams object types
const (
// Object types (I think) // Object types (I think)
// Those are values the object type can have // Those are values the object type can have
@ -78,7 +89,10 @@ const (
KEY_ACTIVITYSTREAMS_ITEMS = "https://www.w3.org/ns/activitystreams#items" // Items in this collection page KEY_ACTIVITYSTREAMS_ITEMS = "https://www.w3.org/ns/activitystreams#items" // Items in this collection page
KEY_ACTIVITYSTREAMS_NEXT = "https://www.w3.org/ns/activitystreams#next" // Next page in a collection KEY_ACTIVITYSTREAMS_NEXT = "https://www.w3.org/ns/activitystreams#next" // Next page in a collection
KEY_ACTIVITYSTREAMS_PARTOF = "https://www.w3.org/ns/activitystreams#partOf" // Collection the current page is a part of KEY_ACTIVITYSTREAMS_PARTOF = "https://www.w3.org/ns/activitystreams#partOf" // Collection the current page is a part of
)
// W3 Activitystreams unknown
const (
// Misc // Misc
KEY_ACTIVITYSTREAMS_OAUTHAUTHORIZATION = "https://www.w3.org/ns/activitystreams#oauthAuthorizationEndpoint" // Endpoint url for oauth login? KEY_ACTIVITYSTREAMS_OAUTHAUTHORIZATION = "https://www.w3.org/ns/activitystreams#oauthAuthorizationEndpoint" // Endpoint url for oauth login?
KEY_ACTIVITYSTREAMS_OAUTHTOKEN = "https://www.w3.org/ns/activitystreams#oauthTokenEndpoint" // Endpoint url for oauth token verification? KEY_ACTIVITYSTREAMS_OAUTHTOKEN = "https://www.w3.org/ns/activitystreams#oauthTokenEndpoint" // Endpoint url for oauth token verification?
@ -86,12 +100,14 @@ const (
KEY_ACTIVITYSTREAMS_PUBLIC = "https://www.w3.org/ns/activitystreams#Public" // Note target KEY_ACTIVITYSTREAMS_PUBLIC = "https://www.w3.org/ns/activitystreams#Public" // Note target
) )
// schema fields
const ( const (
KEY_SCHEMA_VALUE = "http://schema.org#value" // The value for some field KEY_SCHEMA_VALUE = "http://schema.org#value" // The value for some field
KEY_SCHEMA_PROPERTYVALUE = "http://schema.org#PropertyValue" // Object is of type property value KEY_SCHEMA_PROPERTYVALUE = "http://schema.org#PropertyValue" // Object is of type property value
) )
// Misskey and fork fields
const ( const (
KEY_MISSKEY_MKSUMMARY = "https://misskey-hub.net/ns#_misskey_summary" // Misskey specific formatted summary KEY_MISSKEY_MKSUMMARY = "https://misskey-hub.net/ns#_misskey_summary" // Misskey specific formatted summary
KEY_MISSKEY_ISCAT = "https://misskey-hub.net/ns#isCat" // Does the account identify as cat? KEY_MISSKEY_ISCAT = "https://misskey-hub.net/ns#isCat" // Does the account identify as cat?
@ -100,15 +116,20 @@ const (
) )
// No idea what either of those two do or are used for // No idea what either of those two do or are used for
// Litepub fields
const ( const (
KEY_LITEPUB_CAPABILITIES = "http://litepub.social/ns#capabilities" KEY_LITEPUB_CAPABILITIES = "http://litepub.social/ns#capabilities"
KEY_LITEPUB_OAUTHREGISTRATION = "http://litepub.social/ns#oauthRegistrationEndpoint" KEY_LITEPUB_OAUTHREGISTRATION = "http://litepub.social/ns#oauthRegistrationEndpoint"
) )
// W3 XML fields
const ( const (
KEY_XMLSCHEMA_DATETIME = "http://www.w3.org/2001/XMLSchema#dateTime" // Type value for published value field KEY_XMLSCHEMA_DATETIME = "http://www.w3.org/2001/XMLSchema#dateTime" // Type value for published value field
) )
// Ostatus fields
//
// NOTE: ostatus.org seems to be redirecting to some weird scam(?) page // NOTE: ostatus.org seems to be redirecting to some weird scam(?) page
const ( const (
KEY_OSTATUS_ATOMURI = "http://ostatus.org#atomUri" // Same as @id I think KEY_OSTATUS_ATOMURI = "http://ostatus.org#atomUri" // Same as @id I think
@ -116,12 +137,14 @@ const (
KEY_OSTATUS_INREPLYTOATOMURI = "http://ostatus.org#inReplyToAtomUri" // Same as InReplyTo, but with an atom uri as target KEY_OSTATUS_INREPLYTOATOMURI = "http://ostatus.org#inReplyToAtomUri" // Same as InReplyTo, but with an atom uri as target
) )
// Unknown origin fields
const ( const (
KEY_MYSTERIOUS_NOINDEX = "_:noindex" KEY_MYSTERIOUS_NOINDEX = "_:noindex"
KEY_MYSTERIOUS_BACKGROUNDURL = "_:backgroundUrl" KEY_MYSTERIOUS_BACKGROUNDURL = "_:backgroundUrl"
KEY_MYSTERIOUS_FEATURED = "_:featured" KEY_MYSTERIOUS_FEATURED = "_:featured"
) )
// Fedibird fields
const ( const (
KEY_FEDIBIRD_QUOTEURI = "http://fedibird.com/ns#quoteUri" KEY_FEDIBIRD_QUOTEURI = "http://fedibird.com/ns#quoteUri"
) )