| 1 | package client |
| 2 | |
| 3 | import "github.com/czerwonk/bird_exporter/protocol" |
| 4 | |
| 5 | // Client retrieves information from Bird routing daemon |
| 6 | type Client interface { |
| 7 | |
| 8 | // GetProtocols retrieves protocol information and statistics from bird |
| 9 | GetProtocols() ([]*protocol.Protocol, error) |
| 10 | |
| 11 | // GetOSPFAreas retrieves OSPF specific information from bird |
| 12 | GetOSPFAreas(protocol *protocol.Protocol) ([]*protocol.OSPFArea, error) |
| 13 | |
| 14 | // GetBFDSessions retrieves BFD specific information from bird |
| 15 | GetBFDSessions(protocol *protocol.Protocol) ([]*protocol.BFDSession, error) |
| 16 | } |