httphandler

package
Version: v0.0.0-...-f61b9df Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2023 License: MIT Imports: 11 Imported by: 1

Documentation

Overview

Package httphandler contains API handlers used by home.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Events

type Events struct {
	Events events.Service
}

Events is an API handler for events.Service.

func (Events) List

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

type Reactions

type Reactions struct {
	Reactions reactions.Service
}

Reactions is an API handler for reactions.Service.

func (Reactions) GetOrToggle

func (h Reactions) GetOrToggle(w http.ResponseWriter, req *http.Request) error

func (Reactions) List

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

type Users

type Users struct {
	Users users.Service
}

Users is an API handler for users.Service.

func (Users) Get

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

func (Users) GetAuthenticated

func (h Users) GetAuthenticated(w http.ResponseWriter, req *http.Request) error

func (Users) GetAuthenticatedSpec

func (h Users) GetAuthenticatedSpec(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