webserver

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	ProbeListenAddr string // the listen address, such as ":80"
	// contains filtered or unexported fields
}

func NewServer

func NewServer(c client.Client, addr string) Server

func (Server) Client

func (s Server) Client() client.Client

func (*Server) ProbeResultHandler

func (s *Server) ProbeResultHandler(w http.ResponseWriter, r *http.Request, masterAddr string, clusterName string) error

func (*Server) Start

func (s *Server) Start(masterAddr string, clusterName string)

Jump to

Keyboard shortcuts

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