Documentation ¶
Index ¶
- Constants
- func ExtractActorURI(withActor WithActor) (*url.URL, error)
- func ExtractAttachment(i Attachmentable) (*gtsmodel.MediaAttachment, error)
- func ExtractAttributedToURI(i WithAttributedTo) (*url.URL, error)
- func ExtractBlurhash(i WithBlurhash) string
- func ExtractCcURIs(i WithCC) []*url.URL
- func ExtractContent(i WithContent) string
- func ExtractDiscoverable(i WithDiscoverable) (bool, error)
- func ExtractEmoji(i Emojiable) (*gtsmodel.Emoji, error)
- func ExtractEmojis(i WithTag) ([]*gtsmodel.Emoji, error)
- func ExtractFields(i WithAttachment) []*gtsmodel.Field
- func ExtractHashtags(i WithTag) ([]*gtsmodel.Tag, error)
- func ExtractIconURI(i WithIcon) (*url.URL, error)
- func ExtractImageURI(i WithImage) (*url.URL, error)
- func ExtractInReplyToURI(i WithInReplyTo) *url.URL
- func ExtractItemsURIs(i WithItems) []*url.URL
- func ExtractMention(i Mentionable) (*gtsmodel.Mention, error)
- func ExtractMentions(i WithTag) ([]*gtsmodel.Mention, error)
- func ExtractName(i WithName) string
- func ExtractObjectURI(withObject WithObject) (*url.URL, error)
- func ExtractObjectURIs(withObject WithObject) ([]*url.URL, error)
- func ExtractPreferredUsername(i WithPreferredUsername) (string, error)
- func ExtractPublicKey(i WithPublicKey) (*rsa.PublicKey, *url.URL, *url.URL, error)
- func ExtractPublished(i WithPublished) (time.Time, error)
- func ExtractSensitive(withSensitive WithSensitive) bool
- func ExtractSharedInbox(withEndpoints WithEndpoints) *url.URL
- func ExtractSummary(i WithSummary) string
- func ExtractToURIs(i WithTo) []*url.URL
- func ExtractURL(i WithURL) (*url.URL, error)
- func ExtractVisibility(addressable Addressable, actorFollowersURI string) (gtsmodel.Visibility, error)
- func NormalizeIncomingActivityObject(activity pub.Activity, rawJSON map[string]interface{})
- func NormalizeIncomingAttachments(item WithAttachment, rawJSON map[string]interface{})
- func NormalizeIncomingContent(item WithSetContent, rawJSON map[string]interface{})
- func NormalizeIncomingName(item WithSetName, rawJSON map[string]interface{})
- func NormalizeIncomingSummary(item WithSetSummary, rawJSON map[string]interface{})
- func Serialize(t vocab.Type) (m map[string]interface{}, e error)
- type Accountable
- type Addressable
- type Announceable
- type Attachmentable
- type Blockable
- type CollectionPageable
- type Emojiable
- type Flaggable
- type Followable
- type Hashtaggable
- type Likeable
- type Mentionable
- type ReplyToable
- type Statusable
- type WithActor
- type WithAttachment
- type WithAttributedTo
- type WithBlurhash
- type WithCC
- type WithContent
- type WithConversation
- type WithDiscoverable
- type WithEndpoints
- type WithFeatured
- type WithFollowers
- type WithFollowing
- type WithHref
- type WithIcon
- type WithImage
- type WithInReplyTo
- type WithInbox
- type WithItems
- type WithJSONLDId
- type WithManuallyApprovesFollowers
- type WithMediaType
- type WithName
- type WithNext
- type WithObject
- type WithOutbox
- type WithPartOf
- type WithPreferredUsername
- type WithPublicKey
- type WithPublished
- type WithReplies
- type WithSensitive
- type WithSetContent
- type WithSetName
- type WithSetSummary
- type WithSummary
- type WithTag
- type WithTo
- type WithTypeName
- type WithURL
- type WithUpdated
Constants ¶
const ( ActivityAccept = "Accept" // ActivityStreamsAccept https://www.w3.org/TR/activitystreams-vocabulary/#dfn-accept ActivityAdd = "Add" // ActivityStreamsAdd https://www.w3.org/TR/activitystreams-vocabulary/#dfn-add ActivityAnnounce = "Announce" // ActivityStreamsAnnounce https://www.w3.org/TR/activitystreams-vocabulary/#dfn-announce ActivityArrive = "Arrive" // ActivityStreamsArrive https://www.w3.org/TR/activitystreams-vocabulary/#dfn-arrive ActivityBlock = "Block" // ActivityStreamsBlock https://www.w3.org/TR/activitystreams-vocabulary/#dfn-block ActivityCreate = "Create" // ActivityStreamsCreate https://www.w3.org/TR/activitystreams-vocabulary/#dfn-create ActivityDelete = "Delete" // ActivityStreamsDelete https://www.w3.org/TR/activitystreams-vocabulary/#dfn-delete ActivityDislike = "Dislike" // ActivityStreamsDislike https://www.w3.org/TR/activitystreams-vocabulary/#dfn-dislike ActivityFlag = "Flag" // ActivityStreamsFlag https://www.w3.org/TR/activitystreams-vocabulary/#dfn-flag ActivityFollow = "Follow" // ActivityStreamsFollow https://www.w3.org/TR/activitystreams-vocabulary/#dfn-follow ActivityIgnore = "Ignore" // ActivityStreamsIgnore https://www.w3.org/TR/activitystreams-vocabulary/#dfn-ignore ActivityInvite = "Invite" // ActivityStreamsInvite https://www.w3.org/TR/activitystreams-vocabulary/#dfn-invite ActivityJoin = "Join" // ActivityStreamsJoin https://www.w3.org/TR/activitystreams-vocabulary/#dfn-join ActivityLeave = "Leave" // ActivityStreamsLeave https://www.w3.org/TR/activitystreams-vocabulary/#dfn-leave ActivityLike = "Like" // ActivityStreamsLike https://www.w3.org/TR/activitystreams-vocabulary/#dfn-like ActivityListen = "Listen" // ActivityStreamsListen https://www.w3.org/TR/activitystreams-vocabulary/#dfn-listen ActivityMove = "Move" // ActivityStreamsMove https://www.w3.org/TR/activitystreams-vocabulary/#dfn-move ActivityOffer = "Offer" // ActivityStreamsOffer https://www.w3.org/TR/activitystreams-vocabulary/#dfn-offer ActivityQuestion = "Question" // ActivityStreamsQuestion https://www.w3.org/TR/activitystreams-vocabulary/#dfn-question ActivityReject = "Reject" // ActivityStreamsReject https://www.w3.org/TR/activitystreams-vocabulary/#dfn-reject ActivityRead = "Read" // ActivityStreamsRead https://www.w3.org/TR/activitystreams-vocabulary/#dfn-read ActivityRemove = "Remove" // ActivityStreamsRemove https://www.w3.org/TR/activitystreams-vocabulary/#dfn-remove ActivityTentativeReject = "TentativeReject" // ActivityStreamsTentativeReject https://www.w3.org/TR/activitystreams-vocabulary/#dfn-tentativereject ActivityTentativeAccept = "TentativeAccept" // ActivityStreamsTentativeAccept https://www.w3.org/TR/activitystreams-vocabulary/#dfn-tentativeaccept ActivityTravel = "Travel" // ActivityStreamsTravel https://www.w3.org/TR/activitystreams-vocabulary/#dfn-travel ActivityUndo = "Undo" // ActivityStreamsUndo https://www.w3.org/TR/activitystreams-vocabulary/#dfn-undo ActivityUpdate = "Update" // ActivityStreamsUpdate https://www.w3.org/TR/activitystreams-vocabulary/#dfn-update ActivityView = "View" // ActivityStreamsView https://www.w3.org/TR/activitystreams-vocabulary/#dfn-view ActorApplication = "Application" // ActivityStreamsApplication https://www.w3.org/TR/activitystreams-vocabulary/#dfn-application ActorGroup = "Group" // ActivityStreamsGroup https://www.w3.org/TR/activitystreams-vocabulary/#dfn-group ActorOrganization = "Organization" // ActivityStreamsOrganization https://www.w3.org/TR/activitystreams-vocabulary/#dfn-organization ActorPerson = "Person" // ActivityStreamsPerson https://www.w3.org/TR/activitystreams-vocabulary/#dfn-person ActorService = "Service" // ActivityStreamsService https://www.w3.org/TR/activitystreams-vocabulary/#dfn-service ObjectArticle = "Article" // ActivityStreamsArticle https://www.w3.org/TR/activitystreams-vocabulary/#dfn-article ObjectAudio = "Audio" // ActivityStreamsAudio https://www.w3.org/TR/activitystreams-vocabulary/#dfn-audio ObjectDocument = "Document" // ActivityStreamsDocument https://www.w3.org/TR/activitystreams-vocabulary/#dfn-document ObjectEvent = "Event" // ActivityStreamsEvent https://www.w3.org/TR/activitystreams-vocabulary/#dfn-event ObjectImage = "Image" // ActivityStreamsImage https://www.w3.org/TR/activitystreams-vocabulary/#dfn-image ObjectNote = "Note" // ActivityStreamsNote https://www.w3.org/TR/activitystreams-vocabulary/#dfn-note ObjectPage = "Page" // ActivityStreamsPage https://www.w3.org/TR/activitystreams-vocabulary/#dfn-page ObjectPlace = "Place" // ActivityStreamsPlace https://www.w3.org/TR/activitystreams-vocabulary/#dfn-place ObjectProfile = "Profile" // ActivityStreamsProfile https://www.w3.org/TR/activitystreams-vocabulary/#dfn-profile ObjectRelationship = "Relationship" // ActivityStreamsRelationship https://www.w3.org/TR/activitystreams-vocabulary/#dfn-relationship ObjectTombstone = "Tombstone" // ActivityStreamsTombstone https://www.w3.org/TR/activitystreams-vocabulary/#dfn-tombstone ObjectVideo = "Video" // ActivityStreamsVideo https://www.w3.org/TR/activitystreams-vocabulary/#dfn-video ObjectCollection = "Collection" // ActivityStreamsCollection https://www.w3.org/TR/activitystreams-vocabulary/#dfn-collection ObjectCollectionPage = "CollectionPage" // ActivityStreamsCollectionPage https://www.w3.org/TR/activitystreams-vocabulary/#dfn-collectionpage ObjectOrderedCollection = "OrderedCollection" // ActivityStreamsOrderedCollection https://www.w3.org/TR/activitystreams-vocabulary/#dfn-orderedcollection // Hashtag is not in the AS spec per se, but it tends to get used // as though 'Hashtag' is a named type under the Tag property. // // See https://www.w3.org/TR/activitystreams-vocabulary/#microsyntaxes // and https://www.w3.org/TR/activitystreams-vocabulary/#dfn-tag TagHashtag = "Hashtag" )
Variables ¶
This section is empty.
Functions ¶
func ExtractActorURI ¶ added in v0.10.0
ExtractActorURI extracts the first Actor URI it can find from a WithActor interface.
func ExtractAttachment ¶
func ExtractAttachment(i Attachmentable) (*gtsmodel.MediaAttachment, error)
ExtractAttachment extracts a minimal gtsmodel.Attachment (just remote URL, description, and blurhash) from the given Attachmentable interface, or an error if no remote URL is set.
func ExtractAttributedToURI ¶ added in v0.10.0
func ExtractAttributedToURI(i WithAttributedTo) (*url.URL, error)
ExtractAttributedToURI returns the first URI it can find in the given WithAttributedTo, or an error if no URI can be found.
func ExtractBlurhash ¶ added in v0.2.0
func ExtractBlurhash(i WithBlurhash) string
ExtractBlurhash extracts the blurhash string value from the given WithBlurhash interface, or returns an empty string if nothing is found.
func ExtractCcURIs ¶ added in v0.10.0
ExtractCcURIs returns a slice of URIs that the given WithCC addresses as Cc.
func ExtractContent ¶
func ExtractContent(i WithContent) string
ExtractContent returns a string representation of the given interface's Content property, or an empty string if no Content is found.
func ExtractDiscoverable ¶
func ExtractDiscoverable(i WithDiscoverable) (bool, error)
ExtractDiscoverable extracts the Discoverable boolean of the given WithDiscoverable interface. Will return an error if Discoverable was nil.
func ExtractEmoji ¶
ExtractEmoji extracts a minimal gtsmodel.Emoji from the given Emojiable.
func ExtractEmojis ¶
ExtractEmojis extracts a slice of minimal gtsmodel.Emojis from a WithTag. If an entry in the WithTag is not an emoji, it will be quietly ignored.
func ExtractFields ¶ added in v0.9.0
func ExtractFields(i WithAttachment) []*gtsmodel.Field
ExtractFields extracts property/value fields from the given WithAttachment interface. Will return an empty slice if no property/value fields can be found. Attachments that are not (well-formed) PropertyValues will be ignored.
func ExtractHashtags ¶
ExtractHashtags extracts a slice of minimal gtsmodel.Tags from a WithTag. If an entry in the WithTag is not a hashtag, or has a name that cannot be normalized, it will be ignored.
TODO: find a better heuristic for determining if something is a hashtag or not, since looking for type name "Hashtag" is non-normative. Perhaps look for things that are either type "Hashtag" or have no type name set at all?
func ExtractIconURI ¶ added in v0.10.0
ExtractIconURI extracts the first URI it can find from the given WithIcon which links to a supported image file. Input will look something like this:
"icon": { "mediaType": "image/jpeg", "type": "Image", "url": "http://example.org/path/to/some/file.jpeg" },
If no valid URI can be found, this will return an error.
func ExtractImageURI ¶ added in v0.10.0
ExtractImageURI extracts the first URI it can find from the given WithImage which links to a supported image file. Input will look something like this:
"image": { "mediaType": "image/jpeg", "type": "Image", "url": "http://example.org/path/to/some/file.jpeg" },
If no valid URI can be found, this will return an error.
func ExtractInReplyToURI ¶
func ExtractInReplyToURI(i WithInReplyTo) *url.URL
ExtractInReplyToURI extracts the first inReplyTo URI property it can find from an interface. Will return nil if no valid URI can be found.
func ExtractItemsURIs ¶ added in v0.10.0
ExtractItemsURIs extracts each URI it can find for an item from the provided WithItems.
func ExtractMention ¶
func ExtractMention(i Mentionable) (*gtsmodel.Mention, error)
ExtractMention extracts a minimal gtsmodel.Mention from a Mentionable.
func ExtractMentions ¶
ExtractMentions extracts a slice of minimal gtsmodel.Mentions from a WithTag. If an entry in the WithTag is not a mention, it will be quietly ignored.
func ExtractName ¶
ExtractName returns the first string representation it can find of an interface's name property, or an empty string if this is not found.
func ExtractObjectURI ¶ added in v0.10.0
func ExtractObjectURI(withObject WithObject) (*url.URL, error)
ExtractObjectURI extracts the first Object URI it can find from a WithObject interface.
func ExtractObjectURIs ¶ added in v0.10.0
func ExtractObjectURIs(withObject WithObject) ([]*url.URL, error)
ExtractObjectURIs extracts the URLs of each Object it can find from a WithObject interface.
func ExtractPreferredUsername ¶
func ExtractPreferredUsername(i WithPreferredUsername) (string, error)
ExtractPreferredUsername returns a string representation of an interface's preferredUsername property. Will return an error if preferredUsername is nil, not a string, or empty.
func ExtractPublicKey ¶ added in v0.10.0
ExtractPublicKey extracts the public key, public key ID, and public key owner ID from an interface, or an error if something goes wrong.
func ExtractPublished ¶
func ExtractPublished(i WithPublished) (time.Time, error)
ExtractPublished extracts the published time from the given WithPublished. Will return an error if the published property is not set, is not a time.Time, or is zero.
func ExtractSensitive ¶
func ExtractSensitive(withSensitive WithSensitive) bool
ExtractSensitive extracts whether or not an item should be marked as sensitive according to its ActivityStreams sensitive property.
If no sensitive property is set on the item at all, or if this property isn't a boolean, then false will be returned by default.
func ExtractSharedInbox ¶ added in v0.5.0
func ExtractSharedInbox(withEndpoints WithEndpoints) *url.URL
ExtractSharedInbox extracts the sharedInbox URI property from an Actor. Returns nil if this property is not set.
func ExtractSummary ¶
func ExtractSummary(i WithSummary) string
ExtractSummary extracts the summary/content warning of the given WithSummary interface. Will return an empty string if no summary/content warning was present.
func ExtractToURIs ¶ added in v0.10.0
ExtractToURIs returns a slice of URIs that the given WithTo addresses as To.
func ExtractURL ¶
ExtractURL extracts the first URI it can find from the given WithURL interface, or an error if no URL was set. The ID of a type will not work, this function wants a URI specifically.
func ExtractVisibility ¶
func ExtractVisibility(addressable Addressable, actorFollowersURI string) (gtsmodel.Visibility, error)
ExtractVisibility extracts the gtsmodel.Visibility of a given addressable with a To and CC property.
ActorFollowersURI is needed to check whether the visibility is FollowersOnly or not. The passed-in value should just be the string value representation of the followers URI of the actor who created the activity, eg., `https://example.org/users/whoever/followers`.
func NormalizeIncomingActivityObject ¶ added in v0.9.0
NormalizeIncomingActivityObject normalizes the 'object'.'content' field of the given Activity.
The rawActivity map should the freshly deserialized json representation of the Activity.
This function is a noop if the type passed in is anything except a Create or Update with a Statusable or Accountable as its Object.
func NormalizeIncomingAttachments ¶ added in v0.9.0
func NormalizeIncomingAttachments(item WithAttachment, rawJSON map[string]interface{})
NormalizeIncomingAttachments normalizes all attachments (if any) of the given item, replacing the 'name' (aka content warning) field of each attachment with the raw 'name' value from the raw json object map, and doing sanitization on the result.
noop if there are no attachments; noop if attachment is not a format we can understand.
func NormalizeIncomingContent ¶ added in v0.9.0
func NormalizeIncomingContent(item WithSetContent, rawJSON map[string]interface{})
NormalizeIncomingContent replaces the Content of the given item with the sanitized version of the raw 'content' value from the raw json object map.
noop if there was no content in the json object map or the content was not a plain string.
func NormalizeIncomingName ¶ added in v0.9.0
func NormalizeIncomingName(item WithSetName, rawJSON map[string]interface{})
NormalizeIncomingName replaces the Name of the given item with the raw 'name' value from the raw json object map.
noop if there was no name in the json object map or the name was not a plain string.
func NormalizeIncomingSummary ¶ added in v0.9.0
func NormalizeIncomingSummary(item WithSetSummary, rawJSON map[string]interface{})
NormalizeIncomingSummary replaces the Summary of the given item with the sanitized version of the raw 'summary' value from the raw json object map.
noop if there was no summary in the json object map or the summary was not a plain string.
func Serialize ¶ added in v0.9.0
Serialize is a custom serializer for ActivityStreams types.
In most cases, it will simply call the go-fed streams.Serialize function under the hood. However, if custom serialization is required on a specific type (eg for inter-implementation compatibility), it can be inserted into the switch as necessary.
Callers should always call this function instead of streams.Serialize, unless there's a very good reason to do otherwise.
Currently, the following things will be custom serialized:
- OrderedCollection: 'orderedItems' property will always be made into an array.
- Any Accountable type: 'attachment' property will always be made into an array.
- Update: any Accountable 'object's set on an update will be custom serialized as above.
Types ¶
type Accountable ¶
type Accountable interface { WithJSONLDId WithTypeName WithPreferredUsername WithIcon WithName WithImage WithSummary WithAttachment WithSetSummary WithDiscoverable WithURL WithPublicKey WithInbox WithOutbox WithFollowing WithFollowers WithFeatured WithManuallyApprovesFollowers WithEndpoints WithTag }
Accountable represents the minimum activitypub interface for representing an 'account'. This interface is fulfilled by: Person, Application, Organization, Service, and Group
func ResolveAccountable ¶ added in v0.8.0
func ResolveAccountable(ctx context.Context, b []byte) (Accountable, error)
ResolveStatusable tries to resolve the given bytes into an ActivityPub Accountable representation. It will then perform normalization on the Accountable.
Works for: Application, Group, Organization, Person, Service
type Addressable ¶
Addressable represents the minimum interface for an addressed activity.
type Announceable ¶
type Announceable interface { WithJSONLDId WithTypeName WithActor WithObject WithPublished WithTo WithCC }
Announceable represents the minimum interface for an activitystreams 'announce' activity.
type Attachmentable ¶
type Attachmentable interface { WithTypeName WithMediaType WithURL WithName WithSetName WithBlurhash }
Attachmentable represents the minimum activitypub interface for representing a 'mediaAttachment'. This interface is fulfilled by: Audio, Document, Image, Video
type Blockable ¶
type Blockable interface { WithJSONLDId WithTypeName WithActor WithObject }
Blockable represents the minimum interface for an activitystreams 'block' activity.
type CollectionPageable ¶
type CollectionPageable interface { WithJSONLDId WithTypeName WithNext WithPartOf WithItems }
CollectionPageable represents the minimum interface for an activitystreams 'CollectionPage' object.
type Emojiable ¶
type Emojiable interface { WithJSONLDId WithTypeName WithName WithUpdated WithIcon }
Emojiable represents the minimum interface for an 'emoji' tag.
type Flaggable ¶ added in v0.7.0
type Flaggable interface { WithJSONLDId WithTypeName WithActor WithContent WithObject }
Flaggable represents the minimum interface for an activitystreams 'Flag' activity.
type Followable ¶
type Followable interface { WithJSONLDId WithTypeName WithActor WithObject }
Followable represents the minimum interface for an activitystreams 'follow' activity.
type Hashtaggable ¶
type Hashtaggable interface { WithTypeName WithHref WithName }
Hashtaggable represents the minimum activitypub interface for representing a 'hashtag' tag.
type Likeable ¶
type Likeable interface { WithJSONLDId WithTypeName WithActor WithObject }
Likeable represents the minimum interface for an activitystreams 'like' activity.
type Mentionable ¶
Mentionable represents the minimum interface for a 'mention' tag.
type ReplyToable ¶ added in v0.3.4
type ReplyToable interface { WithInReplyTo }
ReplyToable represents the minimum interface for an Activity that can be InReplyTo another activity.
type Statusable ¶
type Statusable interface { WithJSONLDId WithTypeName WithSummary WithSetSummary WithName WithSetName WithInReplyTo WithPublished WithURL WithAttributedTo WithTo WithCC WithSensitive WithConversation WithContent WithSetContent WithAttachment WithTag WithReplies }
Statusable represents the minimum activitypub interface for representing a 'status'. This interface is fulfilled by: Article, Document, Image, Video, Note, Page, Event, Place, Mention, Profile
func ResolveStatusable ¶ added in v0.8.0
func ResolveStatusable(ctx context.Context, b []byte) (Statusable, error)
ResolveStatusable tries to resolve the given bytes into an ActivityPub Statusable representation. It will then perform normalization on the Statusable.
Works for: Article, Document, Image, Video, Note, Page, Event, Place, Profile
type WithActor ¶
type WithActor interface {
GetActivityStreamsActor() vocab.ActivityStreamsActorProperty
}
WithActor represents an activity with ActivityStreamsActorProperty
type WithAttachment ¶
type WithAttachment interface {
GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty
}
WithAttachment represents an activity with ActivityStreamsAttachmentProperty
type WithAttributedTo ¶
type WithAttributedTo interface {
GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty
}
WithAttributedTo represents an activity with ActivityStreamsAttributedToProperty
type WithBlurhash ¶ added in v0.2.0
type WithBlurhash interface {
GetTootBlurhash() vocab.TootBlurhashProperty
}
WithBlurhash represents an activity with TootBlurhashProperty
type WithCC ¶
type WithCC interface {
GetActivityStreamsCc() vocab.ActivityStreamsCcProperty
}
WithCC represents an activity with ActivityStreamsCcProperty
type WithContent ¶
type WithContent interface {
GetActivityStreamsContent() vocab.ActivityStreamsContentProperty
}
WithContent represents an activity with ActivityStreamsContentProperty
type WithDiscoverable ¶
type WithDiscoverable interface {
GetTootDiscoverable() vocab.TootDiscoverableProperty
}
WithDiscoverable represents an activity with TootDiscoverableProperty
type WithEndpoints ¶ added in v0.5.0
type WithEndpoints interface {
GetActivityStreamsEndpoints() vocab.ActivityStreamsEndpointsProperty
}
WithEndpoints represents a Person or profile with the endpoints property
type WithFeatured ¶
type WithFeatured interface {
GetTootFeatured() vocab.TootFeaturedProperty
}
WithFeatured represents an activity with TootFeaturedProperty
type WithFollowers ¶
type WithFollowers interface {
GetActivityStreamsFollowers() vocab.ActivityStreamsFollowersProperty
}
WithFollowers represents an activity with ActivityStreamsFollowersProperty
type WithFollowing ¶
type WithFollowing interface {
GetActivityStreamsFollowing() vocab.ActivityStreamsFollowingProperty
}
WithFollowing represents an activity with ActivityStreamsFollowingProperty
type WithHref ¶
type WithHref interface {
GetActivityStreamsHref() vocab.ActivityStreamsHrefProperty
}
WithHref represents an activity with ActivityStreamsHrefProperty
type WithIcon ¶
type WithIcon interface {
GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty
}
WithIcon represents an activity with ActivityStreamsIconProperty
type WithImage ¶
type WithImage interface {
GetActivityStreamsImage() vocab.ActivityStreamsImageProperty
}
WithImage represents an activity with ActivityStreamsImageProperty
type WithInReplyTo ¶
type WithInReplyTo interface {
GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty
}
WithInReplyTo represents an activity with ActivityStreamsInReplyToProperty
type WithInbox ¶
type WithInbox interface {
GetActivityStreamsInbox() vocab.ActivityStreamsInboxProperty
}
WithInbox represents an activity with ActivityStreamsInboxProperty
type WithItems ¶
type WithItems interface {
GetActivityStreamsItems() vocab.ActivityStreamsItemsProperty
}
WithItems represents an activity with ActivityStreamsItemsProperty
type WithJSONLDId ¶
type WithJSONLDId interface {
GetJSONLDId() vocab.JSONLDIdProperty
}
WithJSONLDId represents an activity with JSONLDIdProperty
type WithManuallyApprovesFollowers ¶
type WithManuallyApprovesFollowers interface {
GetActivityStreamsManuallyApprovesFollowers() vocab.ActivityStreamsManuallyApprovesFollowersProperty
}
WithManuallyApprovesFollowers represents a Person or profile with the ManuallyApprovesFollowers property.
type WithMediaType ¶
type WithMediaType interface {
GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty
}
WithMediaType represents an activity with ActivityStreamsMediaTypeProperty
type WithName ¶
type WithName interface {
GetActivityStreamsName() vocab.ActivityStreamsNameProperty
}
WithName represents an activity with ActivityStreamsNameProperty
type WithNext ¶
type WithNext interface {
GetActivityStreamsNext() vocab.ActivityStreamsNextProperty
}
WithNext represents an activity with ActivityStreamsNextProperty
type WithObject ¶
type WithObject interface {
GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty
}
WithObject represents an activity with ActivityStreamsObjectProperty
type WithOutbox ¶
type WithOutbox interface {
GetActivityStreamsOutbox() vocab.ActivityStreamsOutboxProperty
}
WithOutbox represents an activity with ActivityStreamsOutboxProperty
type WithPartOf ¶
type WithPartOf interface {
GetActivityStreamsPartOf() vocab.ActivityStreamsPartOfProperty
}
WithPartOf represents an activity with ActivityStreamsPartOfProperty
type WithPreferredUsername ¶
type WithPreferredUsername interface {
GetActivityStreamsPreferredUsername() vocab.ActivityStreamsPreferredUsernameProperty
}
WithPreferredUsername represents an activity with ActivityStreamsPreferredUsernameProperty
type WithPublicKey ¶
type WithPublicKey interface {
GetW3IDSecurityV1PublicKey() vocab.W3IDSecurityV1PublicKeyProperty
}
WithPublicKey represents an activity with W3IDSecurityV1PublicKeyProperty
type WithPublished ¶
type WithPublished interface {
GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty
}
WithPublished represents an activity with ActivityStreamsPublishedProperty
type WithReplies ¶
type WithReplies interface {
GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty
}
WithReplies represents an activity with ActivityStreamsRepliesProperty
type WithSensitive ¶
type WithSensitive interface {
GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty
}
WithSensitive represents an activity with ActivityStreamsSensitiveProperty
type WithSetContent ¶ added in v0.8.0
type WithSetContent interface {
SetActivityStreamsContent(vocab.ActivityStreamsContentProperty)
}
WithSetContent represents an activity that can have content set on it.
type WithSetName ¶ added in v0.9.0
type WithSetName interface {
SetActivityStreamsName(vocab.ActivityStreamsNameProperty)
}
WithSetName represents an activity with a settable ActivityStreamsNameProperty
type WithSetSummary ¶ added in v0.9.0
type WithSetSummary interface {
SetActivityStreamsSummary(vocab.ActivityStreamsSummaryProperty)
}
WithSetSummary represents an activity that can have summary set on it.
type WithSummary ¶
type WithSummary interface {
GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty
}
WithSummary represents an activity with ActivityStreamsSummaryProperty
type WithTag ¶
type WithTag interface {
GetActivityStreamsTag() vocab.ActivityStreamsTagProperty
}
WithTag represents an activity with ActivityStreamsTagProperty
type WithTo ¶
type WithTo interface {
GetActivityStreamsTo() vocab.ActivityStreamsToProperty
}
WithTo represents an activity with ActivityStreamsToProperty
type WithTypeName ¶
type WithTypeName interface {
GetTypeName() string
}
WithTypeName represents an activity with a type name
type WithURL ¶
type WithURL interface {
GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty
}
WithURL represents an activity with ActivityStreamsUrlProperty
type WithUpdated ¶
type WithUpdated interface {
GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty
}
WithUpdated represents an activity with ActivityStreamsUpdatedProperty