MCPcopy Create free account

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

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

FunctionTestUserBGPPasswordToggle
============================================================================= TestUserBGPPasswordToggle — 4-way BGP password enable/disable logic ====
internal/web/handlers_api_users_test.go:1637
FunctionTestUserByIPFallsBackWhenBestMatchIsDisabled
TestUserByIPFallsBackWhenBestMatchIsDisabled — a disabled user's leftover network must never shadow an enabled user's overlapping-but-broader network.
internal/store/users_by_ip_test.go:92
FunctionTestUserByIPIgnoresLoginModeNetworks
(t *testing.T)
internal/store/users_by_ip_test.go:9
FunctionTestUserByIPStillPrefersMoreSpecificActiveNetwork
(t *testing.T)
internal/store/users_by_ip_test.go:42
FunctionTestUserCannotChangeCatalogModeWithoutPermission
(t *testing.T)
internal/store/catalog_test.go:101
FunctionTestUserLoginSessionCookieSentinel
============================================================================= TestUserLoginSessionCookieSentinel — session_max_age=0 must produce a br
internal/web/handlers_api_user_test.go:218
FunctionTestUserLogoutCookiesSecureBehindProxy
(t *testing.T)
internal/web/handlers_api_user_test.go:184
FunctionTestUserMeReturnsLowercaseFilterKeys
============================================================================= TestUserMeReturnsLowercaseFilterKeys — apiUserMe embeds store.RouteFilte
internal/web/handlers_api_user_test.go:373
FunctionTestUserSaveFiltersRejectsInvalidCIDR
============================================================================= TestUserSaveFiltersRejectsInvalidCIDR — apiUserSaveFilters must not pers
internal/web/handlers_api_user_test.go:332
FunctionTestUserSaveSelectionsPreservesHidden
============================================================================= TestUserSaveSelectionsPreservesHidden — when a feed is disabled, its cat
internal/web/handlers_api_user_test.go:425
FunctionTestUserSwitchModeSurfacesReconcileFailure
============================================================================= TestUserSwitchModeSurfacesReconcileFailure — apiUserSwitchMode must not
internal/web/handlers_api_user_test.go:276
FunctionTestUsersCRUD
============================================================================= TestUsersCRUD — create, read, update, delete lifecycle =================
internal/web/handlers_api_users_test.go:71
FunctionTestUsersCreateAnyModeAllowsEmptyNetworks
============================================================================= TestUsersCreateAnyModeAllowsEmptyNetworks — web_auth="any" authenticates
internal/web/handlers_api_users_test.go:346
FunctionTestUsersCreateBothModeRequiresNetworks
TestUsersCreateBothModeRequiresNetworks confirms "both" is not accidentally exempted alongside "any" — it genuinely needs IP match.
internal/web/handlers_api_users_test.go:361
FunctionTestUsersCreateRejectsDisabledCatalogModeID
(t *testing.T)
internal/web/handlers_api_users_test.go:456
FunctionTestUsersCreateRejectsNonexistentCatalogModeID
============================================================================= TestUsersCreate/UpdateRejects*CatalogModeID — apiUsersCreate/apiUsersUpd
internal/web/handlers_api_users_test.go:443
FunctionTestUsersCreateValidation
============================================================================= TestUsersCreateValidation — required fields ============================
internal/web/handlers_api_users_test.go:296
FunctionTestUsersCreateWithNetworks
============================================================================= TestUsersCreateWithNetworks — POST with networks array =================
internal/web/handlers_api_users_test.go:248
FunctionTestUsersCreateWithPassword
============================================================================= TestUsersCreateWithPassword — POST with bgp_password ===================
internal/web/handlers_api_users_test.go:193
FunctionTestUsersCredentialsLifecycle
============================================================================= TestUsersCredentialsLifecycle — credential management ==================
internal/web/handlers_api_users_test.go:636
FunctionTestUsersListEmpty
============================================================================= TestUsersListEmpty — GET /api/admin/users with empty DB ================
internal/web/handlers_api_users_test.go:46
FunctionTestUsersNotFound
============================================================================= TestUsersNotFound — 404 cases ==========================================
internal/web/handlers_api_users_test.go:840
FunctionTestUsersPartialUpdateDoubleToggleNoPassword
============================================================================= TestUsersPartialUpdateDoubleToggleNoPassword — toggle enabled twice on u
internal/web/handlers_api_users_test.go:1310
FunctionTestUsersPartialUpdateDoubleToggleWithPassword
============================================================================= TestUsersPartialUpdateDoubleToggleWithPassword — toggle enabled twice on
internal/web/handlers_api_users_test.go:1246
FunctionTestUsersPartialUpdateEnabledOnly
============================================================================= TestUsersPartialUpdateEnabledOnly — PUT with only enabled field ========
internal/web/handlers_api_users_test.go:877
FunctionTestUsersPartialUpdateEnabledToggle
============================================================================= TestUsersPartialUpdateEnabledToggle — PUT {"enabled": false} only ======
internal/web/handlers_api_users_test.go:1154
FunctionTestUsersPartialUpdateEnabledToggleWithPassword
============================================================================= TestUsersPartialUpdateEnabledToggleWithPassword — PUT {"enabled": false}
internal/web/handlers_api_users_test.go:1206
FunctionTestUsersPartialUpdateFilterOneSidePreservesTheOther
TestUsersPartialUpdateFilterOneSidePreservesTheOther guards against a bug where PUT with only filter_allow (or only filter_deny) silently wiped the om
internal/web/handlers_api_users_test.go:1015
FunctionTestUsersPartialUpdateFiltersOnly
============================================================================= TestUsersPartialUpdateFiltersOnly — PUT with only filter fields ========
internal/web/handlers_api_users_test.go:976
FunctionTestUsersPartialUpdateInvalidEmptyName
============================================================================= TestUsersPartialUpdateInvalidEmptyName — PUT name="" returns 400 =======
internal/web/handlers_api_users_test.go:1125
FunctionTestUsersPartialUpdateNameOnly
============================================================================= TestUsersPartialUpdateNameOnly — PUT with only name field ==============
internal/web/handlers_api_users_test.go:925
FunctionTestUsersPartialUpdatePasswordOnly
============================================================================= TestUsersPartialUpdatePasswordOnly — PUT with only password fields =====
internal/web/handlers_api_users_test.go:1080
FunctionTestUsersPeerState
============================================================================= TestUsersPeerState — peer state endpoint ===============================
internal/web/handlers_api_users_test.go:720
FunctionTestUsersStatuses
============================================================================= TestUsersStatuses — batch peer-status endpoint =========================
internal/web/handlers_api_users_test.go:813
FunctionTestUsersUpdateAnyModeAllowsEmptyNetworks
TestUsersUpdateAnyModeAllowsEmptyNetworks confirms the update path doesn't wrongly demand a network for "any" either.
internal/web/handlers_api_users_test.go:407
FunctionTestUsersUpdateNetworkModeRequiresNetworks
TestUsersUpdateNetworkModeRequiresNetworks guards a gap where apiUsersUpdate never enforced this at all — a user could be switched to web_auth="networ
internal/web/handlers_api_users_test.go:378
FunctionTestUsersUpdatePasswordToggle
============================================================================= TestUsersUpdatePasswordToggle — password_enabled =======================
internal/web/handlers_api_users_test.go:559
FunctionTestUsersUpdateRejectsDisabledCatalogModeID
(t *testing.T)
internal/web/handlers_api_users_test.go:477
FunctionTestUsersUpdateWithoutModeChangeSucceedsEvenIfCurrentModeDisabled
TestUsersUpdateWithoutModeChangeSucceedsEvenIfCurrentModeDisabled — an update that doesn't touch catalog_mode_id at all must not be rejected just beca
internal/web/handlers_api_users_test.go:515
FunctionTestValidCSRFRequest
============================================================================= TestValidCSRFRequest — double-submit cookie check: safe methods are alwa
internal/web/middleware_test.go:159
FunctionTestValidateDBPath
TestValidateDBPath guards against a WDBGP_DB whose parent directory exists but isn't usable (not a directory, or not writable) — a nonexistent parent
internal/settings/settings_test.go:1031
FunctionTestValidateHost
TestValidateHost guards against WDBGP_HOST=<host>:<port> — a natural typo since the port is actually configured separately via WDBGP_PORT — being sile
internal/settings/settings_test.go:995
FunctionTransientError
TransientError creates a transient error.
internal/errors/errors.go:123
MethodTryLockFeed
TryLockFeed attempts to acquire the per-feed mutex without blocking. Returns the mutex and true if the lock was acquired, nil and false if another syn
internal/feeds/feeds.go:119
MethodTypeCode
()
internal/bgp/wire_types.go:75
MethodTypeCode
TypeCode returns the path attribute type code for ORIGIN (1).
internal/bgp/wire_types.go:125
MethodTypeCode
TypeCode returns the path attribute type code for NEXT_HOP (3).
internal/bgp/wire_types.go:130
MethodTypeCode
TypeCode returns the path attribute type code for MP_REACH_NLRI (14).
internal/bgp/wire_types.go:135
MethodTypeCode
TypeCode returns the path attribute type code for MP_UNREACH_NLRI (15).
internal/bgp/wire_types.go:140
MethodTypeCode
TypeCode returns the path attribute type code for AS_PATH (2).
internal/bgp/wire_types.go:145
MethodTypeCode
TypeCode returns the path attribute type code for Large Communities (32).
internal/bgp/wire_types.go:150
MethodUnlockFeed
UnlockFeed releases the per-feed mutex previously acquired by TryLockFeed.
internal/feeds/feeds.go:133
MethodUnwrap
Unwrap returns the wrapped error.
internal/errors/errors.go:39
MethodUpdatePeer
(context.Context, store.User)
internal/web/server_test.go:92
MethodUserByName
UserByName returns a user by name for testing convenience.
internal/store/store_auth_settings_test.go:900
FunctionUserError
UserError creates a user error.
internal/errors/errors.go:118
FunctionV001
(ctx context.Context, tx *sql.Tx)
internal/store/migrations/001_initial_schema.go:8
FunctionV002
(ctx context.Context, tx *sql.Tx)
internal/store/migrations/002_ipv6_feeds.go:8
FunctionV003
(ctx context.Context, tx *sql.Tx)
internal/store/migrations/003_lookup_indexes.go:8
FunctionV004
(ctx context.Context, tx *sql.Tx)
internal/store/migrations/004_deduplicate_feeds.go:8
FunctionV005
(ctx context.Context, tx *sql.Tx)
internal/store/migrations/005_route_filters.go:8
FunctionV006
(ctx context.Context, tx *sql.Tx)
internal/store/migrations/006_filter_mode.go:8
FunctionV007
(ctx context.Context, tx *sql.Tx)
internal/store/migrations/007_drop_legacy_opencck.go:8
FunctionV008
(ctx context.Context, tx *sql.Tx)
internal/store/migrations/008_drop_orphan_selections.go:8
FunctionV009
(ctx context.Context, tx *sql.Tx)
internal/store/migrations/009_catalog_modes.go:8
FunctionV010
(ctx context.Context, tx *sql.Tx)
internal/store/migrations/010_switch_ipranges.go:8
FunctionV011
(ctx context.Context, tx *sql.Tx)
internal/store/migrations/011_feed_adapters.go:8
FunctionV012
(ctx context.Context, tx *sql.Tx)
internal/store/migrations/012_query_indexes.go:8
FunctionV013
(ctx context.Context, tx *sql.Tx)
internal/store/migrations/013_catalog_communities.go:9
FunctionV014
(ctx context.Context, tx *sql.Tx)
internal/store/migrations/014_web_auth.go:8
FunctionV015
(ctx context.Context, tx *sql.Tx)
internal/store/migrations/015_app_settings.go:8
FunctionV016
(ctx context.Context, tx *sql.Tx)
internal/store/migrations/016_credentials_unique.go:8
FunctionV017
(ctx context.Context, tx *sql.Tx)
internal/store/migrations/017_sync_interval.go:8
FunctionV018
(ctx context.Context, tx *sql.Tx)
internal/store/migrations/018_feed_data.go:8
FunctionV019
(ctx context.Context, tx *sql.Tx)
internal/store/migrations/019_singbox_srs.go:8
FunctionV020
(ctx context.Context, tx *sql.Tx)
internal/store/migrations/020_adapter_m2m.go:8
FunctionV020NoTxSQL
V020NoTxSQL removes peer_ip UNIQUE constraint (issue #17). Must run outside migration transaction because SQLite doesn't support ALTER TABLE DROP CONS
internal/store/migrations/020_adapter_m2m.go:77
FunctionV023
(ctx context.Context, tx *sql.Tx)
internal/store/migrations/023_active_dial.go:8
FunctionV024
(ctx context.Context, tx *sql.Tx)
internal/store/migrations/024_adapter_fork.go:8
FunctionV025
(ctx context.Context, tx *sql.Tx)
internal/store/migrations/025_feed_hosts.go:10
FunctionV026
(ctx context.Context, tx *sql.Tx)
internal/store/migrations/026_metric_snapshots.go:8
FunctionV027
(ctx context.Context, tx *sql.Tx)
internal/store/migrations/027_adapter_is_builtin.go:8
FunctionV028
(ctx context.Context, tx *sql.Tx)
internal/store/migrations/028_drop_adapter_allowed_hosts.go:10
FunctionV029
(ctx context.Context, tx *sql.Tx)
internal/store/migrations/029_filter_settings.go:9
FunctionV030
V030 is a one-time, alpha-stage data cleanup: it removes overlapping networks between different users whose web_auth is network/both/any (login-mode u
internal/store/migrations/030_dedupe_overlapping_networks.go:37
FunctionV031
V031 drops feed_adapters.key. It was originally the join column back to the Go-source-hardcoded builtInAdapters map (see internal/store/ feed_adapters
internal/store/migrations/031_drop_adapter_key.go:24
FunctionV031NoTxSQL
V031NoTxSQL performs the feed_adapters rebuild. Must run outside the migration transaction so PRAGMA foreign_keys actually takes effect. Runs as a si
internal/store/migrations/031_drop_adapter_key.go:46
FunctionV032
V032 normalizes the catalog schema around numeric keys: - categories(id, name) and services(id, category_id, name) dictionaries replace the category/
internal/store/migrations/032_normalize_catalog.go:27
FunctionV032NoTxSQL
V032NoTxSQL performs the catalog normalization. Runs outside the migration transaction and must be idempotent: it can be killed at any statement bound
internal/store/migrations/032_normalize_catalog.go:43
FunctionV033
V033 moves the user tables to binary IP storage and integer enums: - users: peer_ip and next_hop become 4/16-byte address BLOBs; filter_mode and web_
internal/store/migrations/033_binary_users.go:30
FunctionV033NoTxSQL
V033NoTxSQL performs the rebuilds. Idempotent via the same per-table state machine as migration 32: old column present → rebuild; table missing → fini
internal/store/migrations/033_binary_users.go:40
FunctionV034
V034 finishes the numeric-schema cleanup on the remaining tables: - catalog_modes.key is dropped — same rationale as feed_adapters.key in migration 3
internal/store/migrations/034_epoch_timestamps_drop_mode_key.go:23
FunctionV034NoTxSQL
V034NoTxSQL performs the rebuilds, idempotent via the migration 32/33 per-table state machine.
internal/store/migrations/034_epoch_timestamps_drop_mode_key.go:29
FunctionV035
V035 replaces feed_snapshots.prefixes — a JSON TEXT map of feed_id→prefix count — with a proper child table: feed_snapshot_counts(snapshot_id, feed_
internal/store/migrations/035_feed_snapshot_counts.go:20
FunctionV035NoTxSQL
V035NoTxSQL performs the conversion, idempotent via the usual per-table state machine. The JSON decode needs a Go loop; it runs before the parent rebu
internal/store/migrations/035_feed_snapshot_counts.go:28
MethodWithContext
WithContext adds context to the error.
internal/errors/errors.go:240
MethodWithContextMap
WithContextMap adds multiple context values to the error.
internal/errors/errors.go:69
MethodWithContextMap
WithContextMap adds multiple context values to the error.
internal/errors/errors.go:246
FunctionWrapBuilder
WrapBuilder creates a new error builder wrapping an existing error.
internal/errors/errors.go:233
MethodWrite
(b []byte)
internal/logging/logging.go:246
← previousnext →1,101–1,200 of 1,274, ranked by callers