Documentation ¶
Index ¶
- Variables
- func Bgp(r *http.Request, ps httprouter.Params) (bird.Parsed, bool)
- func CheckAccess(req *http.Request) error
- func Endpoint(wrapped endpoint) httprouter.Handle
- func ProtoCount(r *http.Request, ps httprouter.Params) (bird.Parsed, bool)
- func ProtoRoutes(r *http.Request, ps httprouter.Params) (bird.Parsed, bool)
- func Protocols(r *http.Request, ps httprouter.Params) (bird.Parsed, bool)
- func RouteNet(r *http.Request, ps httprouter.Params) (bird.Parsed, bool)
- func RouteNetTable(r *http.Request, ps httprouter.Params) (bird.Parsed, bool)
- func RoutesDump(r *http.Request, ps httprouter.Params) (bird.Parsed, bool)
- func RoutesFiltered(r *http.Request, ps httprouter.Params) (bird.Parsed, bool)
- func RoutesNoExport(r *http.Request, ps httprouter.Params) (bird.Parsed, bool)
- func RoutesPeer(r *http.Request, ps httprouter.Params) (bird.Parsed, bool)
- func RoutesPrefixed(r *http.Request, ps httprouter.Params) (bird.Parsed, bool)
- func Status(r *http.Request, ps httprouter.Params) (bird.Parsed, bool)
- func SymbolProtocols(r *http.Request, ps httprouter.Params) (bird.Parsed, bool)
- func SymbolTables(r *http.Request, ps httprouter.Params) (bird.Parsed, bool)
- func Symbols(r *http.Request, ps httprouter.Params) (bird.Parsed, bool)
- func TableCount(r *http.Request, ps httprouter.Params) (bird.Parsed, bool)
- func TableRoutes(r *http.Request, ps httprouter.Params) (bird.Parsed, bool)
- func ValidateCharset(value string, alphabet string) error
- func ValidateLength(value string, maxLength int) error
- func ValidateLengthAndCharset(value string, maxLength int, alphabet string) (string, error)
- func ValidatePrefixParam(value string) (string, error)
- func ValidateProtocolParam(value string) (string, error)
- func Version(version string) httprouter.Handle
- type APIInfo
- type CacheStatus
- type ServerConfig
- type TimeInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var VERSION string
go generate does not work in subdirectories. Beautious.
Functions ¶
func CheckAccess ¶
func Endpoint ¶
func Endpoint(wrapped endpoint) httprouter.Handle
func ProtoCount ¶
func ProtoRoutes ¶
func RouteNetTable ¶
func RoutesDump ¶
func RoutesFiltered ¶
func RoutesNoExport ¶
func RoutesPeer ¶
func RoutesPrefixed ¶
func SymbolProtocols ¶
func SymbolTables ¶
func TableCount ¶
func TableRoutes ¶
func ValidateCharset ¶
func ValidateLength ¶
Check if the value is not longer than a given length
func ValidatePrefixParam ¶
func ValidateProtocolParam ¶
func Version ¶
func Version(version string) httprouter.Handle
Types ¶
type APIInfo ¶
type APIInfo struct { Version string ResultFromCache bool `json:"result_from_cache"` CacheStatus CacheStatus `json:"cache_status"` }
func GetApiInfo ¶
type CacheStatus ¶
type ServerConfig ¶
type ServerConfig struct { AllowFrom []string `toml:"allow_from"` ModulesEnabled []string `toml:"modules_enabled"` }
Endpoints / Server configuration
var Conf ServerConfig
Click to show internal directories.
Click to hide internal directories.