methods

package
v0.0.0-...-74e0640 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Blog *structure.Blog

Global blog - thread safe and accessible by all requests

Functions

func DeletePost

func DeletePost(postId int64) error

func GenerateBlog

func GenerateBlog() error

func GenerateTagsFromCommaString

func GenerateTagsFromCommaString(input string) []structure.Tag

func ProcessHelperArguments

func ProcessHelperArguments(arguments []structure.Helper) map[string]string

Function to put all arguments into a neatly organized map (splitting argument.Name with format "name=argument" into map["name"]"argument") for easier lookup and use in helper functions.

func SavePost

func SavePost(p *structure.Post) error

func SaveUser

func SaveUser(u *structure.User, hashedPassword string, createdBy int64) error

func UpdateActiveTheme

func UpdateActiveTheme(activeTheme string, userId int64) error

func UpdateBlog

func UpdateBlog(b *structure.Blog, userId int64) error

func UpdatePost

func UpdatePost(p *structure.Post) error

func UpdateUser

func UpdateUser(u *structure.User, updatedById int64) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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