server

package
v1.8.15-beta.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildInsecureHandlerChain

func BuildInsecureHandlerChain(apiHandler http.Handler, c *server.Config) http.Handler

func NonBlockingRun

func NonBlockingRun(insecureServingInfo *InsecureServingInfo, insecureHandler http.Handler, stopCh <-chan struct{}) error

NonBlockingRun spawns the insecure http server. An error is returned if the ports cannot be listened on.

Types

type InsecureServingInfo

type InsecureServingInfo struct {
	// BindAddress is the ip:port to serve on
	BindAddress string
	// BindNetwork is the type of network to bind to - defaults to "tcp", accepts "tcp",
	// "tcp4", and "tcp6".
	BindNetwork string
}

func (*InsecureServingInfo) NewLoopbackClientConfig

func (s *InsecureServingInfo) NewLoopbackClientConfig(token string) (*rest.Config, error)

Jump to

Keyboard shortcuts

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