MCPcopy Create free account

hub / github.com/andrey-vk/wdbgp / functions

Functions1,274 in github.com/andrey-vk/wdbgp

↓ 1 callersFunctiondefaultGetMock
()
webgui/src/admin/views/__tests__/UsersPage.spec.ts:66
↓ 1 callersFunctiondefaultGetMock
()
webgui/src/admin/views/__tests__/PagesSmoke.test.ts:103
↓ 1 callersMethoddegradedHandler
(w http.ResponseWriter, r *http.Request)
internal/web/server.go:208
↓ 1 callersMethoddegradedMiddleware
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 callersFunctiondetectLocale
()
webgui/src/plugins/i18n.ts:9
↓ 1 callersFunctiondetectSystemPreference
()
webgui/src/admin/stores/theme.ts:9
↓ 1 callersMethoddoDownload
(ctx context.Context, rawURL string)
internal/feeds/feeds.go:356
↓ 1 callersFunctionencodePathAttributes
encodePathAttributes serializes a slice of path attributes into wire format.
internal/bgp/wire_encode.go:30
↓ 1 callersFunctionensurePrefixIDs
ensurePrefixIDs upserts the given (already masked) prefixes into the prefixes dictionary and returns their ids, in batches.
internal/store/dictionaries.go:155
↓ 1 callersFunctionextractI18nKeys
(vueFiles: string[])
webgui/src/locales/__tests__/i18n.test.ts:26
↓ 1 callersFunctionfeedSnapshotCounts
(ctx context.Context, tx *sql.Tx, snapshotID int64)
internal/store/snapshots.go:109
↓ 1 callersFunctionfindBestMatch
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 callersFunctiongenCommunities
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 callersMethodgetBytes
(rawURL string)
internal/feeds/javascript.go:255
↓ 1 callersFunctiongetUserSessionID
(r *http.Request, secret string, maxAge time.Duration)
internal/web/session.go:75
↓ 1 callersMethodhandleConnection
handleConnection processes a new incoming TCP connection.
internal/bgp/speaker.go:254
↓ 1 callersFunctionhasPublicAddress
(addresses []netip.Addr)
internal/feeds/javascript.go:451
↓ 1 callersFunctionhealthcheck
()
cmd/wdbgp/main.go:334
↓ 1 callersFunctionhiddenSelectedCategories
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 callersFunctionhiddenSelectedServices
hiddenSelectedServices is hiddenSelectedCategories' service-level counterpart — see its doc comment.
internal/store/users.go:777
↓ 1 callersFunctionintersectCIDRs
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 callersFunctionisAllDigits
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 callersFunctionisDesktop
()
webgui/src/admin/layout/composables/layout.ts:72
↓ 1 callersFunctionisOpenCCKFlat
(value map[string]any)
internal/feeds/feeds.go:517
↓ 1 callersFunctionisOpenCCKFull
(value map[string]any)
internal/feeds/feeds.go:472
↓ 1 callersFunctionlastSlash
(s string)
cmd/wdbgp/main.go:370
↓ 1 callersFunctionlegacyAdapterKey
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 callersFunctionmaxInt
(left, right *big.Int)
internal/web/cidr_debug.go:259
↓ 1 callersFunctionmergeAllowedHosts
mergeAllowedHosts adds host to a comma-separated hosts string if not already present.
internal/web/handlers_api_feeds.go:296
↓ 1 callersFunctionmergeHosts
mergeHosts adds host to a comma-separated hosts string if not already present.
internal/store/feeds.go:178
↓ 1 callersFunctionminInt
(left, right *big.Int)
internal/web/cidr_debug.go:252
↓ 1 callersFunctionmountModesPage
()
webgui/src/admin/views/__tests__/ModesPage.spec.ts:56
↓ 1 callersFunctionnewCSRFToken
newCSRFToken returns a fresh random token for the CSRF cookie.
internal/web/middleware.go:59
↓ 1 callersFunctionnewHTTPClient
(timeout time.Duration)
internal/feeds/javascript.go:379
↓ 1 callersFunctionnewTestRand
(t *testing.T)
internal/prefixfilter/aggregate_test.go:11
↓ 1 callersFunctionnormalizeCanonical
(rawEntries []canonicalEntry, maxEntries int)
internal/feeds/javascript.go:162
↓ 1 callersFunctionnormalizeSimple
(prefixes []netip.Prefix)
internal/prefixfilter/filter.go:167
↓ 1 callersFunctionoffsetAddr
(base netip.Addr, offset uint16)
internal/prefixfilter/aggregate_test.go:228
↓ 1 callersFunctionpanicRecovery
panicRecovery recovers from panics and returns a 500 error
internal/web/middleware.go:233
↓ 1 callersFunctionparseCIDRs
parseCIDRs parses comma-separated CIDR strings into []netip.Prefix.
internal/web/server.go:168
↓ 1 callersFunctionparseDebugPrefix
(raw string)
internal/web/cidr_debug.go:172
↓ 1 callersFunctionparseLogicalRule
(ctx context.Context, r io.Reader, cfg *ParseSRSConfig, depth int)
internal/feeds/srs_parse.go:112
↓ 1 callersFunctionparseOpenCCKFlat
(value map[string]any, lookup map[string][]string, defaultCategory string)
internal/feeds/feeds.go:532
↓ 1 callersFunctionparseOpenCCKFull
(payload []byte)
internal/feeds/feeds.go:491
↓ 1 callersFunctionparseUserSessionToken
(secret, value string, maxAge time.Duration)
internal/web/session.go:83
↓ 1 callersFunctionprefixContains
(parent, child netip.Prefix)
internal/store/routes_test.go:267
↓ 1 callersFunctionprefixToRange
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 callersFunctionproxyHosts
(proxy func(*http.Request) (*url.URL, error))
internal/feeds/javascript.go:436
↓ 1 callersFunctionpurgeLoop
purgeLoop periodically removes old metric snapshots based on metrics_history_days.
cmd/wdbgp/main.go:179
↓ 1 callersFunctionrangeToPrefixes
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 callersFunctionrangeWithinBase
(t *testing.T, base netip.Addr, p netip.Prefix)
internal/prefixfilter/aggregate_test.go:235
↓ 1 callersFunctionreadIPSetAsCIDRs
readIPSetAsCIDRs reads an IP set from an SRS rule and returns CIDR strings.
internal/feeds/srs_cidr.go:14
↓ 1 callersFunctionreadRouteFilters
(ctx context.Context, db queryer, query string, args ...any)
internal/store/routes.go:442
↓ 1 callersMethodreset
reset resets the circuit breaker (internal, assumes lock is held).
internal/retry/circuitbreaker.go:230
↓ 1 callersMethodresetSetting
resetSetting calls Reset on the typed setting.
internal/web/handlers_api_settings.go:408
↓ 1 callersFunctionresolveFresh
()
webgui/src/user/views/__tests__/UserPage.spec.ts:343
↓ 1 callersFunctionresolveStale
()
webgui/src/user/views/__tests__/UserPage.spec.ts:342
↓ 1 callersFunctionroutePrefixSet
(routes []Route)
internal/bgp/manager.go:582
↓ 1 callersFunctionroutesEqual
(a, b []Route)
internal/bgp/manager.go:552
↓ 1 callersFunctionsameStringSet
(a, b []string)
internal/web/handlers_api_users.go:56
↓ 1 callersFunctionsecurityHeaders
securityHeaders adds security headers to HTTP responses
internal/web/middleware.go:200
↓ 1 callersMethodseedBuiltInAdapters
(ctx context.Context)
internal/store/feed_adapters.go:185
↓ 1 callersFunctionserve
(s *settings.Settings, db *store.Store)
cmd/wdbgp/main.go:101
↓ 1 callersFunctionserveDegraded
serveDegraded starts an HTTP server that only shows the DB version mismatch page.
cmd/wdbgp/main.go:205
↓ 1 callersFunctionsetMode
(newMode: ThemeMode)
webgui/src/admin/stores/theme.ts:24
↓ 1 callersMethodsetSetting
setSetting parses raw JSON and calls the typed Set method on the setting.
internal/web/handlers_api_settings.go:90
↓ 1 callersFunctionsetTCPMD5OnConn
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 callersFunctionsetUserSessionCookie
(w http.ResponseWriter, userID int64, secret string, maxAge int, secure bool)
internal/web/session.go:52
↓ 1 callersFunctionsetupUserTestStore
(t *testing.T)
internal/web/handlers_api_users_test.go:16
↓ 1 callersFunctionsignature
(userIDs []int64)
internal/bgp/manager.go:526
↓ 1 callersFunctionskipItemPayload
skipItemPayload skips the payload of a single SRS item by type.
internal/feeds/srs_skip.go:269
↓ 1 callersFunctionsortRoutes
sortRoutes sorts routes by prefix string for stable comparison.
internal/bgp/manager.go:546
↓ 1 callersMethodstatusAuthorized
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 callersMethodstore
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 callersFunctionstubPrimeVueComponents
()
webgui/src/admin/views/__tests__/UsersPage.spec.ts:51
↓ 1 callersFunctionstubPrimeVueComponents
()
webgui/src/admin/views/__tests__/ModesPage.spec.ts:46
↓ 1 callersMethodsweepLocked
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 callersFunctiontoCatalogEntries
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 callersFunctiontrailingZeroBits
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 callersMethodtryRestore
(ctx context.Context, applied []int)
internal/store/store.go:151
↓ 1 callersFunctionuniqueServices
(values []ServiceKey)
internal/store/users.go:835
↓ 1 callersFunctionuniqueStrings
(values []string)
internal/store/users.go:823
↓ 1 callersFunctionv032SeedDictionaries
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 callersFunctionv033FilterModeInt
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 callersFunctionv033RebuildUserNetworks
(ctx context.Context, db *sql.DB)
internal/store/migrations/033_binary_users.go:177
↓ 1 callersFunctionv033RebuildUserRouteFilters
(ctx context.Context, db *sql.DB)
internal/store/migrations/033_binary_users.go:237
↓ 1 callersFunctionv033RebuildUsers
(ctx context.Context, db *sql.DB)
internal/store/migrations/033_binary_users.go:82
↓ 1 callersFunctionv033WebAuthInt
(mode string)
internal/store/migrations/033_binary_users.go:362
↓ 1 callersFunctionv034Rebuild
v034Rebuild is the migration 32 state machine for column-presence detected tables.
internal/store/migrations/034_epoch_timestamps_drop_mode_key.go:135
↓ 1 callersFunctionv035ConvertJSON
(ctx context.Context, db *sql.DB)
internal/store/migrations/035_feed_snapshot_counts.go:93
↓ 1 callersFunctionvalidSession
(secret, value string, sessionMaxAge time.Duration)
internal/web/session.go:24
↓ 1 callersMethodvalidateSettingKey
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 callersFunctionwalkVueFiles
(dir: string)
webgui/src/locales/__tests__/i18n.test.ts:10
↓ 1 callersFunctionwebAuthFromInt
(value int)
internal/store/users.go:85
MethodAddPeer
(context.Context, store.User)
internal/web/server_test.go:87
FunctionAlwaysRetry
AlwaysRetry returns true for any error (except context cancellation).
internal/retry/retry.go:55
FunctionBenchmarkApplyManyDeny
(b *testing.B)
internal/prefixfilter/bench_test.go:56
FunctionBenchmarkIntersectLarge
(b *testing.B)
internal/prefixfilter/bench_test.go:80
FunctionBenchmarkNormalizeOverlapping
(b *testing.B)
internal/prefixfilter/bench_test.go:30
FunctionBenchmarkNormalizeRandom
(b *testing.B)
internal/prefixfilter/bench_test.go:9
← previousnext →501–600 of 1,274, ranked by callers