server

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 5 Imported by: 28

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registration

type Registration struct {
	Checker checker.Checker
	Name    string
	Period  time.Duration
}

Registration for the server.

func NewRegistration

func NewRegistration(name string, period time.Duration, ch checker.Checker) *Registration

NewRegistration for server.

type Server

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

Server will maintain all the probes and start and stop them.

func NewServer

func NewServer() *Server

NewServer for health.

func (*Server) Observe

func (s *Server) Observe(names ...string) *subscriber.Observer

Observe the names of the probes.

func (*Server) Register

func (s *Server) Register(regs ...*Registration)

Register all the registrations.

func (*Server) Start

func (s *Server) Start()

Start the server.

func (*Server) Stop

func (s *Server) Stop()

Stop the server.

func (*Server) Subscribe

func (s *Server) Subscribe(names ...string) *subscriber.Subscriber

Subscribe to the names of the probes.

Jump to

Keyboard shortcuts

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