httphandler

package
v0.0.0-...-c858694 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package httphandler contains an API handler for change.Service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Change

type Change struct {
	Change change.Service
}

Change is an API handler for change.Service. It returns errors compatible with httperror package.

func (Change) Count

func (h Change) Count(w http.ResponseWriter, req *http.Request) error

func (Change) EditComment

func (h Change) EditComment(w http.ResponseWriter, req *http.Request) error

func (Change) Get

func (h Change) Get(w http.ResponseWriter, req *http.Request) error

func (Change) GetDiff

func (h Change) GetDiff(w http.ResponseWriter, req *http.Request) error

func (Change) List

func (h Change) List(w http.ResponseWriter, req *http.Request) error

func (Change) ListCommits

func (h Change) ListCommits(w http.ResponseWriter, req *http.Request) error

func (Change) ListTimeline

func (h Change) ListTimeline(w http.ResponseWriter, req *http.Request) error

func (Change) ThreadType

func (h Change) ThreadType(w http.ResponseWriter, req *http.Request) error

Jump to

Keyboard shortcuts

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