methods

package
v0.0.0-...-4a5e4cf Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Global blog - thread safe and accessible by all requests

Functions

func DeletePost

func DeletePost(ctx context.Context, blogURL string, db store.Database, postId int64) error

func GenerateBlog

func GenerateBlog(ctx context.Context, blogURL string, db store.Database) error

func GenerateTagsFromCommaString

func GenerateTagsFromCommaString(ctx context.Context, db store.Database, 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(ctx context.Context, blogURL string, db store.Database, p *structure.Post) error

func SaveUser

func SaveUser(ctx context.Context, db store.Database, u *structure.User, hashedPassword string, createdBy int64) error

func UpdateActiveTheme

func UpdateActiveTheme(activeTheme string, userId int64) error

func UpdateBlog

func UpdateBlog(ctx context.Context, blogURL string, db store.Database, b *structure.Blog, userId int64) error

func UpdatePost

func UpdatePost(ctx context.Context, blogURL string, db store.Database, p *structure.Post) error

func UpdateUser

func UpdateUser(ctx context.Context, db store.Database, 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