models

package
v0.0.0-...-fd0b6e6 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category struct {
	Category string
	Sections []Section
}

type Comment

type Comment struct {
	Cid          int32         `json:"Cid"`
	Parent_post  int32         `json:"Parent"`
	Comment_post int32         `json:"Comment"`
	User_id      int32         `json:"uid"`
	User         Userlisted    `json:"user"`
	Md           string        `json:"md"`
	Html         template.HTML `json:"html"`
	Time_posted  time.Time     `json:"time_posted"`
}

type Config

type Config struct {
	Registration string
	Theme        Theme
	Categories   []Category
}

type Hash

type Hash string

type Notification

type Notification struct {
	Nid              int32
	To_Uid           int32
	From_Uid         int32
	From_Uid_Listing Userlisted
	Message          template.HTML
}

type Password

type Password string

type Post

type Post struct {
	Pid            int32 `json:"pid"`
	Uid            int32 `json:"uid"`
	User           Userlisted
	Status         string        `json:"status"`
	Title          string        `json:"title"`
	Section        string        `json:"section"`
	Md             string        `json:"md"`
	Html           template.HTML `json:"html"`
	Time_posted    time.Time     `json:"time_posted"`
	Time_formatted string        `json:"time_formatted"`
}

type PostListing

type PostListing struct {
	Pid            int32      `json:"pid"`
	Uid            int32      `json:"uid"`
	User           Userlisted `json:"user"`
	Title          string     `json:"title"`
	Status         string     `json:"status"`
	Section        string     `json:"section"`
	Time_posted    time.Time  `json:"time_posted"`
	Time_formatted string     `json:"time_formatted"`
}

type Section

type Section struct {
	Section string
	Id      string
}

type Theme

type Theme struct {
	Primary_text   string
	Secondary_text string
	Background     string
	Border         string
}

type User

type User struct {
	Id             int32
	Role           string
	Profile_pic    string
	Username       Username
	Password       Hash
	Bio            string
	User_fg_color  string
	User_bg_color  string
	Theme          Theme
	Date_Joined    time.Time
	Date_formatted string
}

type Userlisted

type Userlisted struct {
	Username      Username
	Role          string
	User_fg_color string
	User_bg_color string
}

type Username

type Username string

Jump to

Keyboard shortcuts

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