http

package
v0.0.0-...-d450093 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Autoupdate

func Autoupdate(mux *http.ServeMux, auto *autoupdate.Autoupdate, auther Auther)

Autoupdate registers the autoupdate route.

func Health

func Health(mux *http.ServeMux)

Health registers the health route.

func Notify

func Notify(mux *http.ServeMux, n *notify.Notify, auther Auther)

Notify registers the notify route.

func NotifyApplause

func NotifyApplause(mux *http.ServeMux, n *notify.Notify, auther Auther)

NotifyApplause registers the notify/applause route.

func NotifySend

func NotifySend(mux *http.ServeMux, n *notify.Notify, auther Auther)

NotifySend registers the notify/send route.

func Projector

func Projector(mux *http.ServeMux, auto *autoupdate.Autoupdate, auth Auther)

Projector registers the projector route.

func RegisterAll

func RegisterAll(mux *http.ServeMux, auth Auther, a *autoupdate.Autoupdate, n *notify.Notify)

RegisterAll registers all routes.

Types

type Auther

type Auther interface {
	Authenticate(r *http.Request) (context.Context, error)
}

Auther authenticates a request.

Jump to

Keyboard shortcuts

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