server

package
v0.0.0-...-34bdeab Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPCheckServer

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

HTTPCheckServer runs HTTP checks. It provides an gRPC interface to receive check tasks

func New

func New(workerCount uint32, reqTimeout, tlsTimeout time.Duration) *HTTPCheckServer

New creates a new server instance

func (*HTTPCheckServer) Check

func (s *HTTPCheckServer) Check(ctx context.Context, in *api.Request) (*api.Response, error)

Check performs a http check and returns the check result

Jump to

Keyboard shortcuts

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