handlers

package
v1.29.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handlers

type Handlers struct {
	Auth     internal.Auth
	Artifact internal.Artifact
}

Handlers take care of handling specific requests

func New

func New(auth internal.Auth, artifact internal.Artifact) *Handlers

New when provided the arguments defined herein, returns a pointer to an Handlers that is used to handle requests.

func (*Handlers) HandleArtifactRequest

func (a *Handlers) HandleArtifactRequest(host string, w http.ResponseWriter, r *http.Request) bool

HandleArtifactRequest handles all artifact related requests, will return true if request was handled here

Jump to

Keyboard shortcuts

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