server

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2020 License: Apache-2.0 Imports: 22 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthChecker added in v1.4.0

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

func NewHealthChecker

func NewHealthChecker(grpcHealthServer *health.Server, name string) *HealthChecker

func (*HealthChecker) Fail added in v1.4.0

func (hc *HealthChecker) Fail()

func (*HealthChecker) ServeHTTP added in v1.4.0

func (hc *HealthChecker) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*HealthChecker) Server added in v1.4.0

func (hc *HealthChecker) Server() *health.Server

type Server

type Server interface {
	/**
	 * Starts the HTTP and gRPC servers. This should be done after
	 * all endpoints have been registered through 'AddHttpEndpoint'
	 * and 'GrpcServer'.
	 */
	Start()

	/**
	 * Returns the root of the stats tree for the server
	 */
	Scope() stats.Scope

	/**
	 * Add an HTTP endpoint to the local debug port.
	 */
	AddDebugHttpEndpoint(path string, help string, handler http.HandlerFunc)

	/**
	 * Returns the embedded gRPC server to be used for registering gRPC endpoints.
	 */
	GrpcServer() *grpc.Server

	/**
	 * Returns the runtime configuration for the server.
	 */
	Runtime() loader.IFace
}

func NewServer

func NewServer(name string, store stats.Store, localCache *freecache.Cache, opts ...settings.Option) Server

Jump to

Keyboard shortcuts

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