server

package
v0.0.0-...-68b92b3 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg *config.Server, filter *dedup.SpatioTemporalFilter) (*http.Server, error)

New creates, configures and returns an instance of http.Server.

func WithSpatioTemporalFilter

func WithSpatioTemporalFilter(f *dedup.SpatioTemporalFilter, fn HandlerFunc) http.HandlerFunc

WithSpatioTemporalFilter wraps handler function into http.HandlerFunc and injects dedup.Filter.

Types

type HandlerFunc

HandlerFunc is a wrapped handler functions.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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