Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrProbeExists when we register the same probe. ErrProbeExists = errors.New("probe exists") // ErrNoRegistrations have been added. ErrNoRegistrations = errors.New("no registrations") // ErrRegistrationNotFound in register. ErrRegistrationNotFound = errors.New("registration not found") )
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server will maintain all the probes and start and stop them.
func (*Server) Observe ¶
func (s *Server) Observe(names ...string) (*subscriber.Observer, error)
Observe the names of the probes.
func (*Server) Register ¶
func (s *Server) Register(regs ...*Registration) error
Register all the registrations.
func (*Server) Subscribe ¶
func (s *Server) Subscribe(names ...string) (*subscriber.Subscriber, error)
Subscribe to the names of the probes.
Click to show internal directories.
Click to hide internal directories.