mirror of
https://github.com/alice-lg/birdwatcher.git
synced 2025-03-09 00:00:05 +01:00
20 lines
510 B
Go
20 lines
510 B
Go
package endpoints
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/alice-lg/birdwatcher/bird"
|
|
"github.com/julienschmidt/httprouter"
|
|
)
|
|
|
|
func Protocols(r *http.Request, ps httprouter.Params, useCache bool) (bird.Parsed, bool) {
|
|
return bird.Protocols(useCache)
|
|
}
|
|
|
|
func Bgp(r *http.Request, ps httprouter.Params, useCache bool) (bird.Parsed, bool) {
|
|
return bird.ProtocolsBgp(useCache)
|
|
}
|
|
|
|
func ProtocolsShort(r *http.Request, ps httprouter.Params, useCache bool) (bird.Parsed, bool) {
|
|
return bird.ProtocolsShort(useCache)
|
|
}
|