mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-06-10 09:19:22 +00:00
69a193dae5
* update Activity * add instance-deliver-to-shared-inboxes setting * update activity version again * add SharedInboxURI field to accounts * serdes for endpoints/sharedInbox * deliver to sharedInbox if one is available * update tests * only assign shared inbox if shared domain * look for shared inbox if currently nil * go fmt * finger to get params.RemoteAccountID if necessary * make comments clearer * compare dns more consistently
45 lines
2.2 KiB
Go
45 lines
2.2 KiB
Go
// Code generated by astool. DO NOT EDIT.
|
|
|
|
package vocab
|
|
|
|
// A json object which maps additional (typically server/domain-wide) endpoints
|
|
// which may be useful either for this actor or someone referencing this
|
|
// actor. This mapping may be nested inside the actor document as the value or
|
|
// may be a link to a JSON-LD document with these properties.
|
|
type ActivityStreamsEndpoints interface {
|
|
// GetActivityStreamsSharedInbox returns the "sharedInbox" property if it
|
|
// exists, and nil otherwise.
|
|
GetActivityStreamsSharedInbox() ActivityStreamsSharedInboxProperty
|
|
// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
|
|
GetJSONLDId() JSONLDIdProperty
|
|
// GetTypeName returns the name of this type.
|
|
GetTypeName() string
|
|
// GetUnknownProperties returns the unknown properties for the Endpoints
|
|
// type. Note that this should not be used by app developers. It is
|
|
// only used to help determine which implementation is LessThan the
|
|
// other. Developers who are creating a different implementation of
|
|
// this type's interface can use this method in their LessThan
|
|
// implementation, but routine ActivityPub applications should not use
|
|
// this to bypass the code generation tool.
|
|
GetUnknownProperties() map[string]interface{}
|
|
// IsExtending returns true if the Endpoints type extends from the other
|
|
// type.
|
|
IsExtending(other Type) bool
|
|
// JSONLDContext returns the JSONLD URIs required in the context string
|
|
// for this type and the specific properties that are set. The value
|
|
// in the map is the alias used to import the type and its properties.
|
|
JSONLDContext() map[string]string
|
|
// LessThan computes if this Endpoints is lesser, with an arbitrary but
|
|
// stable determination.
|
|
LessThan(o ActivityStreamsEndpoints) bool
|
|
// Serialize converts this into an interface representation suitable for
|
|
// marshalling into a text or binary format.
|
|
Serialize() (map[string]interface{}, error)
|
|
// SetActivityStreamsSharedInbox sets the "sharedInbox" property.
|
|
SetActivityStreamsSharedInbox(i ActivityStreamsSharedInboxProperty)
|
|
// SetJSONLDId sets the "id" property.
|
|
SetJSONLDId(i JSONLDIdProperty)
|
|
// VocabularyURI returns the vocabulary's URI as a string.
|
|
VocabularyURI() string
|
|
}
|