services

package
v0.0.0-...-b5db8e0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeletePost

func DeletePost(id int64) int64

func GetAllPosts

func GetAllPosts() ([]models.Post, error)

func GetCurrentTime

func GetCurrentTime() time.Time

func GetPost

func GetPost(id int64) (models.Post, error)

func InitDB

func InitDB() error

func InsertPost

func InsertPost(post models.Post) int64

insert post into db, returns inserted postID on success

func UpdatePost

func UpdatePost(id int64, post models.Post) int64

Types

This section is empty.

Jump to

Keyboard shortcuts

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