handler

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(port int, version string, cs kubernetes.Interface, cvCS clientset.Interface, stopCh chan struct{})

NewServer creates and starts an http server to serve alive and deployment status endpoints if server fails to start then, stop channel is closed notifying all listeners to the channel

func StaticContentHandler

func StaticContentHandler(content string) http.HandlerFunc

StaticContentHandler returns a HandlerFunc that writes the given content to the response.

Types

This section is empty.

Jump to

Keyboard shortcuts

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