kopia lustrzana https://github.com/reiver/greatape
17 wiersze
537 B
Go
17 wiersze
537 B
Go
package activitypub
|
|
|
|
import "time"
|
|
|
|
type Activity struct {
|
|
Context interface{} `json:"@context"`
|
|
ID string `json:"id,omitempty"`
|
|
Type string `json:"type,omitempty"`
|
|
Actor string `json:"actor,omitempty"`
|
|
Object interface{} `json:"object,omitempty"`
|
|
From string `json:"from,omitempty"`
|
|
To interface{} `json:"to,omitempty"`
|
|
InReplyTo string `json:"inReplyTo,omitempty"`
|
|
Content string `json:"content,omitempty"`
|
|
Published time.Time `json:"published,omitempty"`
|
|
}
|