models

package
v0.0.0-...-54413c5 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Article

type Article struct {
	ID        int            `db:"id"`
	CreatedAt time.Time      `db:"created_at"`
	HeaderRaw string         `db:"header"`
	Body      string         `db:"body"`
	Thread    sql.NullString `db:"thread"`

	Header        textproto.MIMEHeader `db:"-"`
	Envelope      *enmime.Envelope     `db:"-"`
	ArticleNumber int                  `db:"-"`
	Attachments   []Attachment
}

type Attachment

type Attachment struct {
	ContentType string `db:"content_type"`
	FileName    string `db:"attachment_id"`
}

type Group

type Group struct {
	ID          int       `db:"id"`
	GroupName   string    `db:"group_name"`
	Description *string   `db:"description"`
	CreatedAt   time.Time `db:"created_at"`
}

Jump to

Keyboard shortcuts

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