MCPcopy Create free account

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

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

FunctionBenchmarkSubtractDeep
(b *testing.B)
internal/prefixfilter/bench_test.go:45
MethodBuild
Build returns the built error.
internal/errors/errors.go:254
MethodBuildDatabaseError
BuildDatabaseError builds a database error.
internal/errors/errors.go:269
MethodBuildHTTPError
BuildHTTPError builds an HTTP error.
internal/errors/errors.go:259
FunctionDefault
Default returns the default logger instance
internal/logging/logging.go:71
MethodDeletePeer
(context.Context, string, int64)
internal/web/server_test.go:97
MethodDeleteSetting
DeleteSetting removes a single setting key from the database.
internal/store/settings.go:54
MethodDeleteSetting
(_ context.Context, key string)
internal/settings/setting_test.go:42
MethodDeleteSetting
(_ context.Context, key string)
internal/settings/test_helper.go:37
FunctionDistFS
DistFS returns an fs.FS rooted at webgui/dist for use with http.FileServerFS.
spaembed.go:23
MethodExecuteWithResult
ExecuteWithResult runs fn through the circuit breaker and returns a result. This is a type-safe wrapper that can be used with concrete types.
internal/retry/circuitbreaker.go:113
FunctionFatalError
FatalError creates a fatal error.
internal/errors/errors.go:128
FunctionFatalf
(format string, args ...any)
internal/logging/logging.go:148
MethodForkedAdaptersByKey
(ctx context.Context, forkedFromID int64)
internal/store/feed_adapters.go:419
FunctionFormatAdapterError
(err error)
internal/feeds/javascript.go:39
MethodGet
Get returns the current effective value.
internal/settings/setting.go:203
MethodGet
Get returns the current effective value.
internal/settings/setting.go:210
MethodGetAllSettings
(_ context.Context)
internal/settings/setting_test.go:25
MethodGetAllSettings
(_ context.Context)
internal/settings/test_helper.go:24
FunctionGetGlobalCircuitBreaker
GetGlobalCircuitBreaker gets or creates a global circuit breaker.
internal/retry/circuitbreaker.go:290
FunctionHTTPFS
HTTPFS returns an http.FileSystem rooted at webgui/dist. Returns nil if the embed failed (fallback to disk in dev mode).
spaembed.go:14
FunctionHTTPFS
HTTPFS returns an http.FileSystem rooted at webgui/dist. Returns nil if the embed failed (fallback to disk in dev mode).
internal/spa/spa.go:12
MethodHasDBValue
HasDBValue returns true if the setting has a stored database value.
internal/settings/setting.go:381
MethodHasDBValue
HasDBValue returns true if the setting has a stored database value.
internal/settings/setting.go:391
MethodIsEnvSet
IsEnvSet returns true if the setting value comes from an environment variable.
internal/settings/setting.go:365
MethodIsEnvSet
IsEnvSet returns true if the setting value comes from an environment variable.
internal/settings/setting.go:373
FunctionIsFatal
IsFatal returns true if the error is fatal.
internal/errors/errors.go:104
FunctionIsSystem
IsSystem returns true if the error is a system error.
internal/errors/errors.go:77
FunctionIsTransient
IsTransient returns true if the error is transient.
internal/errors/errors.go:95
FunctionIsUser
IsUser returns true if the error is a user error.
internal/errors/errors.go:86
MethodJSON
JSON returns a serializable representation of the setting.
internal/settings/setting.go:401
MethodJSON
JSON returns a serializable representation of the setting.
internal/settings/setting.go:424
MethodJSON
JSON returns a serializable representation of all settings.
internal/settings/settings.go:410
FunctionNewAdapterError
NewAdapterError creates a new adapter error.
internal/errors/errors.go:211
FunctionNewBGPRerror
NewBGPRerror creates a new BGP error.
internal/errors/errors.go:175
FunctionNewBuilder
NewBuilder creates a new error builder.
internal/errors/errors.go:226
FunctionNewDatabaseError
NewDatabaseError creates a new database error.
internal/errors/errors.go:158
FunctionNewFeedError
NewFeedError creates a new feed error.
internal/errors/errors.go:193
FunctionNewHTTPError
NewHTTPError creates a new HTTP error.
internal/errors/errors.go:141
MethodOnChange
OnChange registers a callback that fires after a successful Set or Reset.
internal/settings/setting.go:440
MethodOnChange
OnChange registers a callback that fires after a successful Set or Reset.
internal/settings/setting.go:455
MethodPeerStates
(ctx context.Context)
internal/bgp/manager.go:374
MethodPeerStates
(context.Context)
internal/web/server_test.go:80
MethodReadByte
()
internal/feeds/srs.go:152
MethodReconcile
(context.Context)
internal/web/server_test.go:64
MethodReconcileRoutes
ReconcileRoutes triggers route re-announcement for all peers.
internal/bgp/speaker.go:195
MethodReloadPeers
(ctx context.Context)
internal/bgp/manager.go:90
MethodReloadPeers
(context.Context)
internal/web/server_test.go:72
MethodRemoveFeedFromMode
(ctx context.Context, modeID, feedID int64)
internal/store/modes.go:165
MethodRemoveFeedLock
RemoveFeedLock cleans up the per-feed mutex after feed deletion. Uses TryLock to check whether the mutex is still held: if a sync is in progress the e
internal/feeds/feeds.go:101
MethodReset
Reset deletes the stored database value and reverts to the default.
internal/settings/setting.go:316
MethodReset
Reset deletes the stored database value and reverts to parse(defaultJSON).
internal/settings/setting.go:338
MethodRoundTrip
(request *http.Request)
internal/feeds/feeds_test.go:643
MethodSaveSetting
SaveSetting upserts a single setting key-value pair.
internal/store/settings.go:60
MethodSaveSetting
(_ context.Context, key, value string)
internal/settings/setting_test.go:33
MethodSaveSetting
(_ context.Context, key, value string)
internal/settings/test_helper.go:32
MethodSerialize
Serialize encodes the ORIGIN path attribute value.
internal/bgp/wire_encode.go:211
MethodSerialize
Serialize encodes the NEXT_HOP path attribute value (4 bytes, IPv4 only).
internal/bgp/wire_encode.go:216
MethodSerialize
Serialize encodes the MP_REACH_NLRI path attribute value (RFC 4760).
internal/bgp/wire_encode.go:222
MethodSerialize
Serialize encodes the MP_UNREACH_NLRI path attribute value (RFC 4760). Format: AFI(2) + SAFI(1) + NLRI — no next hop, no SNP.
internal/bgp/wire_encode.go:236
MethodSet
Set saves a new value to the store.
internal/settings/setting.go:248
MethodSet
Set saves a new value to the store.
internal/settings/setting.go:296
MethodStats
Stats returns circuit breaker statistics.
internal/retry/circuitbreaker.go:136
MethodStatus
()
internal/web/server_test.go:102
MethodSyncOneLocked
SyncOneLocked synchronizes one feed. The caller must already hold the per-feed lock (acquired via TryLockFeed). Returns the adapter revision that was
internal/feeds/feeds.go:219
FunctionSystemError
SystemError creates a system error.
internal/errors/errors.go:113
MethodTemporary
()
internal/feeds/retry_integration_test.go:133
FunctionTestAPIRequireAdminRejectsMutatingRequestWithoutCSRFToken
============================================================================= TestAPIRequireAdminRejectsMutatingRequestWithoutCSRFToken — an admin wit
internal/web/middleware_test.go:199
FunctionTestAPISettingsGet_TypedResponse
(t *testing.T)
internal/web/handlers_api_settings_test.go:27
FunctionTestAPISettingsPut_AcceptsNonEmptyAdminSecrets
TestAPISettingsPut_AcceptsNonEmptyAdminSecrets is the accompanying happy-path check: a real, non-empty value for either secret must still go through.
internal/web/handlers_api_settings_test.go:609
FunctionTestAPISettingsPut_EnvOverridden
(t *testing.T)
internal/web/handlers_api_settings_test.go:329
FunctionTestAPISettingsPut_HostPortDBPathAreReadOnly
TestAPISettingsPut_HostPortDBPathAreReadOnly verifies host/port/db_path and backup_enabled/backup_dir/auto_restore_enabled can no longer be changed vi
internal/web/handlers_api_settings_test.go:147
FunctionTestAPISettingsPut_InvalidType
(t *testing.T)
internal/web/handlers_api_settings_test.go:272
FunctionTestAPISettingsPut_RejectsAdminSecretReset
TestAPISettingsPut_RejectsAdminSecretReset guards against {"admin_password": null} / {"session_secret": null} reaching Reset() — Reset reverts to the
internal/web/handlers_api_settings_test.go:575
FunctionTestAPISettingsPut_RejectsEmptyAdminSecrets
TestAPISettingsPut_RejectsEmptyAdminSecrets guards against an authenticated caller setting admin_password or session_secret to "" via the settings API
internal/web/handlers_api_settings_test.go:540
FunctionTestAPISettingsPut_RejectsPartiallyInvalidBatch
TestAPISettingsPut_RejectsPartiallyInvalidBatch guards against a request containing one valid and one invalid field persisting the valid change while
internal/web/handlers_api_settings_test.go:300
FunctionTestAPISettingsPut_Reset
(t *testing.T)
internal/web/handlers_api_settings_test.go:241
FunctionTestAPISettingsPut_RouteFilters
(t *testing.T)
internal/web/handlers_api_settings_test.go:353
FunctionTestAPISettingsPut_RouteFiltersReconcileFailureSurfaces
TestAPISettingsPut_RouteFiltersReconcileFailureSurfaces confirms a reconcile failure after a successful settings save reports 200 with a warning field
internal/web/handlers_api_settings_test.go:503
FunctionTestAPISettingsPut_RouteFiltersRejectInvalidCIDR
TestAPISettingsPut_RouteFiltersRejectInvalidCIDR guards against a typo'd CIDR (e.g. a /33 on IPv4) being persisted into filter_allow/filter_deny — pri
internal/web/handlers_api_settings_test.go:402
FunctionTestAPISettingsPut_RouteFiltersTriggerReconcile
TestAPISettingsPut_RouteFiltersTriggerReconcile guards against a bug where changing global filter_allow/filter_deny persisted the new value but never
internal/web/handlers_api_settings_test.go:441
FunctionTestAPISettingsPut_TypedBool
(t *testing.T)
internal/web/handlers_api_settings_test.go:87
FunctionTestAPISettingsPut_TypedInt
(t *testing.T)
internal/web/handlers_api_settings_test.go:113
FunctionTestAPISettingsPut_UnknownKeyRejected
TestAPISettingsPut_UnknownKeyRejected guards the fail-safe default case in setSetting/resetSetting: a key with no explicit case must error out rather
internal/web/handlers_api_settings_test.go:212
FunctionTestAPISettingsPut_UnrelatedSettingDoesNotTriggerReconcile
TestAPISettingsPut_UnrelatedSettingDoesNotTriggerReconcile confirms the reconcile-on-filter-change logic doesn't fire for settings that have nothing t
internal/web/handlers_api_settings_test.go:471
FunctionTestASNMismatch
============================================================================= Test 5: ASN mismatch ===================================================
internal/bgp/session_test.go:320
FunctionTestASNValidation
(t *testing.T)
internal/settings/settings_test.go:757
FunctionTestASNValidationRejectsInvalidEnvValue
(t *testing.T)
internal/settings/settings_test.go:777
FunctionTestASNValidationRejectsNegativeEnvValue
(t *testing.T)
internal/settings/settings_test.go:785
FunctionTestASPath4ByteEncoding
(t *testing.T)
internal/bgp/wire_test.go:318
FunctionTestASPathFourOctetForce
(t *testing.T)
internal/bgp/wire_test.go:389
FunctionTestActiveDialSnapshotSurvivesLiveSettingChange
TestActiveDialSnapshotSurvivesLiveSettingChange guards against a bug where AddPeer/UpdatePeer/DeletePeer (via buildPeerConfigs) read active_dial live
internal/bgp/manager_test.go:817
FunctionTestActiveNetworksOverlapAllowsNonOverlapping
(t *testing.T)
internal/store/networks_overlap_test.go:117
FunctionTestActiveNetworksOverlapDetectsConflict
(t *testing.T)
internal/store/networks_overlap_test.go:26
FunctionTestActiveNetworksOverlapExcludesSelf
(t *testing.T)
internal/store/networks_overlap_test.go:94
FunctionTestActiveNetworksOverlapIgnoresDisabledUsers
TestActiveNetworksOverlapIgnoresDisabledUsers guards against a bug where a disabled user's network could block an unrelated enabled user's save — a di
internal/store/networks_overlap_test.go:75
FunctionTestActiveNetworksOverlapIgnoresLoginModeUsers
(t *testing.T)
internal/store/networks_overlap_test.go:51
FunctionTestAdapterCRUDAPI
TestAdapterCRUDAPI tests adapter CRUD + fork + acknowledge
internal/web/server_test.go:817
FunctionTestAdapterForkAutoNaming
(t *testing.T)
internal/store/adapter_fork_test.go:37
FunctionTestAdapterHTTPFollowsValidatedRedirect
(t *testing.T)
internal/feeds/feeds_test.go:276
← previousnext →601–700 of 1,274, ranked by callers