model

package
v3.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

MVC models

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Article

type Article struct {
	Subject     string
	Name        string
	Header      map[string][]string
	Text        string
	Attachments []Attachment
	MessageID   string
	Newsgroup   string
	Reference   string
	Path        string
	Posted      int64
	Addr        string
}

type ArticleEntry

type ArticleEntry [2]string

a ( MessageID , newsgroup ) tuple

func (ArticleEntry) MessageID

func (self ArticleEntry) MessageID() string

func (ArticleEntry) Newsgroup

func (self ArticleEntry) Newsgroup() string

type ArticleHeader

type ArticleHeader map[string][]string

type Attachment

type Attachment struct {
	Path string
	Name string
	Mime string
	Hash string
	// only filled for api
	Body string
}

type Board

type Board struct {
}

type BoardPage

type BoardPage struct {
	Board   string
	Page    int
	Pages   int
	Threads []Thread
}

type Post

type Post struct {
	Board       string
	PostName    string
	PostSubject string
	PostMessage string

	Message_id  string
	MessagePath string
	Addr        string
	OP          bool
	Posted      int64
	Parent      string
	Sage        bool
	Key         string
	Files       []*Attachment
	HashLong    string
	HashShort   string
	URL         string
	Tripcode    string
	BodyMarkup  string
	PostMarkup  string
	PostPrefix  string
	// contains filtered or unexported fields
}

type PostEntry

type PostEntry [2]int64

a ( time point, post count ) tuple

func (PostEntry) Count

func (self PostEntry) Count() int64

func (PostEntry) Time

func (self PostEntry) Time() time.Time

type PostReference

type PostReference [3]string

( message-id, references, newsgroup )

type Thread

type Thread struct {
	Root    *Post
	Replies []*Post
}

Jump to

Keyboard shortcuts

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