models

package
v0.0.0-...-d300cb7 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CurrentTime

type CurrentTime struct {
	Year  int
	Month time.Month
	Day   int
	Hour  int
	Min   int
	Sec   int
}

Structure for current time

func GetCurrentTime

func GetCurrentTime() CurrentTime

Function return current time

func NewTime

func NewTime(Year int, Month time.Month, Day, Hour, Min, Sec int) *CurrentTime

Init

type Post

type Post struct {
	Id              string
	Title           string
	ContentHTML     string
	ContentMarkdown string
	Time            CurrentTime
	Owner           string
}

Structure for posts

func NewPost

func NewPost(Id, Title, ContentHTML, ContentMarkdown string, Time CurrentTime, Owner string) *Post

Init

type PublicUsersData

type PublicUsersData struct {
	Id         string
	Username   string
	Permission string
}

func NewPublicUsersData

func NewPublicUsersData(Id, Username, Permission string) *PublicUsersData

type Users

type Users struct {
	Id         string
	Email      string
	Username   string
	Password   string
	Permission string
}

func NewUser

func NewUser(Id, Username, Email, Password, Permission string) *Users

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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