commentgrp

package
v0.0.0-...-40cf777 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package commentgrp maintains the group of handlers for comment access.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handlers

type Handlers struct {
	Core comment.Core
	Auth *auth.Auth
}

Handlers manages the set of comment enpoints.

func (Handlers) Create

Create adds a new comment to the system.

func (Handlers) Delete

Delete removes a comment from the system.

func (Handlers) Query

Query returns a list of comments with paging.

func (Handlers) QueryByID

func (h Handlers) QueryByID(ctx context.Context, w http.ResponseWriter, r *http.Request) error

QueryByID returns a comment by its ID.

func (Handlers) QueryPostsByPostID

func (h Handlers) QueryPostsByPostID(ctx context.Context, w http.ResponseWriter, r *http.Request) error

func (Handlers) Update

Update updates a comment in the system.

Jump to

Keyboard shortcuts

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