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: 3 Imported by: 0

Documentation

Overview

Package httphandler contains an API handler for code.Service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Code

type Code struct {
	Code *code.Service
}

Code is an API handler for code.Service. It returns errors compatible with httperror package.

func (Code) GetDirectory

func (h Code) GetDirectory(w http.ResponseWriter, req *http.Request) error

func (Code) ListDirectories

func (h Code) ListDirectories(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