package
0.0.0-20240624235250-9e89dfb7520d
Repository: https://github.com/tailscale/pkgsitelib.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
GeneratePathTokens returns the subPaths and path token parts that will be indexed for search, which includes (1) the packagePath (2) all sub-paths of the packagePath (3) all parts for a path element that is delimited by a dash and (4) all parts of a path element that is delimited by a dot, except for the last element.
GetFromSearchDocuments retrieves the module path and version for the given package path from the search_documents table.
No description provided by the author
GetSymbolHistoryForBuildContext returns a map of the first version when a symbol name is added to the API for the specified build context, to the symbol name, to the UnitSymbol struct.
GetSymbolHistoryFromTable returns a SymbolHistory, which is a representation of the first version when a symbol is added to an API.
GetSymbolHistoryWithPackageSymbols fetches symbol history data by using data from package_symbols and documentation_symbols, and computed using symbol.IntroducedHistory.
InsertSampleDirectory tree inserts a set of packages for testing GetUnit and frontend.FetchDirectoryDetails.
MustInsertModule inserts m into db, calling t.Fatal on error.
No description provided by the author
No description provided by the author
New returns a new postgres DB.
NewBypassingLicenseCheck returns a new postgres DB that bypasses license checks.
ResetTestDB truncates all data from the given test DB.
RunDBTests is a wrapper that runs the given testing suite in a test database named dbName.
RunDBTestsInParallel sets up numDBs databases, then runs the tests.
SearchDocumentSections computes the B and C sections of a Postgres search document from a package synopsis and a README.
SetupTestDB creates a test database named dbName if it does not already exist, and migrates it to the latest schema from the migrations directory.
UpsertSearchDocument inserts a row in search_documents for the given package.
# Variables
SearchLatencyDistribution aggregates search request latency by search query type.
SearchResponseCount counts search responses by search query type.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
UserInfo holds information about a DB user.
VersionStats holds statistics extracted from the module_version_states table.