Documentation ¶
Index ¶
- func ToAuthors(a Authorable) []*url.URL
- func ToContent(c Contentable, preferLang language.Tag) string
- func ToCreated(p Publishable) time.Time
- func ToID(i IDable) *url.URL
- func ToInReplyTo(i InReplyToable) []*url.URL
- func ToPreviewContent(c Contentable, n, maxDepth int, preferLang language.Tag) string
- type Authorable
- type Contentable
- type IDable
- type InReplyToable
- type Publishable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToAuthors ¶
func ToAuthors(a Authorable) []*url.URL
func ToCreated ¶
func ToCreated(p Publishable) time.Time
func ToInReplyTo ¶
func ToInReplyTo(i InReplyToable) []*url.URL
func ToPreviewContent ¶
func ToPreviewContent(c Contentable, n, maxDepth int, preferLang language.Tag) string
Types ¶
type Authorable ¶
type Authorable interface {
GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty
}
type Contentable ¶
type Contentable interface {
GetActivityStreamsContent() vocab.ActivityStreamsContentProperty
}
type IDable ¶
type IDable interface {
GetJSONLDId() vocab.JSONLDIdProperty
}
type InReplyToable ¶
type InReplyToable interface {
GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty
}
type Publishable ¶
type Publishable interface {
GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty
}
Click to show internal directories.
Click to hide internal directories.