MCPcopy Create free account
hub / github.com/davecheney/pub / Activity

Struct Activity

activitypub/objects.go:92–106  ·  view source on GitHub ↗

Activity is an ActivityStreams Activity. https://www.w3.org/TR/activitystreams-core/#activities

Source from the content-addressed store, hash-verified

90// Activity is an ActivityStreams Activity.
91// https://www.w3.org/TR/activitystreams-core/#activities
92type Activity struct {
93 // Type is the type of the Activity.
94 Type string `json:"type"`
95 // The Activity's unique global identifier.
96 ID string `json:"id"`
97 // Object is the Object that the Activity is acting upon.
98 Object any `json:"object"`
99 // Actor is the Actor that performed the Activity.
100 Actor any `json:"actor"`
101 // Target is the Object that the Activity is directed at.
102 Target string `json:"target"`
103
104 Published time.Time `json:"published"`
105 Updated time.Time `json:"updated"`
106}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected