Documentation ¶
Index ¶
- type Broker
- func (b *Broker) GetClient(clientId string) (*client, bool)
- func (b *Broker) GetClientsJSON() []api.ClientJSON
- func (b *Broker) GetEventsJSON() []api.EventInfoJSON
- func (b *Broker) GetLogsByPattern(pattern string) (api.GetLogsResponse, error)
- func (b *Broker) GetRequestSender(req *cellaserv.Request) (*client, error)
- func (b *Broker) GetService(name string, identification string) (srvc *service, err error)
- func (b *Broker) GetServicesJSON() []api.ServiceJSON
- func (b *Broker) Quit() chan struct{}
- func (b *Broker) RenameClientFromRequest(req *cellaserv.Request, name string)
- func (b *Broker) Run(ctx context.Context) error
- func (b *Broker) SpyService(c *client, srvc *service)
- func (b *Broker) Started() chan struct{}
- func (b *Broker) StartedWithCellaserv() chan struct{}
- type Monitoring
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Broker ¶
type Broker struct { Monitoring *Monitoring Options *Options // contains filtered or unexported fields }
func (*Broker) GetClientsJSON ¶
func (b *Broker) GetClientsJSON() []api.ClientJSON
func (*Broker) GetEventsJSON ¶
func (b *Broker) GetEventsJSON() []api.EventInfoJSON
func (*Broker) GetLogsByPattern ¶
func (b *Broker) GetLogsByPattern(pattern string) (api.GetLogsResponse, error)
func (*Broker) GetRequestSender ¶
func (*Broker) GetService ¶
GetService returns the service identified by the name and identification in argument, or an error if not found.
func (*Broker) GetServicesJSON ¶
func (b *Broker) GetServicesJSON() []api.ServiceJSON
func (*Broker) RenameClientFromRequest ¶
func (*Broker) SpyService ¶
func (b *Broker) SpyService(c *client, srvc *service)
spyByRequest finds the sender of the request and add it to the
func (*Broker) Started ¶
func (b *Broker) Started() chan struct{}
Started returns the started broker channel
func (*Broker) StartedWithCellaserv ¶
func (b *Broker) StartedWithCellaserv() chan struct{}
type Monitoring ¶
type Monitoring struct { Registry *prometheus.Registry // contains filtered or unexported fields }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.