Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/andrey-vk/wdbgp
/ functions
Functions
1,274 in github.com/andrey-vk/wdbgp
⨍
Functions
1,274
◇
Types & classes
158
↓ 1 callers
Function
defaultGetMock
()
webgui/src/admin/views/__tests__/UsersPage.spec.ts:66
↓ 1 callers
Function
defaultGetMock
()
webgui/src/admin/views/__tests__/PagesSmoke.test.ts:103
↓ 1 callers
Method
degradedHandler
(w http.ResponseWriter, r *http.Request)
internal/web/server.go:208
↓ 1 callers
Method
degradedMiddleware
degradedMiddleware serves the degraded error page on all routes when the database schema version doesn't match the server version.
internal/web/server.go:198
↓ 1 callers
Function
detectLocale
()
webgui/src/plugins/i18n.ts:9
↓ 1 callers
Function
detectSystemPreference
()
webgui/src/admin/stores/theme.ts:9
↓ 1 callers
Method
doDownload
(ctx context.Context, rawURL string)
internal/feeds/feeds.go:356
↓ 1 callers
Function
encodePathAttributes
encodePathAttributes serializes a slice of path attributes into wire format.
internal/bgp/wire_encode.go:30
↓ 1 callers
Function
ensurePrefixIDs
ensurePrefixIDs upserts the given (already masked) prefixes into the prefixes dictionary and returns their ids, in batches.
internal/store/dictionaries.go:155
↓ 1 callers
Function
extractI18nKeys
(vueFiles: string[])
webgui/src/locales/__tests__/i18n.test.ts:26
↓ 1 callers
Function
feedSnapshotCounts
(ctx context.Context, tx *sql.Tx, snapshotID int64)
internal/store/snapshots.go:109
↓ 1 callers
Function
findBestMatch
findBestMatch returns the (modeID, category, service) for the original route that best contains the filtered prefix. This handles the case where rout
internal/store/routes.go:192
↓ 1 callers
Function
genCommunities
genCommunities generates communities for categories and services that don't have one yet. If existing is non-nil, it's used as the set of already-assi
internal/store/migrations/013_catalog_communities.go:43
↓ 1 callers
Method
getBytes
(rawURL string)
internal/feeds/javascript.go:255
↓ 1 callers
Function
getUserSessionID
(r *http.Request, secret string, maxAge time.Duration)
internal/web/session.go:75
↓ 1 callers
Method
handleConnection
handleConnection processes a new incoming TCP connection.
internal/bgp/speaker.go:254
↓ 1 callers
Function
hasPublicAddress
(addresses []netip.Addr)
internal/feeds/javascript.go:451
↓ 1 callers
Function
healthcheck
()
cmd/wdbgp/main.go:334
↓ 1 callers
Function
hiddenSelectedCategories
hiddenSelectedCategories returns categories the user has selected whose entries are now entirely hidden (feed disabled) — these must be preserved acro
internal/store/users.go:732
↓ 1 callers
Function
hiddenSelectedServices
hiddenSelectedServices is hiddenSelectedCategories' service-level counterpart — see its doc comment.
internal/store/users.go:777
↓ 1 callers
Function
intersectCIDRs
intersectCIDRs computes the intersection of multiple CIDR groups. Each group is a list of CIDR prefixes. The result is the set of prefixes contained i
internal/feeds/srs_cidr.go:89
↓ 1 callers
Function
isAllDigits
isAllDigits reports whether s is non-empty and consists only of ASCII digits — used to keep a legacy name-derived key from ever being mistaken for ano
internal/web/handlers_api_adapters.go:295
↓ 1 callers
Function
isDesktop
()
webgui/src/admin/layout/composables/layout.ts:72
↓ 1 callers
Function
isOpenCCKFlat
(value map[string]any)
internal/feeds/feeds.go:517
↓ 1 callers
Function
isOpenCCKFull
(value map[string]any)
internal/feeds/feeds.go:472
↓ 1 callers
Function
lastSlash
(s string)
cmd/wdbgp/main.go:370
↓ 1 callers
Function
legacyAdapterKey
legacyAdapterKey reconstructs the key that feed_adapters.key used to be auto-assigned before that column was dropped, so backup files written under th
internal/web/handlers_api_adapters.go:279
↓ 1 callers
Function
maxInt
(left, right *big.Int)
internal/web/cidr_debug.go:259
↓ 1 callers
Function
mergeAllowedHosts
mergeAllowedHosts adds host to a comma-separated hosts string if not already present.
internal/web/handlers_api_feeds.go:296
↓ 1 callers
Function
mergeHosts
mergeHosts adds host to a comma-separated hosts string if not already present.
internal/store/feeds.go:178
↓ 1 callers
Function
minInt
(left, right *big.Int)
internal/web/cidr_debug.go:252
↓ 1 callers
Function
mountModesPage
()
webgui/src/admin/views/__tests__/ModesPage.spec.ts:56
↓ 1 callers
Function
newCSRFToken
newCSRFToken returns a fresh random token for the CSRF cookie.
internal/web/middleware.go:59
↓ 1 callers
Function
newHTTPClient
(timeout time.Duration)
internal/feeds/javascript.go:379
↓ 1 callers
Function
newTestRand
(t *testing.T)
internal/prefixfilter/aggregate_test.go:11
↓ 1 callers
Function
normalizeCanonical
(rawEntries []canonicalEntry, maxEntries int)
internal/feeds/javascript.go:162
↓ 1 callers
Function
normalizeSimple
(prefixes []netip.Prefix)
internal/prefixfilter/filter.go:167
↓ 1 callers
Function
offsetAddr
(base netip.Addr, offset uint16)
internal/prefixfilter/aggregate_test.go:228
↓ 1 callers
Function
panicRecovery
panicRecovery recovers from panics and returns a 500 error
internal/web/middleware.go:233
↓ 1 callers
Function
parseCIDRs
parseCIDRs parses comma-separated CIDR strings into []netip.Prefix.
internal/web/server.go:168
↓ 1 callers
Function
parseDebugPrefix
(raw string)
internal/web/cidr_debug.go:172
↓ 1 callers
Function
parseLogicalRule
(ctx context.Context, r io.Reader, cfg *ParseSRSConfig, depth int)
internal/feeds/srs_parse.go:112
↓ 1 callers
Function
parseOpenCCKFlat
(value map[string]any, lookup map[string][]string, defaultCategory string)
internal/feeds/feeds.go:532
↓ 1 callers
Function
parseOpenCCKFull
(payload []byte)
internal/feeds/feeds.go:491
↓ 1 callers
Function
parseUserSessionToken
(secret, value string, maxAge time.Duration)
internal/web/session.go:83
↓ 1 callers
Function
prefixContains
(parent, child netip.Prefix)
internal/store/routes_test.go:267
↓ 1 callers
Function
prefixToRange
prefixToRange returns the inclusive [network address, broadcast address] range covered by a masked prefix, as big.Int for uniform 32/128-bit math.
internal/prefixfilter/aggregate.go:84
↓ 1 callers
Function
proxyHosts
(proxy func(*http.Request) (*url.URL, error))
internal/feeds/javascript.go:436
↓ 1 callers
Function
purgeLoop
purgeLoop periodically removes old metric snapshots based on metrics_history_days.
cmd/wdbgp/main.go:179
↓ 1 callers
Function
rangeToPrefixes
rangeToPrefixes decomposes an inclusive [start, end] address range into the minimal list of properly-aligned CIDR blocks that exactly cover it.
internal/prefixfilter/aggregate.go:95
↓ 1 callers
Function
rangeWithinBase
(t *testing.T, base netip.Addr, p netip.Prefix)
internal/prefixfilter/aggregate_test.go:235
↓ 1 callers
Function
readIPSetAsCIDRs
readIPSetAsCIDRs reads an IP set from an SRS rule and returns CIDR strings.
internal/feeds/srs_cidr.go:14
↓ 1 callers
Function
readRouteFilters
(ctx context.Context, db queryer, query string, args ...any)
internal/store/routes.go:442
↓ 1 callers
Method
reset
reset resets the circuit breaker (internal, assumes lock is held).
internal/retry/circuitbreaker.go:230
↓ 1 callers
Method
resetSetting
resetSetting calls Reset on the typed setting.
internal/web/handlers_api_settings.go:408
↓ 1 callers
Function
resolveFresh
()
webgui/src/user/views/__tests__/UserPage.spec.ts:343
↓ 1 callers
Function
resolveStale
()
webgui/src/user/views/__tests__/UserPage.spec.ts:342
↓ 1 callers
Function
routePrefixSet
(routes []Route)
internal/bgp/manager.go:582
↓ 1 callers
Function
routesEqual
(a, b []Route)
internal/bgp/manager.go:552
↓ 1 callers
Function
sameStringSet
(a, b []string)
internal/web/handlers_api_users.go:56
↓ 1 callers
Function
securityHeaders
securityHeaders adds security headers to HTTP responses
internal/web/middleware.go:200
↓ 1 callers
Method
seedBuiltInAdapters
(ctx context.Context)
internal/store/feed_adapters.go:185
↓ 1 callers
Function
serve
(s *settings.Settings, db *store.Store)
cmd/wdbgp/main.go:101
↓ 1 callers
Function
serveDegraded
serveDegraded starts an HTTP server that only shows the DB version mismatch page.
cmd/wdbgp/main.go:205
↓ 1 callers
Function
setMode
(newMode: ThemeMode)
webgui/src/admin/stores/theme.ts:24
↓ 1 callers
Method
setSetting
setSetting parses raw JSON and calls the typed Set method on the setting.
internal/web/handlers_api_settings.go:90
↓ 1 callers
Function
setTCPMD5OnConn
setTCPMD5OnConn sets the TCP MD5 signature on an already-connected socket. Used for passive (accepted) connections. Skips loopback addresses because m
internal/bgp/md5.go:21
↓ 1 callers
Function
setUserSessionCookie
(w http.ResponseWriter, userID int64, secret string, maxAge int, secure bool)
internal/web/session.go:52
↓ 1 callers
Function
setupUserTestStore
(t *testing.T)
internal/web/handlers_api_users_test.go:16
↓ 1 callers
Function
signature
(userIDs []int64)
internal/bgp/manager.go:526
↓ 1 callers
Function
skipItemPayload
skipItemPayload skips the payload of a single SRS item by type.
internal/feeds/srs_skip.go:269
↓ 1 callers
Function
sortRoutes
sortRoutes sorts routes by prefix string for stable comparison.
internal/bgp/manager.go:546
↓ 1 callers
Method
statusAuthorized
statusAuthorized checks whether the request is authorized to access /status. Authorization is granted by IP whitelist or Bearer token.
internal/web/handlers_health.go:133
↓ 1 callers
Method
store
store returns the Store from the first non-nil setting field. All fields share the same store, so we just pick the first one.
internal/settings/settings.go:469
↓ 1 callers
Function
stubPrimeVueComponents
()
webgui/src/admin/views/__tests__/UsersPage.spec.ts:51
↓ 1 callers
Function
stubPrimeVueComponents
()
webgui/src/admin/views/__tests__/ModesPage.spec.ts:46
↓ 1 callers
Method
sweepLocked
sweepLocked removes IPs with no timestamps left inside the window. Callers must hold rl.mu. No-op if less than a full window has passed since the last
internal/web/middleware.go:144
↓ 1 callers
Function
toCatalogEntries
toCatalogEntries converts adapter entries to the store's external catalog-entry form; the store resolves names and CIDRs onto its dictionary tables in
internal/feeds/feeds.go:314
↓ 1 callers
Function
trailingZeroBits
trailingZeroBits returns the number of trailing zero bits in v, treated as a fixed-width bitLen-bit unsigned integer (v == 0 is handled by the caller,
internal/prefixfilter/aggregate.go:136
↓ 1 callers
Method
tryRestore
(ctx context.Context, applied []int)
internal/store/store.go:151
↓ 1 callers
Function
uniqueServices
(values []ServiceKey)
internal/store/users.go:835
↓ 1 callers
Function
uniqueStrings
(values []string)
internal/store/users.go:823
↓ 1 callers
Function
v032SeedDictionaries
v032SeedDictionaries fills categories and services from every table that still carries the old TEXT columns. Selections and communities are included a
internal/store/migrations/032_normalize_catalog.go:162
↓ 1 callers
Function
v033FilterModeInt
v033FilterModeInt folds the old (filter_mode TEXT, filter_override_enabled) pair into the integer enum, replicating store.normalizeFilterMode: a valid
internal/store/migrations/033_binary_users.go:349
↓ 1 callers
Function
v033RebuildUserNetworks
(ctx context.Context, db *sql.DB)
internal/store/migrations/033_binary_users.go:177
↓ 1 callers
Function
v033RebuildUserRouteFilters
(ctx context.Context, db *sql.DB)
internal/store/migrations/033_binary_users.go:237
↓ 1 callers
Function
v033RebuildUsers
(ctx context.Context, db *sql.DB)
internal/store/migrations/033_binary_users.go:82
↓ 1 callers
Function
v033WebAuthInt
(mode string)
internal/store/migrations/033_binary_users.go:362
↓ 1 callers
Function
v034Rebuild
v034Rebuild is the migration 32 state machine for column-presence detected tables.
internal/store/migrations/034_epoch_timestamps_drop_mode_key.go:135
↓ 1 callers
Function
v035ConvertJSON
(ctx context.Context, db *sql.DB)
internal/store/migrations/035_feed_snapshot_counts.go:93
↓ 1 callers
Function
validSession
(secret, value string, sessionMaxAge time.Duration)
internal/web/session.go:24
↓ 1 callers
Method
validateSettingKey
validateSettingKey reports whether setSetting/resetSetting would accept this key/value, without calling either — mirrors setSetting's case list exactl
internal/web/handlers_api_settings.go:186
↓ 1 callers
Function
walkVueFiles
(dir: string)
webgui/src/locales/__tests__/i18n.test.ts:10
↓ 1 callers
Function
webAuthFromInt
(value int)
internal/store/users.go:85
Method
AddPeer
(context.Context, store.User)
internal/web/server_test.go:87
Function
AlwaysRetry
AlwaysRetry returns true for any error (except context cancellation).
internal/retry/retry.go:55
Function
BenchmarkApplyManyDeny
(b *testing.B)
internal/prefixfilter/bench_test.go:56
Function
BenchmarkIntersectLarge
(b *testing.B)
internal/prefixfilter/bench_test.go:80
Function
BenchmarkNormalizeOverlapping
(b *testing.B)
internal/prefixfilter/bench_test.go:30
Function
BenchmarkNormalizeRandom
(b *testing.B)
internal/prefixfilter/bench_test.go:9
← previous
next →
501–600 of 1,274, ranked by callers