2016-11-11 14:14:38 +01:00
|
|
|
package endpoints
|
|
|
|
|
|
|
|
import (
|
2016-12-15 14:42:37 +01:00
|
|
|
"net/http"
|
|
|
|
|
2018-07-20 14:51:40 +02:00
|
|
|
"github.com/alice-lg/birdwatcher/bird"
|
2016-11-11 14:14:38 +01:00
|
|
|
"github.com/julienschmidt/httprouter"
|
|
|
|
)
|
|
|
|
|
2019-02-21 13:36:28 +01:00
|
|
|
func Protocols(r *http.Request, ps httprouter.Params, useCache bool) (bird.Parsed, bool) {
|
|
|
|
return bird.Protocols(useCache)
|
2016-11-11 14:14:38 +01:00
|
|
|
}
|
|
|
|
|
2019-02-21 13:36:28 +01:00
|
|
|
func Bgp(r *http.Request, ps httprouter.Params, useCache bool) (bird.Parsed, bool) {
|
|
|
|
return bird.ProtocolsBgp(useCache)
|
2016-11-11 14:14:38 +01:00
|
|
|
}
|
2019-02-19 14:07:14 +01:00
|
|
|
|
2019-02-21 13:36:28 +01:00
|
|
|
func ProtocolsShort(r *http.Request, ps httprouter.Params, useCache bool) (bird.Parsed, bool) {
|
|
|
|
return bird.ProtocolsShort(useCache)
|
2019-02-19 14:07:14 +01:00
|
|
|
}
|