database

package
v0.0.0-...-fcf661c Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteBlog

func DeleteBlog(name string)

func SetBlog

func SetBlog(name string, content string)

func Setup

func Setup() (context.Context, *pgxpool.Pool)

Types

type Blog

type Blog struct {
	Id      string `json:"id,omitempty"`
	Name    string `json:"name,omitempty"`
	Content string `json:"content,omitempty"`
}

func CreateBlog

func CreateBlog(name string, content string) *Blog

func GetBlog

func GetBlog(name string) *Blog

func GetBlogs

func GetBlogs() []*Blog

Jump to

Keyboard shortcuts

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