models

package
v0.0.0-...-6e489c3 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: BSD-3-Clause Imports: 2 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 {
	// FileName         string    `json:"file_name"`
	Title            string    `json:"article_title"`
	Author           string    `json:"article_author"`
	AuthorId         string    `json:"author_id"`
	CreationDate     time.Time `json:"creation_date"`
	ModificationDate time.Time `json:"modification_date"`
	IsLocked         bool      `json:"is_locked"`
	Id               string    `json:"id"`
}

type ConfigApp

type ConfigApp struct {
	Port        string
	JwtSecret   string
	AdminPasswd string
}

type ConfigDB

type ConfigDB struct {
	Path     string
	DbType   string
	Host     string
	Port     string
	DBName   string
	User     string
	Password string
}

type PageVariables

type PageVariables struct {
	Id           string
	Md           string
	MDArticle    template.HTML
	HomeButton   string
	AddButton    string
	Title        string
	Path         string
	Author       string
	CreationDate string
	UpdateDate   string
	UserName     string
	BodyLoudText string
	BodyText     string
	Theme        string
}

type User

type User struct {
	UserName string `json:"user_name"`
	FullName string `json:"full_name"`
	Password string `json:"passwd"`

	Email        string            `json:"email"`
	IsAdmin      bool              `json:"is_admin"`
	CreationDate time.Time         `json:"creation_date"`
	LastLogin    time.Time         `json:"last_login"`
	Id           string            `json:"id"`
	Settings     map[string]string `json:"settings"`
}

Jump to

Keyboard shortcuts

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