postgrp

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 postgrp maintains the group of handlers for post access.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handlers

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

Handlers manages the set of post enpoints.

func (Handlers) Create

Create adds a new post to the system.

func (Handlers) Delete

Delete removes a post from the system.

func (Handlers) Query

Query returns a list of posts with paging.

func (Handlers) QueryByID

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

QueryByID returns a post by its ID.

func (Handlers) Update

Update updates a post in the system.

Jump to

Keyboard shortcuts

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