Info returns information about the service
()
| 753 | |
| 754 | // Info returns information about the service |
| 755 | func (s *service) Info() Info { |
| 756 | s.m.Lock() |
| 757 | defer s.m.Unlock() |
| 758 | |
| 759 | endpoints := make([]EndpointInfo, 0, len(s.endpoints)) |
| 760 | for _, e := range s.endpoints { |
| 761 | endpoints = append(endpoints, EndpointInfo{ |
| 762 | Name: e.Name, |
| 763 | Subject: e.Subject, |
| 764 | QueueGroup: e.QueueGroup, |
| 765 | Metadata: e.Metadata, |
| 766 | }) |
| 767 | } |
| 768 | |
| 769 | return Info{ |
| 770 | ServiceIdentity: s.serviceIdentity(), |
| 771 | Type: InfoResponseType, |
| 772 | Description: s.Config.Description, |
| 773 | Endpoints: endpoints, |
| 774 | } |
| 775 | } |
| 776 | |
| 777 | // Stats returns statistics for the service endpoint and all monitoring endpoints. |
| 778 | func (s *service) Stats() Stats { |
no test coverage detected