linstrom/ap/create-action.go
2024-01-30 11:26:41 +00:00

16 lines
678 B
Go

package ap
import (
"net/url"
"time"
)
type CreateAction struct {
ID url.URL `json:"id"` // URL to this resource
Actor url.URL `json:"actor"` // Account that created this action, links to the AP url
Type string `json:"type"` // Should always be "Create"
Published time.Time `json:"published"` // When this action was created
Object map[string]any `json:"object"` // Content of the action, is an AP object, like notes or questions (survey)
To []url.URL `json:"to"` // Array of url targets to deliver it to?
Cc []url.URL `json:"cc"` // More targets to deliver to?
}