comments

package
v0.0.0-...-cbaa3f3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteComment

func DeleteComment(db *gorp.DbMap, commentId int64) error

Types

type Comment

type Comment struct {
	Id        int64
	ItemId    int64
	ItemType  string
	Val       []byte
	RateId    int64
	UserId    int64
	Anonymous bool

	Created int64
	Deleted int64
	Updated int64
	Version int64
}

func CreateComment

func CreateComment(db *gorp.DbMap, itemid int64, itemtype string, comment []byte,
	userid int64, anon bool) (Comment, error)

func GetComments

func GetComments(db *gorp.DbMap, itemid int64, itemtype string) ([]Comment,
	error)

func GetCommentsForType

func GetCommentsForType(db *gorp.Transaction, itemtype string) ([]Comment,
	error)

Jump to

Keyboard shortcuts

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