extract

package
v0.0.0-...-f1c6d0e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToAuthors

func ToAuthors(a Authorable) []*url.URL

func ToContent

func ToContent(c Contentable, preferLang language.Tag) string

func ToCreated

func ToCreated(p Publishable) time.Time

func ToID

func ToID(i IDable) *url.URL

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL