data

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

View Source
var (

	// BEGIN IF THESE ARE CHANGED: Change forum/home.tmpl
	// Corp
	Announce = Tag{"announce"}
	Events   = Tag{"events"}
	Discuss  = Tag{"discuss"}

	// Game
	Fleet    = Tag{"fleet"}
	Industry = Tag{"industry"}
	Market   = Tag{"market"}
	PVP      = Tag{"pvp"}
	PVE      = Tag{"pve"}

	// Social
	Relations = Tag{"relations"}
	Intel     = Tag{"intel"}
	Justice   = Tag{"justice"}
	QNA       = Tag{"qna"}

	// Other
	OffTopic      = Tag{"offtopic"}
	Uncategorized = Tag{"uncategorized"}
)

Functions

This section is empty.

Types

type ChronologicalPosts

type ChronologicalPosts []Post

func (ChronologicalPosts) Len

func (c ChronologicalPosts) Len() int

func (ChronologicalPosts) Less

func (c ChronologicalPosts) Less(i, j int) bool

func (ChronologicalPosts) Swap

func (c ChronologicalPosts) Swap(i, j int)

type LatestSnippets

type LatestSnippets []Snippet

func (LatestSnippets) Len

func (l LatestSnippets) Len() int

func (LatestSnippets) Less

func (l LatestSnippets) Less(i, j int) bool

func (LatestSnippets) Swap

func (l LatestSnippets) Swap(i, j int)

type Post

type Post struct {
	ID        *url.URL
	Authors   []*url.URL
	Content   string
	Created   time.Time
	Type      string
	InReplyTo []*url.URL
}

func ToPost

func ToPost(t vocab.Type, lang language.Tag) Post

type Preferences

type Preferences struct{}

func DefaultPreferences

func DefaultPreferences() *Preferences

type Privileges

type Privileges struct{}

func DefaultAdminPrivileges

func DefaultAdminPrivileges() *Privileges

func DefaultPrivileges

func DefaultPrivileges() *Privileges

type RecentPreviews

type RecentPreviews []ThreadPreview

func (RecentPreviews) Len

func (r RecentPreviews) Len() int

func (RecentPreviews) Less

func (r RecentPreviews) Less(i, j int) bool

func (RecentPreviews) Swap

func (r RecentPreviews) Swap(i, j int)

type Snippet

type Snippet struct {
	ID             *url.URL
	Authors        []*url.URL
	PreviewContent string
	Created        time.Time
	Type           string
}

func ToSnippet

func ToSnippet(t vocab.Type, n, maxDepth int, preferLang language.Tag) Snippet

type Tag

type Tag struct {
	ID string // Is also the user-displayable string
}

func ToTag

func ToTag(s string) Tag

func ToTags

func ToTags(t vocab.Type) []Tag

type ThreadPreview

type ThreadPreview struct {
	Title string
	First *ThreadPreviewMessage
	Last  *ThreadPreviewMessage
}

func ToThreadPreview

func ToThreadPreview(first, last vocab.Type, n, maxDepth int, lang language.Tag) ThreadPreview

type ThreadPreviewMessage

type ThreadPreviewMessage struct {
	ID             *url.URL
	Authors        []*url.URL
	PreviewContent string
	Created        time.Time
	Type           string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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