web

package
v0.0.0-...-202a999 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: BSD-3-Clause Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Handler represents a HTTP handler serving the various endpoints.

func NewHandler

func NewHandler(
	ctx context.Context,
	storage *storage.Storage,
	searcher *catalog.Searcher,
	poller *poller.Poller,
	config *config.Config,
	logger *logger.Logger,
) *Handler

NewHandler creates a new HTTP handler instance.

func (*Handler) Run

func (h *Handler) Run() error

Run starts serving the HTTP endpoints.

func (*Handler) Shutdown

func (h *Handler) Shutdown()

Shutdown gracefully stops the HTTP endpoints serving.

Directories

Path Synopsis
api
v1

Jump to

Keyboard shortcuts

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