1
0
mirror of https://github.com/alice-lg/alice-lg.git synced 2024-05-11 05:55:03 +00:00

18 lines
561 B
Go
Raw Normal View History

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 {
ExpireCaches() int
2018-07-11 18:25:42 +02:00
Status() (*api.StatusResponse, error)
Neighbours() (*api.NeighboursResponse, error)
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
}