comments

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2017 License: MIT Imports: 9 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(content string, torrent *models.Torrent, user *models.User) (*models.Comment, error)

func Delete

func Delete(id uint) (*models.Comment, int, error)

Delete : Delete a comment

func FindAll

func FindAll(limit int, offset int, conditions string, values ...interface{}) ([]models.Comment, int)

FindAll : Find all comments based on conditions

func NewCommentEvent

func NewCommentEvent(comment *models.Comment, torrent *models.Torrent)

When a new comment is added this is called

Types

This section is empty.

Jump to

Keyboard shortcuts

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