2017-05-16 14:10:02 +02:00
|
|
|
package sources
|
|
|
|
|
2017-05-18 18:10:55 +02:00
|
|
|
import (
|
2018-06-19 10:02:16 +02:00
|
|
|
"github.com/alice-lg/alice-lg/backend/api"
|
2017-05-18 18:10:55 +02:00
|
|
|
)
|
|
|
|
|
2017-05-16 14:10:02 +02:00
|
|
|
type Source interface {
|
2019-02-18 20:20:26 +01:00
|
|
|
ExpireCaches() int
|
2018-07-11 18:25:42 +02:00
|
|
|
Status() (*api.StatusResponse, error)
|
|
|
|
Neighbours() (*api.NeighboursResponse, error)
|
2019-03-04 18:52:49 +01:00
|
|
|
NeighboursStatus() (*api.NeighboursStatusResponse, error)
|
2018-07-11 18:25:42 +02:00
|
|
|
Routes(neighbourId string) (*api.RoutesResponse, error)
|
2018-07-13 16:40:28 +02:00
|
|
|
RoutesReceived(neighbourId string) (*api.RoutesResponse, error)
|
|
|
|
RoutesFiltered(neighbourId string) (*api.RoutesResponse, error)
|
|
|
|
RoutesNotExported(neighbourId string) (*api.RoutesResponse, error)
|
2018-07-11 18:25:42 +02:00
|
|
|
AllRoutes() (*api.RoutesResponse, error)
|
2017-05-16 14:10:02 +02:00
|
|
|
}
|