Documentation ¶
Index ¶
- type Service
- type Services
- func (s *Services) AddService(service *Service)
- func (s *Services) GetAddedServicesForType(serviceType string) chan *Service
- func (s *Services) GetAllAddedServices() chan *Service
- func (s *Services) GetAllRemovedServices() chan *Service
- func (s *Services) GetRemovedServicesForType(serviceType string) chan *Service
- func (s *Services) RemoveService(service *Service)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
Service represents a process to tail logs for.
func NewService ¶
NewService returns a new service.
func (*Service) GetEntityID ¶
GetEntityID return the entity identifier of the service
type Services ¶
type Services struct {
// contains filtered or unexported fields
}
Services provides new and removed services.
func (*Services) AddService ¶
AddService sends a new service to all the channels that registered.
func (*Services) GetAddedServicesForType ¶
GetAddedServicesForType returns a stream of new services for a given type.
Any services added before this call are delivered from a new goroutine.
func (*Services) GetAllAddedServices ¶
GetAllAddedServices registers the channel to receive all added services.
Any services added before this call are delivered from a new goroutine.
func (*Services) GetAllRemovedServices ¶
GetAllRemovedServices registers the channel to receive all removed services.
func (*Services) GetRemovedServicesForType ¶
GetRemovedServicesForType returns a stream of removed services for a given type.
func (*Services) RemoveService ¶
RemoveService sends a removed service to all the channels that registered.