GetAllIDs returns the list of IDs of the available frequency plans.
()
| 715 | |
| 716 | // GetAllIDs returns the list of IDs of the available frequency plans. |
| 717 | func (s *Store) GetAllIDs() ([]string, error) { |
| 718 | if s == nil { |
| 719 | return nil, errNotConfigured.New() |
| 720 | } |
| 721 | |
| 722 | descriptions, err := s.descriptions() |
| 723 | if err != nil { |
| 724 | return nil, errReadList.WithCause(err) |
| 725 | } |
| 726 | |
| 727 | ids := []string{} |
| 728 | for _, description := range descriptions { |
| 729 | ids = append(ids, description.ID) |
| 730 | } |
| 731 | |
| 732 | return ids, nil |
| 733 | } |