{"modulePath":"github.com/GoogleChrome/webstatus.dev/backend","version":"v0.0.0-20261125220119-7dfa3a9d4913","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package httpserver\n\n## Variables\n\n```go\nvar ErrNoMatchingMobileBrowser = errors.New(\"browser does not have a matching mobile browser\")\n```\n\n## Functions\n\n```go\nfunc GenericErrorFn(ctx context.Context, statusCode int, w http.ResponseWriter, err error)\n```\nGenericErrorFn is a reusable method for the middleware layers that they can use to get well structured JSON output for BasicErrorModel.\n\n```go\nfunc GetDesktopsMobileProduct(browser backend.BrowserPathParam) (backend.BrowserPathParam, error)\n```\nGetDesktopsMobileProduct returns the mobile version of the given desktop browser.\n\n```go\nfunc NewHTTPServer(\n\tport string,\n\tbaseURL *url.URL,\n\tmetadataStorer WebFeatureMetadataStorer,\n\twptMetricsStorer WPTMetricsStorer,\n\teventPublisher EventPublisher,\n\trawBytesDataCacher RawBytesDataCacher,\n\trouteCacheOptions RouteCacheOptions,\n\tuserGitHubClientFactory UserGitHubClientFactory,\n\twebhookVerifier WebhookVerifier,\n\tvcsPermissionChecker VCSPermissionChecker,\n\tpreRequestValidationMiddlewares []func(http.Handler) http.Handler,\n\tauthMiddleware func(http.Handler) http.Handler) *http.Server\n```\n\n## Types\n\n```go\ntype AtomLink struct {\n\tRel  string `xml:\"rel,attr\"`\n\tHref string `xml:\"href,attr\"`\n}\n```\n\n```go\ntype CDATA struct {\n\tText string `xml:\",cdata\"`\n}\n```\n\n```go\ntype Channel struct {\n\tTitle       string     `xml:\"title\"`\n\tLink        string     `xml:\"link\"`\n\tDescription string     `xml:\"description\"`\n\tAtomLinks   []AtomLink `xml:\"atom:link\"`\n\tItems       []Item     `xml:\"item\"`\n}\n```\n\n```go\ntype EventPublisher interface {\n\tPublishSearchConfigurationChanged(ctx context.Context, resp *backend.SavedSearchResponse,\n\t\tuserID string, isCreation bool) error\n\tPublishCodeScanTask(ctx context.Context, task codescantaskv1.CodeScanTaskEvent) error\n}\n```\n\n```go\ntype GUID struct {\n\tValue       string `xml:\",chardata\"`\n\tIsPermaLink string `xml:\"isPermaLink,attr\"`\n}\n```\n\n```go\ntype GetFeatureResultVisitor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (v *GetFeatureResultVisitor) VisitMovedFeature(_ context.Context, result backendtypes.MovedFeatureResult) error\n```\n\n```go\nfunc (v *GetFeatureResultVisitor) VisitRegularFeature(ctx context.Context,\n\tresult backendtypes.RegularFeatureResult) error\n```\n\n```go\nfunc (v *GetFeatureResultVisitor) VisitSplitFeature(_ context.Context, result backendtypes.SplitFeatureResult) error\n```\n\n```go\ntype GitHubUserClient interface {\n\tGetCurrentUser(ctx context.Context) (*gh.GitHubUser, error)\n\tListEmails(ctx context.Context) ([]*gh.UserEmail, error)\n}\n```\n\n```go\ntype Item struct {\n\tTitle       string `xml:\"title\"`\n\tDescription CDATA  `xml:\"description\"`\n\tGUID        GUID   `xml:\"guid\"`\n\tPubDate     string `xml:\"pubDate\"`\n}\n```\n\n```go\ntype MissingOneBrowserParams struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc PrepareMissingOneBrowserParams(\n\ttargetBrowserParam backend.BrowserPathParam,\n\totherBrowsersParam []backend.BrowserPathParam,\n\tincludeMobileBrowsers bool,\n) (*MissingOneBrowserParams, error)\n```\nPrepareMissingOneBrowserParams takes the raw request arguments for \"missing in one browser\" requests and formats them.\n\n```go\ntype RSS struct {\n\tXMLName xml.Name `xml:\"rss\"`\n\tVersion string   `xml:\"version,attr\"`\n\tAtomNS  string   `xml:\"xmlns:atom,attr\"`\n\tChannel Channel  `xml:\"channel\"`\n}\n```\nRSS struct for marshaling.\n\n```go\ntype RSSItemData struct {\n\tSummaryText         string\n\tAdded               []string\n\tRemoved             []string\n\tChanged             []string\n\tMoved               []string\n\tSplit               []string\n\tDeleted             []string\n\tQueryErrors         []string\n\tResolvedQueryErrors []string\n\tTruncated           bool\n}\n```\n\n```go\ntype RSSRenderer struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewRSSRenderer() *RSSRenderer\n```\nNewRSSRenderer initializes the renderer and parses the template at startup.\n\n```go\nfunc (r *RSSRenderer) RenderRSSDescription(data RSSItemData) (string, error)\n```\n\n```go\ntype RawBytesDataCacher interface {\n\t// Cache stores a value associated with a key in the cache.\n\tCache(context.Context, string, []byte, ...cachetypes.CacheOption) error\n\t// Get retrieves a value from the cache by its key.\n\tGet(context.Context, string) ([]byte, error)\n}\n```\nRawBytesDataCacher defines an interface for caching raw byte data. This interface is intended for use in scenarios where data needs to be cached as raw bytes, rather than structured data types. Implementations of this interface should provide methods to store and retrieve byte slices associated with string keys. Currently implemented by the valkey cache layer.\n\n```go\ntype RouteCacheOptions struct {\n\t// AggregatedFeatureStatsOptions applies cache options for routes that only contain stats on features.\n\t// Any routes with multiple data sources are not included (e.g. WPT Metrics)\n\tAggregatedFeatureStatsOptions []cachetypes.CacheOption\n}\n```\nRouteCacheOptions contains options for caching routes.\n\n```go\ntype Server struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (s *Server) CreateNotificationChannel(\n\tctx context.Context,\n\trequest backend.CreateNotificationChannelRequestObject) (\n\tbackend.CreateNotificationChannelResponseObject, error)\n```\nCreateNotificationChannel implements backend.StrictServerInterface. nolint: ireturn // Name generated from openapi\n\n```go\nfunc (s *Server) CreateSavedSearch(ctx context.Context, request backend.CreateSavedSearchRequestObject) (\n\tbackend.CreateSavedSearchResponseObject, error)\n```\nCreateSavedSearch implements backend.StrictServerInterface. nolint: ireturn // Name generated from openapi\n\n```go\nfunc (s *Server) CreateSubscription(\n\tctx context.Context,\n\trequest backend.CreateSubscriptionRequestObject,\n) (backend.CreateSubscriptionResponseObject, error)\n```\nnolint:ireturn, revive // Expected ireturn for openapi generation.\n\n```go\nfunc (s *Server) DeleteNotificationChannel(\n\tctx context.Context,\n\treq backend.DeleteNotificationChannelRequestObject,\n) (backend.DeleteNotificationChannelResponseObject, error)\n```\nDeleteNotificationChannel handles the DELETE request to /v1/users/me/notification-channels/{channel\\_id}. nolint:ireturn, revive // Expected ireturn for openapi generation.\n\n```go\nfunc (s *Server) DeleteSubscription(\n\tctx context.Context,\n\trequest backend.DeleteSubscriptionRequestObject,\n) (backend.DeleteSubscriptionResponseObject, error)\n```\nnolint:ireturn, revive // Expected ireturn for openapi generation.\n\n```go\nfunc (s *Server) GetFeature(\n\tctx context.Context,\n\trequest backend.GetFeatureRequestObject,\n) (backend.GetFeatureResponseObject, error)\n```\nGetFeature implements backend.StrictServerInterface. nolint: revive, ireturn // Name generated from openapi\n\n```go\nfunc (s *Server) GetFeatureMetadata(ctx context.Context,\n\trequest backend.GetFeatureMetadataRequestObject) (backend.GetFeatureMetadataResponseObject, error)\n```\nGetFeatureMetadata implements backend.StrictServerInterface. nolint: revive, ireturn // Name generated from openapi\n\n```go\nfunc (s *Server) GetHealthcheckLiveness(\n\t_ context.Context,\n\t_ backend.GetHealthcheckLivenessRequestObject,\n) (backend.GetHealthcheckLivenessResponseObject, error)\n```\nGetHealthcheckLiveness implements backend.StrictServerInterface. nolint: ireturn // Name generated from openapi\n\n```go\nfunc (s *Server) GetNotificationChannel(\n\tctx context.Context,\n\treq backend.GetNotificationChannelRequestObject,\n) (backend.GetNotificationChannelResponseObject, error)\n```\nGetNotificationChannel handles the GET request to /v1/users/me/notification-channels/{channel\\_id}. nolint:ireturn, revive // Expected ireturn for openapi generation.\n\n```go\nfunc (s *Server) GetSavedSearch(\n\tctx context.Context, req backend.GetSavedSearchRequestObject) (\n\tbackend.GetSavedSearchResponseObject, error)\n```\nGetSavedSearch implements backend.StrictServerInterface. nolint:ireturn, revive // Expected ireturn for openapi generation.\n\n```go\nfunc (s *Server) GetSubscription(\n\tctx context.Context,\n\trequest backend.GetSubscriptionRequestObject,\n) (backend.GetSubscriptionResponseObject, error)\n```\nnolint:ireturn, revive // Expected ireturn for openapi generation.\n\n```go\nfunc (s *Server) GetSubscriptionRSS(\n\tctx context.Context,\n\trequest backend.GetSubscriptionRSSRequestObject,\n) (backend.GetSubscriptionRSSResponseObject, error)\n```\nGetSubscriptionRSS handles the request to get an RSS feed for a subscription. nolint: ireturn // Signature generated from OpenAPI.\n\n```go\nfunc (s *Server) HandleVCSWebhook(\n\tctx context.Context,\n\trequest backend.HandleVCSWebhookRequestObject,\n) (backend.HandleVCSWebhookResponseObject, error)\n```\nHandleVCSWebhook handles POST /v1/vcs/webhooks/{provider}.\n\n```go\nfunc (s *Server) ListAggregatedBaselineStatusCounts(\n\tctx context.Context, request backend.ListAggregatedBaselineStatusCountsRequestObject) (\n\tbackend.ListAggregatedBaselineStatusCountsResponseObject, error)\n```\nListAggregatedBaselineStatusCounts implements backend.StrictServerInterface. nolint: revive, ireturn // Name generated from openapi\n\n```go\nfunc (s *Server) ListAggregatedFeatureSupport(\n\tctx context.Context,\n\trequest backend.ListAggregatedFeatureSupportRequestObject) (\n\tbackend.ListAggregatedFeatureSupportResponseObject, error)\n```\nListAggregatedFeatureSupport implements backend.StrictServerInterface. nolint: ireturn // Signature generated from openapi\n\n```go\nfunc (s *Server) ListAggregatedWPTMetrics(\n\tctx context.Context,\n\trequest backend.ListAggregatedWPTMetricsRequestObject,\n) (backend.ListAggregatedWPTMetricsResponseObject, error)\n```\nListAggregatedWPTMetrics implements backend.StrictServerInterface. nolint: revive, ireturn // Name generated from openapi\n\n```go\nfunc (s *Server) ListChromeDailyUsageStats(\n\tctx context.Context,\n\trequest backend.ListChromeDailyUsageStatsRequestObject,\n) (backend.ListChromeDailyUsageStatsResponseObject, error)\n```\nListChromeDailyUsageStats implements backend.StrictServerInterface. nolint: revive, ireturn // Name generated from openapi\n\n```go\nfunc (s *Server) ListCodeSubscriptions(\n\tctx context.Context,\n\trequest backend.ListCodeSubscriptionsRequestObject,\n) (backend.ListCodeSubscriptionsResponseObject, error)\n```\nListCodeSubscriptions handles GET /v1/vcs/{provider}/repositories/{repository\\_id}/code-subscriptions.\n\n```go\nfunc (s *Server) ListFeatureWPTMetrics(\n\tctx context.Context,\n\trequest backend.ListFeatureWPTMetricsRequestObject,\n) (backend.ListFeatureWPTMetricsResponseObject, error)\n```\nListFeatureWPTMetrics implements backend.StrictServerInterface. nolint: revive, ireturn // Name generated from openapi\n\n```go\nfunc (s *Server) ListFeatures(\n\tctx context.Context,\n\treq backend.ListFeaturesRequestObject,\n) (backend.ListFeaturesResponseObject, error)\n```\nListFeatures implements backend.StrictServerInterface. nolint:ireturn // Expected ireturn for openapi generation.\n\n```go\nfunc (s *Server) ListGlobalSavedSearches(\n\tctx context.Context,\n\treq backend.ListGlobalSavedSearchesRequestObject,\n) (backend.ListGlobalSavedSearchesResponseObject, error)\n```\nListGlobalSavedSearches implements backend.StrictServerInterface. nolint:ireturn // Expected ireturn for openapi generation.\n\n```go\nfunc (s *Server) ListMissingOneImplementationCounts(\n\tctx context.Context,\n\trequest backend.ListMissingOneImplementationCountsRequestObject) (\n\tbackend.ListMissingOneImplementationCountsResponseObject, error)\n```\nListMissingOneImplementationCounts implements backend.StrictServerInterface. nolint: ireturn // Signature generated from openapi\n\n```go\nfunc (s *Server) ListMissingOneImplementationFeatures(\n\tctx context.Context,\n\trequest backend.ListMissingOneImplementationFeaturesRequestObject) (\n\tbackend.ListMissingOneImplementationFeaturesResponseObject, error)\n```\nListMissingOneImplementationFeatures implements backend.StrictServerInterface. nolint: ireturn // Signature generated from openapi\n\n```go\nfunc (s *Server) ListNotificationChannels(\n\tctx context.Context,\n\treq backend.ListNotificationChannelsRequestObject,\n) (backend.ListNotificationChannelsResponseObject, error)\n```\nListNotificationChannels handles the GET request to /v1/users/me/notification-channels. nolint:ireturn, revive // Expected ireturn for openapi generation.\n\n```go\nfunc (s *Server) ListSubscriptions(\n\tctx context.Context,\n\trequest backend.ListSubscriptionsRequestObject,\n) (backend.ListSubscriptionsResponseObject, error)\n```\nnolint:ireturn, revive // Expected ireturn for openapi generation.\n\n```go\nfunc (s *Server) ListUserSavedSearches(\n\tctx context.Context, request backend.ListUserSavedSearchesRequestObject) (\n\tbackend.ListUserSavedSearchesResponseObject, error)\n```\nListUserSavedSearches implements backend.StrictServerInterface. nolint:ireturn // Expected ireturn for openapi generation.\n\n```go\nfunc (s *Server) PingUser(\n\tctx context.Context,\n\treq backend.PingUserRequestObject,\n) (backend.PingUserResponseObject, error)\n```\nPingUser implements backend.StrictServerInterface. nolint: ireturn // Name generated from openapi\n\n```go\nfunc (s *Server) PutUserSavedSearchBookmark(\n\tctx context.Context, request backend.PutUserSavedSearchBookmarkRequestObject) (\n\tbackend.PutUserSavedSearchBookmarkResponseObject, error)\n```\nPutUserSavedSearchBookmark implements backend.StrictServerInterface. nolint: ireturn // Name generated from openapi\n\n```go\nfunc (s *Server) RemoveSavedSearch(\n\tctx context.Context, request backend.RemoveSavedSearchRequestObject) (\n\tbackend.RemoveSavedSearchResponseObject, error)\n```\nRemoveSavedSearch implements backend.StrictServerInterface. nolint: ireturn // Name generated from openapi\n\n```go\nfunc (s *Server) RemoveUserSavedSearchBookmark(\n\tctx context.Context, request backend.RemoveUserSavedSearchBookmarkRequestObject) (\n\tbackend.RemoveUserSavedSearchBookmarkResponseObject, error)\n```\nRemoveUserSavedSearchBookmark implements backend.StrictServerInterface. nolint: ireturn // Name generated from openapi\n\n```go\nfunc (s *Server) UpdateNotificationChannel(\n\tctx context.Context,\n\trequest backend.UpdateNotificationChannelRequestObject) (\n\tbackend.UpdateNotificationChannelResponseObject, error)\n```\nUpdateNotificationChannel implements backend.StrictServerInterface. nolint: ireturn // Name generated from openapi\n\n```go\nfunc (s *Server) UpdateSavedSearch(\n\tctx context.Context, request backend.UpdateSavedSearchRequestObject) (\n\tbackend.UpdateSavedSearchResponseObject, error)\n```\nUpdateSavedSearch implements backend.StrictServerInterface. nolint: ireturn // Name generated from openapi\n\n```go\nfunc (s *Server) UpdateSubscription(\n\tctx context.Context,\n\trequest backend.UpdateSubscriptionRequestObject,\n) (backend.UpdateSubscriptionResponseObject, error)\n```\nnolint:ireturn, revive // Expected ireturn for openapi generation.\n\n```go\ntype UserCheckResult[T any] struct {\n\tUser     *auth.User\n\tResponse T\n}\n```\nUserCheckResult represents either a successful user retrieval or an error response.\n\n```go\nfunc CheckAuthenticatedUser[T any](\n\tctx context.Context,\n\toperation string,\n\tnewErrorResponse func(code int, message string) T) UserCheckResult[T]\n```\nCheckAuthenticatedUser retrieves the authenticated user from the context. If the user is not found, it returns an error response.\n\n```go\ntype UserGitHubClient struct {\n\tGitHubUserClient\n}\n```\n\n```go\ntype UserGitHubClientFactory func(token string) *UserGitHubClient\n```\n\n```go\ntype VCSPermissionChecker interface {\n\tHasRepositoryAdminAccess(ctx context.Context, owner, repo, githubUserID string) (bool, error)\n}\n```\nVCSPermissionChecker verifies whether an authenticated user has administrative permissions on a given VCS repository.\n\n```go\ntype WPTMetricsStorer interface {\n\tListMetricsForFeatureIDBrowserAndChannel(\n\t\tctx context.Context,\n\t\tfeatureID string,\n\t\tbrowser string,\n\t\tchannel string,\n\t\tmetricView backend.MetricViewPathParam,\n\t\tstartAt time.Time,\n\t\tendAt time.Time,\n\t\tpageSize int,\n\t\tpageToken *string) ([]backend.WPTRunMetric, *string, error)\n\tListMetricsOverTimeWithAggregatedTotals(\n\t\tctx context.Context,\n\t\tfeatureIDs []string,\n\t\tbrowser string,\n\t\tchannel string,\n\t\tmetricView backend.MetricViewPathParam,\n\t\tstartAt, endAt time.Time,\n\t\tpageSize int,\n\t\tpageToken *string,\n\t) ([]backend.WPTRunMetric, *string, error)\n\tListChromeDailyUsageStats(\n\t\tctx context.Context,\n\t\tfeatureID string,\n\t\tstartAt, endAt time.Time,\n\t\tpageSize int,\n\t\tpageToken *string,\n\t) ([]backend.ChromeUsageStat, *string, error)\n\tFeaturesSearch(\n\t\tctx context.Context,\n\t\tpageToken *string,\n\t\tpageSize int,\n\t\tsearchNode *searchtypes.SearchNode,\n\t\tsortOrder *backend.ListFeaturesParamsSort,\n\t\twptMetricType backend.WPTMetricView,\n\t\tbrowsers []backend.BrowserPathParam,\n\t) (*backend.FeaturePage, error)\n\tGetFeature(\n\t\tctx context.Context,\n\t\tfeatureID string,\n\t\twptMetricType backend.WPTMetricView,\n\t\tbrowsers []backend.BrowserPathParam,\n\t) (*backendtypes.GetFeatureResult, error)\n\tListBrowserFeatureCountMetric(\n\t\tctx context.Context,\n\t\ttargetBrowser string,\n\t\ttargetMobileBrowser *string,\n\t\tstartAt time.Time,\n\t\tendAt time.Time,\n\t\tpageSize int,\n\t\tpageToken *string,\n\t) (*backend.BrowserReleaseFeatureMetricsPage, error)\n\tGetIDFromFeatureKey(\n\t\tctx context.Context,\n\t\tfeatureID string,\n\t) (*string, error)\n\tListMissingOneImplCounts(\n\t\tctx context.Context,\n\t\ttargetBrowser string,\n\t\ttargetMobileBrowser *string,\n\t\totherBrowsers []string,\n\t\tstartAt, endAt time.Time,\n\t\tpageSize int,\n\t\tpageToken *string,\n\t) (*backend.BrowserReleaseFeatureMetricsPage, error)\n\tListMissingOneImplementationFeatures(\n\t\tctx context.Context,\n\t\ttargetBrowser string,\n\t\ttargetMobileBrowser *string,\n\t\totherBrowsers []string,\n\t\ttargetDate time.Time,\n\t\tpageSize int,\n\t\tpageToken *string,\n\t) (*backend.MissingOneImplFeaturesPage, error)\n\tListBaselineStatusCounts(\n\t\tctx context.Context,\n\t\tstartAt time.Time,\n\t\tendAt time.Time,\n\t\tpageSize int,\n\t\tpageToken *string,\n\t) (*backend.BaselineStatusMetricsPage, error)\n\tCreateUserSavedSearch(ctx context.Context, userID string,\n\t\tsavedSearch backend.SavedSearch) (*backend.SavedSearchResponse, error)\n\tDeleteUserSavedSearch(ctx context.Context, userID, savedSearchID string) error\n\tGetSavedSearch(ctx context.Context, savedSearchID string, userID *string) (*backend.SavedSearchResponse, error)\n\tListUserSavedSearches(\n\t\tctx context.Context,\n\t\tuserID string,\n\t\tpageSize int,\n\t\tpageToken *string,\n\t) (*backend.UserSavedSearchPage, error)\n\tGetSavedSearchPublic(ctx context.Context, savedSearchID string) (*backend.SavedSearchResponse, error)\n\tUpdateUserSavedSearch(\n\t\tctx context.Context,\n\t\tsavedSearchID string,\n\t\tuserID string,\n\t\tsavedSearch *backend.SavedSearchUpdateRequest,\n\t) (*backend.SavedSearchResponse, error)\n\tValidateQueryReferences(\n\t\tctx context.Context,\n\t\tquery string,\n\t\tupdateID *string,\n\t) error\n\tPutUserSavedSearchBookmark(\n\t\tctx context.Context,\n\t\tuserID string,\n\t\tsavedSearchID string,\n\t) error\n\tListGlobalSavedSearches(\n\t\tctx context.Context,\n\t\tpageSize int,\n\t\tpageToken *string,\n\t) (*backend.GlobalSavedSearchPage, error)\n\tGetGlobalSavedSearch(\n\t\tctx context.Context,\n\t\tsearchID string,\n\t) (*backend.GlobalSavedSearch, error)\n\tRemoveUserSavedSearchBookmark(\n\t\tctx context.Context,\n\t\tuserID string,\n\t\tsavedSearchID string,\n\t) error\n\tSyncUserProfileInfo(ctx context.Context,\n\t\tuserProfile backendtypes.UserProfile) error\n\tGetNotificationChannel(ctx context.Context,\n\t\tuserID, channelID string) (*backend.NotificationChannelResponse, error)\n\tListNotificationChannels(ctx context.Context,\n\t\tuserID string, pageSize int, pageToken *string) (*backend.NotificationChannelPage, error)\n\tDeleteNotificationChannel(ctx context.Context,\n\t\tuserID, channelID string) error\n\tCreateNotificationChannel(ctx context.Context,\n\t\tuserID string, req backend.CreateNotificationChannelRequest) (*backend.NotificationChannelResponse, error)\n\tUpdateNotificationChannel(ctx context.Context,\n\t\tuserID, channelID string, req backend.UpdateNotificationChannelRequest) (*backend.NotificationChannelResponse, error)\n\tCreateSavedSearchSubscription(ctx context.Context, userID string,\n\t\tsubscription backend.Subscription) (*backend.SubscriptionResponse, error)\n\tDeleteSavedSearchSubscription(ctx context.Context, userID, subscriptionID string) error\n\tGetSavedSearchSubscription(ctx context.Context,\n\t\tuserID, subscriptionID string) (*backend.SubscriptionResponse, error)\n\tGetSavedSearchSubscriptionPublic(ctx context.Context, subscriptionID string) (*backend.SubscriptionResponse, error)\n\tListSavedSearchSubscriptions(ctx context.Context,\n\t\tuserID string, pageSize int, pageToken *string) (*backend.SubscriptionPage, error)\n\tListSavedSearchNotificationEvents(\n\t\tctx context.Context,\n\t\tsavedSearchID string,\n\t\tfrequency backend.SubscriptionFrequency,\n\t\tpageSize int,\n\t\tpageToken *string,\n\t) ([]backendtypes.SavedSearchNotificationEvent, *string, error)\n\tUpdateSavedSearchSubscription(\n\t\tctx context.Context,\n\t\tuserID, subscriptionID string,\n\t\treq backend.UpdateSubscriptionRequest,\n\t) (*backend.SubscriptionResponse, error)\n\tListCodeSubscriptions(\n\t\tctx context.Context,\n\t\tvcsProvider, repoFullName string,\n\t\tpageSize int,\n\t\tpageToken *string,\n\t) (*backend.CodeSubscriptionPage, error)\n\tRecordVCSWebhookDelivery(\n\t\tctx context.Context,\n\t\tdelivery gcpspanner.VCSWebhookDelivery,\n\t) (bool, error)\n}\n```\n\n```go\ntype WebFeatureMetadataStorer interface {\n\tGetFeatureMetadata(\n\t\tctx context.Context,\n\t\tfeatureID string,\n\t) (*backend.FeatureMetadata, error)\n}\n```\n\n```go\ntype WebhookVerifier interface {\n\tVerifySignature(payload []byte, signature string) error\n}\n```\n\n","path":"github.com/GoogleChrome/webstatus.dev/backend/pkg/httpserver","name":"httpserver","synopsis":"","isRedistributable":true}
