server

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearCache

func ClearCache(cache ClearableCache) http.HandlerFunc

func HealthCheck

func HealthCheck(w http.ResponseWriter, r *http.Request)

func Shutdown

func Shutdown(ctx context.Context)

func Start

func Start(ctx context.Context, cache ClearableCache, bindAdd string, errorChan chan error)

Types

type ClearableCache

type ClearableCache interface {
	Clear()
}

Jump to

Keyboard shortcuts

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