Documentation ¶
Index ¶
- Variables
- func DeletePost(ctx context.Context, blogURL string, db store.Database, postId int64) error
- func GenerateBlog(ctx context.Context, blogURL string, db store.Database) error
- func GenerateTagsFromCommaString(ctx context.Context, db store.Database, input string) []structure.Tag
- func ProcessHelperArguments(arguments []structure.Helper) map[string]string
- func SavePost(ctx context.Context, blogURL string, db store.Database, p *structure.Post) error
- func SaveUser(ctx context.Context, db store.Database, u *structure.User, ...) error
- func UpdateActiveTheme(activeTheme string, userId int64) error
- func UpdateBlog(ctx context.Context, blogURL string, db store.Database, b *structure.Blog, ...) error
- func UpdatePost(ctx context.Context, blogURL string, db store.Database, p *structure.Post) error
- func UpdateUser(ctx context.Context, db store.Database, u *structure.User, updatedById int64) error
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 ProcessHelperArguments ¶
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 UpdateActiveTheme ¶
func UpdateBlog ¶
func UpdatePost ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.