MCPcopy Create free account

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

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

↓ 4 callersMethodHasDBValue
(ctx context.Context)
internal/settings/setting.go:35
↓ 4 callersMethodModeFeedCounts
ModeFeedCounts returns a map of mode_id→feed count.
internal/store/modes.go:99
↓ 4 callersMethodModeFeeds
ModeFeeds returns all feeds associated with a catalog mode.
internal/store/modes.go:123
↓ 4 callersMethodPeerConfig
()
internal/bgp/peer_fsm.go:56
↓ 4 callersMethodPrefixCounts
PrefixCounts returns the number of distinct IPv4 and IPv6 CIDR prefixes for each service in each category.
internal/store/catalog.go:130
↓ 4 callersMethodSerialize
Serialize encodes the KEEPALIVE message to wire format (just header).
internal/bgp/wire_encode.go:195
↓ 4 callersMethodSetDegraded
SetDegraded enables degraded mode with version mismatch info.
internal/web/server.go:191
↓ 4 callersFunctionSetUserModeSelection
( ctx context.Context, tx *sql.Tx, userID int64, modeID int64, categories []string, services []ServiceKe
internal/store/users.go:603
↓ 4 callersMethodString
()
cmd/wdbgp/sync_loop_test.go:36
↓ 4 callersFunctionToggleSelectedService
ToggleSelectedService adds or removes a single service selection.
internal/store/users.go:672
↓ 4 callersMethodUpdateFeedAdapter
(ctx context.Context, adapter FeedAdapter)
internal/store/feed_adapters.go:389
↓ 4 callersMethodWithContext
WithContext adds context to the error.
internal/errors/errors.go:63
↓ 4 callersFunctionaddFilteredTestUser
(t *testing.T, s *Store, override bool)
internal/store/routes_test.go:244
↓ 4 callersMethodapiDashboard
apiDashboard handles GET /api/admin/dashboard.
internal/web/handlers_api_dashboard.go:56
↓ 4 callersMethodapiModeCommunitiesGet
--- Communities handlers --- apiModeCommunitiesGet handles GET /api/admin/modes/{id}/communities.
internal/web/handlers_api_modes.go:328
↓ 4 callersMethodapiUsersList
apiUsersList handles GET /api/admin/users.
internal/web/handlers_api_users.go:162
↓ 4 callersMethodbuildPeerConfigs
buildPeerConfigs converts m.peerConfigs (store.User) to []PeerConfig. Returns an error if any peer is invalid (e.g., IPv6 peer with no LocalAddressV6)
internal/bgp/manager.go:385
↓ 4 callersFunctioncloseRows
(rows *sql.Rows)
internal/store/dictionaries.go:12
↓ 4 callersFunctioncoveragePercentage
(target netip.Prefix, ranges []addressRange)
internal/web/cidr_debug.go:209
↓ 4 callersFunctionenvOnlyError
envOnlyError reports that a setting has no dbKey — it's env-only by design (see the dbKey="" convention documented on Settings) — and so can never be
internal/settings/setting.go:219
↓ 4 callersFunctionfeedToJSON
(f store.Feed)
internal/web/handlers_api_feeds.go:29
↓ 4 callersFunctionfilterModeFromInt
(value int)
internal/store/users.go:61
↓ 4 callersFunctionfilterModeToInt
users.filter_mode and users.web_auth are INTEGER enums in the database (schema >= 33); the Go API keeps the string forms. The mappings below are the s
internal/store/users.go:50
↓ 4 callersFunctionisActiveWebAuth
isActiveWebAuth reports whether a web_auth mode uses IP-based resolution for identifying the user — everything except "login". Must name the same thre
internal/web/handlers_api_users.go:29
↓ 4 callersFunctionisValidIP
isValidIP returns true if s is a valid IPv4 or IPv6 address.
internal/web/handlers_api_users.go:1179
↓ 4 callersFunctionmountHint
(targetId: string, activePopoverId: Ref<string | null>, hideActivePopover: Ref<(() => void) | null>)
webgui/src/components/__tests__/FieldHint.test.ts:15
↓ 4 callersFunctionnewTestServer
============================================================================= Test helpers ===========================================================
internal/web/server_spa_test.go:20
↓ 4 callersFunctionprefixRange
(prefix netip.Prefix)
internal/web/cidr_debug.go:187
↓ 4 callersMethodsendRoutes
(conn net.Conn)
internal/bgp/peer_routes.go:12
↓ 4 callersFunctionstubPrimeVueComponents
()
webgui/src/admin/views/__tests__/KeyBehaviors.test.ts:72
↓ 4 callersFunctiontestSettings
()
internal/feeds/feeds_test.go:24
↓ 4 callersFunctionwrapMessage
wrapMessage creates a complete BGP message with header and body.
internal/bgp/wire_encode.go:81
↓ 3 callersMethodAddFeedWithMode
AddFeedWithMode is AddFeed plus a catalog_mode_feeds assignment, both in the same transaction — modeID <= 0 skips the assignment. Used instead of AddF
internal/store/feeds.go:110
↓ 3 callersFunctionDecodeAddr
DecodeAddr converts a stored BLOB back to an address.
internal/store/ipcodec.go:20
↓ 3 callersMethodDeleteFeedAdapter
DeleteFeedAdapter deletes an adapter. Fails if any feeds reference it (FK constraint).
internal/store/feed_adapters.go:376
↓ 3 callersMethodGetOrCreate
GetOrCreate gets an existing circuit breaker or creates a new one.
internal/retry/circuitbreaker.go:253
↓ 3 callersFunctionNormalizeRouteFilters
(filters RouteFilters)
internal/store/routes.go:500
↓ 3 callersFunctionParseSRS
ParseSRS parses raw sing-box rule-set binary (.srs) data and returns canonical entries. cfgJSON controls what data to extract, e.g. {"cidrs":true}. Wh
internal/feeds/srs.go:64
↓ 3 callersFunctionReplaceCatalogEntries
ReplaceCatalogEntries deletes a feed's catalog entries and inserts the given ones, resolving names and CIDRs through the dictionaries in batches. Inva
internal/store/dictionaries.go:74
↓ 3 callersMethodResetFeedAdapter
(ctx context.Context, id int64)
internal/store/feed_adapters.go:280
↓ 3 callersMethodSaveSettings
SaveSettings upserts multiple settings in a transaction. Each entry in the map is a key→value pair.
internal/store/settings.go:40
↓ 3 callersMethodSetUserCatalogMode
( ctx context.Context, userID int64, modeID int64, requireEditable bool, )
internal/store/users.go:881
↓ 3 callersMethodStats
(ctx context.Context)
internal/store/store.go:580
↓ 3 callersMethodStatus
Status reports whether a BGP speaker is currently running, and the error from the last failed Start/ReloadPeers attempt (nil when running is true).
internal/bgp/manager.go:112
↓ 3 callersMethodSyncOne
SyncOne synchronizes one feed, acquiring the per-feed lock internally. Returns the adapter revision that was actually used during synchronization.
internal/feeds/feeds.go:203
↓ 3 callersFunctionTransientError
TransientError returns true for errors that are likely transient.
internal/retry/retry.go:60
↓ 3 callersMethodUpdatePeer
(ctx context.Context, user store.User)
internal/bgp/manager.go:249
↓ 3 callersMethodUpdateUser
(ctx context.Context, user User)
internal/store/users.go:419
↓ 3 callersFunctionValidateAdapterSource
(source string, maxBytes int)
internal/feeds/javascript.go:28
↓ 3 callersMethodWithdraw
Withdraw removes prefixes from a specific peer.
internal/bgp/speaker.go:217
↓ 3 callersMethodWriteHeader
(code int)
internal/web/server.go:321
↓ 3 callersMethodapiDebugCIDR
apiDebugCIDR handles GET /api/admin/debug?cidr=...&mode=...
internal/web/handlers_api_debug.go:12
↓ 3 callersMethodapiModesDelete
apiModesDelete handles DELETE /api/admin/modes/{id}.
internal/web/handlers_api_modes.go:189
↓ 3 callersMethodapiModesGet
apiModesGet handles GET /api/admin/modes/{id}.
internal/web/handlers_api_modes.go:60
↓ 3 callersMethodapiUserCredentialsSet
apiUserCredentialsSet handles PUT /api/admin/users/{id}/credentials.
internal/web/handlers_api_users.go:813
↓ 3 callersFunctionapplyResponse
(data: BGPStatusResponse)
webgui/src/admin/stores/bgpStatus.ts:19
↓ 3 callersFunctionassertMigration32Result
(t *testing.T, s *Store)
internal/store/032_normalize_catalog_test.go:46
↓ 3 callersFunctionbuildSettings
()
webgui/src/admin/views/__tests__/SettingsPage.spec.ts:22
↓ 3 callersFunctioncredentialsToJSON
(creds []store.UserCredential)
internal/web/handlers_api_users.go:122
↓ 3 callersFunctionenvBool
(name string, fallback bool)
cmd/wdbgp/main.go:355
↓ 3 callersFunctionexistingColumns
existingColumns returns the set of column names currently present on table, via the pragma_table_info table-valued function. Migrations that condition
internal/store/migrations/columns.go:31
↓ 3 callersFunctionfirstFeedID
(t *testing.T, s *Store)
internal/store/dictionaries_test.go:10
↓ 3 callersFunctionflushPromises
()
webgui/src/admin/layout/__tests__/BGPStatusBanner.test.ts:125
↓ 3 callersFunctionformatBool
(b bool)
internal/settings/settings_test.go:559
↓ 3 callersFunctioninsertRawNetwork
insertRawNetwork inserts a network row directly, bypassing replaceNetworks' normalization/validation — for simulating stale or vestigial data (e.g. a
internal/store/networks_overlap_test.go:14
↓ 3 callersFunctioninsertStaleNetwork
insertStaleNetwork stores a network row directly (bypassing the API and store validation) in the post-33 binary shape, to simulate data left over from
internal/web/handlers_api_users_test.go:2036
↓ 3 callersFunctionisPublicAddress
(address netip.Addr)
internal/feeds/javascript.go:460
↓ 3 callersMethodlogAdminAction
logAdminAction logs security-relevant admin actions
internal/web/handlers_health.go:173
↓ 3 callersMethodmainLoop
mainLoop handles incoming messages, periodic keepalives, and route updates for an established BGP session.
internal/bgp/peer_fsm.go:277
↓ 3 callersFunctionmergeRouteFilters
(global, user RouteFilters)
internal/store/routes.go:431
↓ 3 callersFunctionnewAdapterRunner
( ctx context.Context, client *http.Client, feedURL string, additionalHosts string, restrictHosts bool,
internal/feeds/javascript.go:198
↓ 3 callersFunctionnormalizeFilterMode
(mode string, override bool)
internal/store/routes.go:420
↓ 3 callersFunctionnormalizedBuiltInSource
(source string)
internal/store/feed_adapters.go:309
↓ 3 callersFunctionparseCanonical
(items []any)
internal/feeds/feeds.go:444
↓ 3 callersFunctionparseLocale
(value string)
internal/web/i18n.go:70
↓ 3 callersFunctionparseLogFormat
Parse log format from string
internal/logging/logging.go:171
↓ 3 callersFunctionparseLogLevel
Parse log level from string
internal/logging/logging.go:155
↓ 3 callersFunctionpreMigration31Schema
(db *sql.DB)
internal/store/031_drop_adapter_key_test.go:14
↓ 3 callersFunctionpruneAdapterBackups
(adapter store.FeedAdapter, dir string, max int)
internal/web/handlers_api_adapters.go:316
↓ 3 callersFunctionpublicDialContext
( lookup lookupNetIPFunc, dial dialContextFunc, proxies map[string]bool, )
internal/feeds/javascript.go:400
↓ 3 callersFunctionreplaceEntries
(t *testing.T, s *Store, feedID int64, entries []CatalogEntry)
internal/store/dictionaries_test.go:19
↓ 3 callersMethodserveSpaFile
(w http.ResponseWriter, r *http.Request, name string)
internal/web/server.go:289
↓ 3 callersFunctionsetTCPMD5OnFd
setTCPMD5OnFd sets the TCP MD5 signature option on a raw file descriptor. Skips loopback addresses (see setTCPMD5OnConn).
internal/bgp/md5.go:146
↓ 3 callersFunctionskipIPSet
--- skip helpers for items we don't need ---
internal/feeds/srs_skip.go:12
↓ 3 callersFunctionskipStringArray
(ctx context.Context, r io.Reader)
internal/feeds/srs_skip.go:57
↓ 3 callersFunctionsortCoverage
(items []coverageItem)
internal/web/cidr_debug.go:266
↓ 3 callersFunctionsplitNewlines
(value string)
internal/store/routes.go:272
↓ 3 callersFunctiontableExists
(ctx context.Context, tx *sql.Tx, name string)
internal/store/migrations/029_filter_settings.go:48
↓ 3 callersFunctiontranslate
(lang locale, key string)
internal/web/i18n.go:31
↓ 3 callersFunctionuserSessionToken
(secret string, userID int64)
internal/web/session.go:64
↓ 3 callersFunctionv032Rebuild
v032Rebuild applies the migration 31 per-table state machine, extended for tables that may not exist at all on very old databases: - table has oldCol
internal/store/migrations/032_normalize_catalog.go:219
↓ 3 callersFunctionv033TableEmpty
(ctx context.Context, db *sql.DB, table string)
internal/store/migrations/033_binary_users.go:340
↓ 3 callersFunctionv033TableState
v033TableState resolves the per-table resume point. It returns v033NeedsCopy when the caller must run its copy loop and finish the DROP/RENAME; v033Do
internal/store/migrations/033_binary_users.go:305
↓ 3 callersFunctionvalidCSRFRequest
validCSRFRequest reports whether a mutating request carries a CSRF header that matches its CSRF cookie. Safe methods never mutate state and are exempt
internal/web/middleware.go:96
↓ 3 callersMethodvalidateURL
(parsed *url.URL)
internal/feeds/javascript.go:342
↓ 2 callersMethodAcceptWithOpen
AcceptWithOpen handles a passive connection with a pre-read OPEN message.
internal/bgp/peer_fsm.go:377
↓ 2 callersMethodAddFeedToMode
(ctx context.Context, modeID, feedID int64)
internal/store/modes.go:158
↓ 2 callersFunctionAppendCatalogEntries
AppendCatalogEntries inserts catalog entries for a feed without touching its existing rows — ReplaceCatalogEntries' non-destructive counterpart.
internal/store/dictionaries.go:84
↓ 2 callersMethodCatalog
(ctx context.Context)
internal/store/catalog.go:17
↓ 2 callersMethodCountSelectionPrefixes
CountSelectionPrefixes returns the number of unique IPv4 and IPv6 prefixes that would be announced for a single user after applying their route filter
internal/store/catalog.go:255
← previousnext →201–300 of 1,274, ranked by callers