Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LocalUser ¶
type LocalUser struct {
ID int64 `json:"-"`
PreferredUsername string `json:"preferredUsername"`
HashedPass []byte `json:"-"`
Name string `json:"name"`
Summary string `json:"summary"`
// contains filtered or unexported fields
}
LocalUser is a local user
func (*LocalUser) AccountRoot ¶
func (*LocalUser) AsPerson ¶
func (u *LocalUser) AsPerson(app *app) *activitystreams.Person
type Post ¶
type Post struct {
ID int64
OwnerID int64
ActivityID string
Type string
Published time.Time
URL string
Name string
Content string
IsInFeed bool
Owner *User
// contains filtered or unexported fields
}
func (*Post) DisplayTitle ¶
func (*Post) Published8601 ¶
func (*Post) PublishedDate ¶
func (*Post) SanitaryContent ¶
type User ¶
type User struct {
activitystreams.Person
ID int64 `json:"-"`
Host string `json:"-"`
Created time.Time `json:"-"`
}
User is a remote user
func (*User) AsPerson ¶
func (u *User) AsPerson() *activitystreams.Person
type WebfingerResult ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.