mirror of
https://github.com/alice-lg/alice-lg.git
synced 2024-05-11 05:55:03 +00:00
18 lines
561 B
Go
18 lines
561 B
Go
package sources
|
|
|
|
import (
|
|
"github.com/alice-lg/alice-lg/backend/api"
|
|
)
|
|
|
|
type Source interface {
|
|
ExpireCaches() int
|
|
Status() (*api.StatusResponse, error)
|
|
Neighbours() (*api.NeighboursResponse, error)
|
|
NeighboursStatus() (*api.NeighboursStatusResponse, error)
|
|
Routes(neighbourId string) (*api.RoutesResponse, error)
|
|
RoutesReceived(neighbourId string) (*api.RoutesResponse, error)
|
|
RoutesFiltered(neighbourId string) (*api.RoutesResponse, error)
|
|
RoutesNotExported(neighbourId string) (*api.RoutesResponse, error)
|
|
AllRoutes() (*api.RoutesResponse, error)
|
|
}
|