Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Debian/dcs
/ types & classes
Types & classes
198 in github.com/Debian/dcs
⨍
Functions
1,028
◇
Types & classes
198
↓ 16 callers
TypeAlias
Trigram
internal/index/types.go:7
↓ 4 callers
TypeAlias
contextKey
contextKeys are used to identify the type of value in the context. Since these are string, it is possible to get a short description of the context ke
internal/openapiclient/configuration.go:21
↓ 3 callers
TypeAlias
postEntry
A postEntry is an in-memory (trigram, file#) pair.
index/write.go:84
↓ 2 callers
TypeAlias
pointerByRanking
cmd/dcs-web/querymanager.go:113
↓ 1 callers
TypeAlias
flags
The flags record state about a position between bytes in the text.
regexp/match.go:38
Struct
APIClient
APIClient manages communication with the Debian Code Search API v1.4.0 In most cases there should be only one, shared, APIClient.
internal/openapiclient/client.go:43
Struct
APIKey
APIKey provides API key based authentication to a request passed via context using ContextAPIKey
internal/openapiclient/configuration.go:48
Struct
APIResponse
internal/openapiclient/response.go:17
Struct
BasicAuth
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth
internal/openapiclient/configuration.go:42
Struct
Configuration
internal/openapiclient/configuration.go:53
Interface
DCSClient
DCSClient is the client API for DCS service. For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/googl
internal/proto/dcspb/dcs_grpc.pb.go:21
Interface
DCSServer
DCSServer is the server API for DCS service. All implementations must embed UnimplementedDCSServer for forward compatibility
internal/proto/dcspb/dcs_grpc.pb.go:101
Interface
DCS_ResultsClient
internal/proto/dcspb/dcs_grpc.pb.go:81
Interface
DCS_ResultsServer
internal/proto/dcspb/dcs_grpc.pb.go:159
Interface
DCS_SearchClient
internal/proto/dcspb/dcs_grpc.pb.go:49
Interface
DCS_SearchServer
internal/proto/dcspb/dcs_grpc.pb.go:138
Struct
Decoder
See also https://docs.gitlab.com/ee/api/oauth2.html TODO: reference this code from https://wiki.debian.org/Salsa/SSO
internal/apikeys/apikeys.go:23
Struct
DeltaReader
A DeltaReader reads up to 256 deltas at a time (i.e. one TurboPFor block), which is useful for copying index data in a windowed fashion (for merging).
internal/index/read.go:269
Struct
DocidReader
internal/index/read.go:28
FuncType
ErrFunc
An ErrFunc is called for each error adding a file to the index, allowing the caller to take action (e.g. delete the not added files to conserve disk s
internal/index/write.go:87
Struct
Error
internal/proto/dcspb/dcs.pb.go:197
Struct
Error
cmd/dcs-web/querymanager.go:74
TypeAlias
Error_ErrorType
internal/proto/dcspb/dcs.pb.go:26
Struct
Event
internal/proto/dcspb/dcs.pb.go:378
Struct
Event_Error
internal/proto/dcspb/dcs.pb.go:462
Struct
Event_Match
internal/proto/dcspb/dcs.pb.go:470
Struct
Event_Pagination
internal/proto/dcspb/dcs.pb.go:474
Struct
Event_Progress
internal/proto/dcspb/dcs.pb.go:466
TypeAlias
Event_Type
internal/proto/dcspb/dcs.pb.go:78
Struct
File
internal/mmap/mmap.go:11
Struct
FileReply
internal/proto/sourcebackendpb/sourcebackend.pb.go:118
Struct
FileRequest
internal/proto/sourcebackendpb/sourcebackend.pb.go:71
Struct
GarbageCollectReply
internal/proto/packageimporterpb/packageimporter.pb.go:334
Struct
GarbageCollectRequest
internal/proto/packageimporterpb/packageimporter.pb.go:287
Struct
GenericSwaggerError
GenericSwaggerError Provides access to the body, error and model on returned errors.
internal/openapiclient/client.go:456
Struct
Grep
TODO:
regexp/match.go:353
FuncType
IgnoreFunc
An IgnoreFunc returns a non-nil error describing the reason why the file should not be added to the index, or nil if it should be added.
internal/index/write.go:82
Struct
ImportReply
internal/proto/packageimporterpb/packageimporter.pb.go:173
Struct
ImportRequest
internal/proto/packageimporterpb/packageimporter.pb.go:110
Struct
Index
internal/index/read.go:374
Struct
Index
An Index implements read-only access to a trigram index.
index/read.go:83
Struct
IndexWriter
An IndexWriter creates an on-disk index corresponding to a set of files.
index/write.go:41
Struct
Instance
internal/localdcs/localdcs.go:286
Struct
Key
internal/apikeys/apikeys.go:74
Struct
Match
regexp/match.go:400
Struct
Match
internal/proto/sourcebackendpb/sourcebackend.pb.go:230
Struct
Match
internal/index/read.go:409
Struct
MergeReply
internal/proto/packageimporterpb/packageimporter.pb.go:249
Struct
MergeRequest
internal/proto/packageimporterpb/packageimporter.pb.go:211
Struct
MetaEntry
A MetaEntry specifies the offset (in the corresponding data file) and number of entries for each trigram.
internal/index/types.go:11
Struct
Options
internal/apikeys/apikeys.go:83
Struct
PForReader
internal/index/read.go:100
Interface
PackageImporterClient
PackageImporterClient is the client API for PackageImporter service. For semantics around ctx use and closing/ending streaming RPCs, please refer to
internal/proto/packageimporterpb/packageimporter_grpc.pb.go:20
Interface
PackageImporterServer
PackageImporterServer is the server API for PackageImporter service. All implementations must embed UnimplementedPackageImporterServer for forward com
internal/proto/packageimporterpb/packageimporter_grpc.pb.go:101
Interface
PackageImporter_ImportClient
internal/proto/packageimporterpb/packageimporter_grpc.pb.go:55
Interface
PackageImporter_ImportServer
internal/proto/packageimporterpb/packageimporter_grpc.pb.go:162
Struct
PackageSearchResult
internal/openapiclient/model_package_search_result.go:13
Struct
PackagesReply
internal/proto/packageimporterpb/packageimporter.pb.go:63
Struct
PackagesRequest
internal/proto/packageimporterpb/packageimporter.pb.go:25
Struct
Pagination
internal/proto/dcspb/dcs.pb.go:323
Struct
Pagination
cmd/dcs-web/querymanager.go:463
Struct
PerPackageResult
internal/api/api.go:12
Struct
PosrelReader
internal/index/read.go:310
Struct
Progress
internal/proto/dcspb/dcs.pb.go:252
Struct
ProgressUpdate
internal/proto/sourcebackendpb/sourcebackend.pb.go:354
Struct
ProgressUpdate
cmd/dcs-web/querymanager.go:82
Struct
Query
A Query is a matching machine, like a regular expression, that matches some text and not other text. When we compute a Query from a regexp, the Query
internal/index/regexp.go:23
Struct
Query
cmd/dcs-web/dcs-web.go:234
Struct
Query
A Query is a matching machine, like a regular expression, that matches some text and not other text. When we compute a Query from a regexp, the Query
index/regexp.go:23
TypeAlias
QueryOp
internal/index/regexp.go:29
TypeAlias
QueryOp
index/regexp.go:29
Struct
QueryStr
Represents a query string with pre-compiled regular expressions for faster matching.
ranking/querystr.go:11
Struct
RankingOpts
ranking/opts.go:10
Struct
Regexp
Regexp is the representation of a compiled regular expression. A Regexp is NOT SAFE for concurrent use by multiple goroutines.
regexp/regexp.go:17
Struct
ReplaceIndexReply
internal/proto/sourcebackendpb/sourcebackend.pb.go:519
Struct
ReplaceIndexRequest
internal/proto/sourcebackendpb/sourcebackend.pb.go:472
Struct
ResultPath
The regular expression trigram index provides us a path to a potential result. This data structure represents such a path and allows for ranking and s
ranking/pre-ranking.go:47
TypeAlias
ResultPaths
ranking/pre-ranking.go:105
Struct
ResultsRequest
internal/proto/dcspb/dcs.pb.go:486
Struct
SearchApiSearchOpts
* SearchApiService Searches through source code Performs a search through the full Debian Code Search corpus, blocking until all results are available
internal/openapiclient/api_search.go:40
Struct
SearchApiSearchperpackageOpts
* SearchApiService Like /search, but aggregates per package The search results are currently sorted arbitrarily, but we intend to sort them by ranking
internal/openapiclient/api_search.go:150
TypeAlias
SearchApiService
internal/openapiclient/api_search.go:27
Struct
SearchReply
internal/proto/sourcebackendpb/sourcebackend.pb.go:409
TypeAlias
SearchReply_Type
internal/proto/sourcebackendpb/sourcebackend.pb.go:25
Struct
SearchRequest
internal/proto/dcspb/dcs.pb.go:133
Struct
SearchRequest
internal/proto/sourcebackendpb/sourcebackend.pb.go:165
Struct
SearchResult
internal/api/api.go:3
Struct
SearchResult
A search result matching the specified query. You can use sources.debian.org to view the file contents. See https://github.com/Debian/dcs/blob/master/
internal/openapiclient/model_search_result.go:14
Struct
Server
internal/sourcebackend/sourcebackend.go:138
Interface
SourceBackendClient
SourceBackendClient is the client API for SourceBackend service. For semantics around ctx use and closing/ending streaming RPCs, please refer to http
internal/proto/sourcebackendpb/sourcebackend_grpc.pb.go:20
Interface
SourceBackendServer
SourceBackendServer is the server API for SourceBackend service. All implementations must embed UnimplementedSourceBackendServer for forward compatibi
internal/proto/sourcebackendpb/sourcebackend_grpc.pb.go:92
Interface
SourceBackend_SearchClient
internal/proto/sourcebackendpb/sourcebackend_grpc.pb.go:63
Interface
SourceBackend_SearchServer
internal/proto/sourcebackendpb/sourcebackend_grpc.pb.go:156
Struct
SourceReply
internal/sourcebackend/sourcebackend.go:131
Struct
StoredRanking
Represents an entry from our ranking database (determined by using the meta information about source packages).
ranking/pre-ranking.go:23
Struct
StringPool
stringpool/stringpool.go:11
Struct
StructuredVersion
internal/version/version.go:5
FuncType
SuccessFunc
A SuccessFunc is called for each file which was successfully added to the index.
internal/index/write.go:91
Struct
UnimplementedDCSServer
UnimplementedDCSServer must be embedded to have forward compatible implementations.
internal/proto/dcspb/dcs_grpc.pb.go:108
Struct
UnimplementedPackageImporterServer
UnimplementedPackageImporterServer must be embedded to have forward compatible implementations.
internal/proto/packageimporterpb/packageimporter_grpc.pb.go:112
next →
1–100 of 198, ranked by callers