server

package
v0.0.0-...-ebab3a7 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2018 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseURL

func ParseURL(unparsed string) (string, []grpc.DialOption, error)

ParseURL deals with direct:// style URLs, as well as kubernetes:// urls. For backwards compatibility it treats URLs without schems as kubernetes://.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a http.Handler that forwards the request over gRPC.

func NewClient

func NewClient(address string) (*Client, error)

NewClient makes a new Client, given a kubernetes service address.

func (*Client) ServeHTTP

func (c *Client) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP implements http.Handler

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server implements HTTPServer. HTTPServer is a generated interface that gRPC servers must implement.

func NewServer

func NewServer(handler http.Handler) *Server

NewServer makes a new Server.

func (Server) Handle

Handle implements HTTPServer.

Jump to

Keyboard shortcuts

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