Documentation ¶
Index ¶
- Variables
- func Bgp(r *http.Request, ps httprouter.Params, useCache bool) (bird.Parsed, bool)
- func CheckAccess(req *http.Request) error
- func CheckUseCache(req *http.Request) bool
- func Endpoint(wrapped endpoint) httprouter.Handle
- func PeerRoutes(r *http.Request, ps httprouter.Params, useCache bool) (bird.Parsed, bool)
- func PipeRoutesFiltered(r *http.Request, ps httprouter.Params, useCache bool) (bird.Parsed, bool)
- func PipeRoutesFilteredCount(r *http.Request, ps httprouter.Params, useCache bool) (bird.Parsed, bool)
- func ProtoCount(r *http.Request, ps httprouter.Params, useCache bool) (bird.Parsed, bool)
- func ProtoPrimaryCount(r *http.Request, ps httprouter.Params, useCache bool) (bird.Parsed, bool)
- func ProtoRoutes(r *http.Request, ps httprouter.Params, useCache bool) (bird.Parsed, bool)
- func Protocols(r *http.Request, ps httprouter.Params, useCache bool) (bird.Parsed, bool)
- func ProtocolsShort(r *http.Request, ps httprouter.Params, useCache bool) (bird.Parsed, bool)
- func RouteNet(r *http.Request, ps httprouter.Params, useCache bool) (bird.Parsed, bool)
- func RouteNetMask(r *http.Request, ps httprouter.Params, useCache bool) (bird.Parsed, bool)
- func RouteNetMaskTable(r *http.Request, ps httprouter.Params, useCache bool) (bird.Parsed, bool)
- func RouteNetTable(r *http.Request, ps httprouter.Params, useCache bool) (bird.Parsed, bool)
- func RoutesExport(r *http.Request, ps httprouter.Params, useCache bool) (bird.Parsed, bool)
- func RoutesFiltered(r *http.Request, ps httprouter.Params, useCache bool) (bird.Parsed, bool)
- func RoutesNoExport(r *http.Request, ps httprouter.Params, useCache bool) (bird.Parsed, bool)
- func RoutesPrefixed(r *http.Request, ps httprouter.Params, useCache bool) (bird.Parsed, bool)
- func Status(r *http.Request, ps httprouter.Params, useCache bool) (bird.Parsed, bool)
- func SymbolProtocols(r *http.Request, ps httprouter.Params, useCache bool) (bird.Parsed, bool)
- func SymbolTables(r *http.Request, ps httprouter.Params, useCache bool) (bird.Parsed, bool)
- func Symbols(r *http.Request, ps httprouter.Params, useCache bool) (bird.Parsed, bool)
- func TableAndPeerRoutes(r *http.Request, ps httprouter.Params, useCache bool) (bird.Parsed, bool)
- func TableCount(r *http.Request, ps httprouter.Params, useCache bool) (bird.Parsed, bool)
- func TableRoutes(r *http.Request, ps httprouter.Params, useCache bool) (bird.Parsed, bool)
- func TableRoutesFiltered(r *http.Request, ps httprouter.Params, useCache bool) (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 ValidateNetMaskParam(value 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 CheckUseCache ¶
func Endpoint ¶
func Endpoint(wrapped endpoint) httprouter.Handle
func PeerRoutes ¶
func PipeRoutesFiltered ¶
func PipeRoutesFilteredCount ¶
func ProtoCount ¶
func ProtoPrimaryCount ¶
func ProtoRoutes ¶
func ProtocolsShort ¶
func RouteNetMask ¶
func RouteNetMaskTable ¶
func RouteNetTable ¶
func RoutesExport ¶
func RoutesFiltered ¶
func RoutesNoExport ¶
func RoutesPrefixed ¶
func SymbolProtocols ¶
func SymbolTables ¶
func TableAndPeerRoutes ¶
func TableCount ¶
func TableRoutes ¶
func TableRoutesFiltered ¶
func ValidateCharset ¶
func ValidateLength ¶
Check if the value is not longer than a given length
func ValidateNetMaskParam ¶
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"` }
type CacheStatus ¶
type CacheStatus struct {
CachedAt TimeInfo `json:"cached_at"`
}
type ServerConfig ¶
type ServerConfig struct { AllowFrom []string `toml:"allow_from"` ModulesEnabled []string `toml:"modules_enabled"` AllowUncached bool `toml:"allow_uncached"` EnableTLS bool `toml:"enable_tls"` Crt string `toml:"crt"` Key string `toml:"key"` }
Endpoints / Server configuration
var Conf ServerConfig
Click to show internal directories.
Click to hide internal directories.