models

package
v0.0.66 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: GPL-3.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageLink struct {
	// Identifier of this message.
	Id cmb.Id `json:"id"`

	// Identifier of a thread containing this message.
	ThreadId cmb.Id `json:"threadId"`
}

MessageLink is a short variant of a message which stores only IDs.

func NewMessageLink() (ml *MessageLink)

func NewMessageLinkArrayFromRows added in v0.0.64

func NewMessageLinkArrayFromRows(rows base.IScannableSequence) (mls []MessageLink, err error)

func NewMessageLinkFromScannableSource added in v0.0.56

func NewMessageLinkFromScannableSource(src base.IScannable) (ml *MessageLink, err error)

type SectionsAndForums

type SectionsAndForums struct {
	Sections []derived2.ISection `json:"sections"`
	Forums   []derived2.IForum   `json:"forums"`
}
type ThreadLink struct {
	// Identifier of this thread.
	Id cmb.Id `json:"id"`

	// Identifier of a forum containing this thread.
	ForumId cmb.Id `json:"forumId"`

	// List of identifiers of messages of this thread.
	Messages *ul.UidList `json:"messages"`
}

ThreadLink is a short variant of a thread which stores only IDs.

func NewThreadLink() (tl *ThreadLink)

func NewThreadLinkArrayFromRows added in v0.0.64

func NewThreadLinkArrayFromRows(rows base.IScannableSequence) (tls []ThreadLink, err error)

func NewThreadLinkFromScannableSource added in v0.0.56

func NewThreadLinkFromScannableSource(src base.IScannable) (tl *ThreadLink, err error)

Jump to

Keyboard shortcuts

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