ds

package
v0.0.0-...-acbff40 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(id int64)

Types

type CommentEntity

type CommentEntity struct {
	Message string         `datastore:"message"`
	Created time.Time      `datastore:"created"`
	Key     *datastore.Key `datastore:"__key__"`
}

func GetComments

func GetComments(parentID int64) []CommentEntity

func InsertComment

func InsertComment(parentID int64, message string) CommentEntity

type GuestEntity

type GuestEntity struct {
	Name    string         `datastore:"author"`
	Message string         `datastore:"message"`
	Created time.Time      `datastore:"created"`
	Key     *datastore.Key `datastore:"__key__"`
}

func GetAll

func GetAll() []GuestEntity

func GetByID

func GetByID(id int64) GuestEntity

func Insert

func Insert(author, message string) GuestEntity

func Update

func Update(entity GuestEntity) GuestEntity

Jump to

Keyboard shortcuts

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