Versions in this module Expand all Collapse all v1 v1.0.0 Aug 31, 2026 Changes in this version + func NewGetImportedByRequest(server string, path string, params *GetImportedByParams) (*http.Request, error) + func NewGetModuleRequest(server string, path string, params *GetModuleParams) (*http.Request, error) + func NewGetPackageRequest(server string, path string, params *GetPackageParams) (*http.Request, error) + func NewGetPackagesRequest(server string, path string, params *GetPackagesParams) (*http.Request, error) + func NewGetSearchRequest(server string, params *GetSearchParams) (*http.Request, error) + func NewGetSymbolsRequest(server string, path string, params *GetSymbolsParams) (*http.Request, error) + func NewGetVersionsRequest(server string, path string, params *GetVersionsParams) (*http.Request, error) + func NewGetVulnsRequest(server string, path string, params *GetVulnsParams) (*http.Request, error) + type Candidate struct + ModulePath *string + PackagePath *string + type Client struct + Client HttpRequestDoer + RequestEditors []RequestEditorFn + Server string + func NewClient(server string, opts ...ClientOption) (*Client, error) + func (c *Client) GetImportedBy(ctx context.Context, path string, params *GetImportedByParams, ...) (*http.Response, error) + func (c *Client) GetModule(ctx context.Context, path string, params *GetModuleParams, ...) (*http.Response, error) + func (c *Client) GetPackage(ctx context.Context, path string, params *GetPackageParams, ...) (*http.Response, error) + func (c *Client) GetPackages(ctx context.Context, path string, params *GetPackagesParams, ...) (*http.Response, error) + func (c *Client) GetSearch(ctx context.Context, params *GetSearchParams, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) GetSymbols(ctx context.Context, path string, params *GetSymbolsParams, ...) (*http.Response, error) + func (c *Client) GetVersions(ctx context.Context, path string, params *GetVersionsParams, ...) (*http.Response, error) + func (c *Client) GetVulns(ctx context.Context, path string, params *GetVulnsParams, ...) (*http.Response, error) + type ClientInterface interface + GetImportedBy func(ctx context.Context, path string, params *GetImportedByParams, ...) (*http.Response, error) + GetModule func(ctx context.Context, path string, params *GetModuleParams, ...) (*http.Response, error) + GetPackage func(ctx context.Context, path string, params *GetPackageParams, ...) (*http.Response, error) + GetPackages func(ctx context.Context, path string, params *GetPackagesParams, ...) (*http.Response, error) + GetSearch func(ctx context.Context, params *GetSearchParams, reqEditors ...RequestEditorFn) (*http.Response, error) + GetSymbols func(ctx context.Context, path string, params *GetSymbolsParams, ...) (*http.Response, error) + GetVersions func(ctx context.Context, path string, params *GetVersionsParams, ...) (*http.Response, error) + GetVulns func(ctx context.Context, path string, params *GetVulnsParams, ...) (*http.Response, error) + type ClientOption func(*Client) error + func WithBaseURL(baseURL string) ClientOption + func WithHTTPClient(doer HttpRequestDoer) ClientOption + func WithRequestEditorFn(fn RequestEditorFn) ClientOption + type ClientWithResponses struct + func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) + func (c *ClientWithResponses) GetImportedByWithResponse(ctx context.Context, path string, params *GetImportedByParams, ...) (*GetImportedByResponse, error) + func (c *ClientWithResponses) GetModuleWithResponse(ctx context.Context, path string, params *GetModuleParams, ...) (*GetModuleResponse, error) + func (c *ClientWithResponses) GetPackageWithResponse(ctx context.Context, path string, params *GetPackageParams, ...) (*GetPackageResponse, error) + func (c *ClientWithResponses) GetPackagesWithResponse(ctx context.Context, path string, params *GetPackagesParams, ...) (*GetPackagesResponse, error) + func (c *ClientWithResponses) GetSearchWithResponse(ctx context.Context, params *GetSearchParams, reqEditors ...RequestEditorFn) (*GetSearchResponse, error) + func (c *ClientWithResponses) GetSymbolsWithResponse(ctx context.Context, path string, params *GetSymbolsParams, ...) (*GetSymbolsResponse, error) + func (c *ClientWithResponses) GetVersionsWithResponse(ctx context.Context, path string, params *GetVersionsParams, ...) (*GetVersionsResponse, error) + func (c *ClientWithResponses) GetVulnsWithResponse(ctx context.Context, path string, params *GetVulnsParams, ...) (*GetVulnsResponse, error) + type ClientWithResponsesInterface interface + GetImportedByWithResponse func(ctx context.Context, path string, params *GetImportedByParams, ...) (*GetImportedByResponse, error) + GetModuleWithResponse func(ctx context.Context, path string, params *GetModuleParams, ...) (*GetModuleResponse, error) + GetPackageWithResponse func(ctx context.Context, path string, params *GetPackageParams, ...) (*GetPackageResponse, error) + GetPackagesWithResponse func(ctx context.Context, path string, params *GetPackagesParams, ...) (*GetPackagesResponse, error) + GetSearchWithResponse func(ctx context.Context, params *GetSearchParams, reqEditors ...RequestEditorFn) (*GetSearchResponse, error) + GetSymbolsWithResponse func(ctx context.Context, path string, params *GetSymbolsParams, ...) (*GetSymbolsResponse, error) + GetVersionsWithResponse func(ctx context.Context, path string, params *GetVersionsParams, ...) (*GetVersionsResponse, error) + GetVulnsWithResponse func(ctx context.Context, path string, params *GetVulnsParams, ...) (*GetVulnsResponse, error) + type Error struct + Candidates *[]Candidate + Code *int + Fixes *[]string + Message *string + type GetImportedByParams struct + Filter *string + Limit *int + Module *string + Token *string + Version *string + type GetImportedByResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *PackageImportedBy + JSONDefault *Error + func ParseGetImportedByResponse(rsp *http.Response) (*GetImportedByResponse, error) + func (r GetImportedByResponse) ContentType() string + func (r GetImportedByResponse) Status() string + func (r GetImportedByResponse) StatusCode() int + type GetModuleParams struct + Licenses *bool + Readme *bool + Version *string + type GetModuleResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *Module + JSONDefault *Error + func ParseGetModuleResponse(rsp *http.Response) (*GetModuleResponse, error) + func (r GetModuleResponse) ContentType() string + func (r GetModuleResponse) Status() string + func (r GetModuleResponse) StatusCode() int + type GetPackageParams struct + Doc *string + Examples *bool + Goarch *string + Goos *string + Imports *bool + Licenses *bool + Module *string + Version *string + type GetPackageResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *Package + JSONDefault *Error + func ParseGetPackageResponse(rsp *http.Response) (*GetPackageResponse, error) + func (r GetPackageResponse) ContentType() string + func (r GetPackageResponse) Status() string + func (r GetPackageResponse) StatusCode() int + type GetPackagesParams struct + Filter *string + Limit *int + Token *string + Version *string + type GetPackagesResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *PackagesResponse + JSONDefault *Error + func ParseGetPackagesResponse(rsp *http.Response) (*GetPackagesResponse, error) + func (r GetPackagesResponse) ContentType() string + func (r GetPackagesResponse) Status() string + func (r GetPackagesResponse) StatusCode() int + type GetSearchParams struct + Filter *string + Limit *int + Q *string + Symbol *string + Token *string + type GetSearchResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *PaginatedResponseSearchResult + JSONDefault *Error + func ParseGetSearchResponse(rsp *http.Response) (*GetSearchResponse, error) + func (r GetSearchResponse) ContentType() string + func (r GetSearchResponse) Status() string + func (r GetSearchResponse) StatusCode() int + type GetSymbolsParams struct + Filter *string + Goarch *string + Goos *string + Limit *int + Module *string + Token *string + Version *string + type GetSymbolsResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *PackageSymbols + JSONDefault *Error + func ParseGetSymbolsResponse(rsp *http.Response) (*GetSymbolsResponse, error) + func (r GetSymbolsResponse) ContentType() string + func (r GetSymbolsResponse) Status() string + func (r GetSymbolsResponse) StatusCode() int + type GetVersionsParams struct + Filter *string + Limit *int + Pseudo *bool + Token *string + type GetVersionsResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *PaginatedResponseModuleVersion + JSONDefault *Error + func ParseGetVersionsResponse(rsp *http.Response) (*GetVersionsResponse, error) + func (r GetVersionsResponse) ContentType() string + func (r GetVersionsResponse) Status() string + func (r GetVersionsResponse) StatusCode() int + type GetVulnsParams struct + Filter *string + Limit *int + Module *string + Token *string + Version *string + type GetVulnsResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *PaginatedResponseVulnerability + JSONDefault *Error + func ParseGetVulnsResponse(rsp *http.Response) (*GetVulnsResponse, error) + func (r GetVulnsResponse) ContentType() string + func (r GetVulnsResponse) Status() string + func (r GetVulnsResponse) StatusCode() int + type HttpRequestDoer interface + Do func(req *http.Request) (*http.Response, error) + type License struct + Contents *string + FilePath *string + Types *[]string + type Module struct + CommitTime *time.Time + GoModContents *string + HasGoMod *bool + IsLatest *bool + IsRedistributable *bool + IsStandardLibrary *bool + Licenses *[]License + Path *string + Readme *Readme + RepoUrl *string + Version *string + type ModuleVersion struct + CommitTime *time.Time + Deprecated *bool + DeprecationReason *string + HasGoMod *bool + IsRedistributable *bool + LatestVersion *string + ModulePath *string + Retracted *bool + RetractionReason *string + Version *string + type Package struct + Docs *string + Goarch *string + Goos *string + Imports *[]string + IsLatest *bool + IsRedistributable *bool + IsStandardLibrary *bool + Licenses *[]License + ModulePath *string + Name *string + Path *string + Synopsis *string + Version *string + type PackageImportedBy struct + ImportedBy *PaginatedResponseString + ModulePath *string + Version *string + type PackageInfo struct + IsRedistributable *bool + Name *string + Path *string + Synopsis *string + type PackageSymbols struct + ModulePath *string + Symbols *PaginatedResponseSymbol + Version *string + func (p *PackageSymbols) SymbolResults() []SymbolResult + type PackagesResponse struct + IsStandardLibrary *bool + ModulePath *string + Packages *PaginatedResponsePackageInfo + Version *string + type PaginatedResponseModuleVersion struct + Items *[]ModuleVersion + NextPageToken *string + Total *int + func (p *PaginatedResponseModuleVersion) VersionResults() []VersionResult + type PaginatedResponsePackageInfo struct + Items *[]PackageInfo + NextPageToken *string + Total *int + type PaginatedResponseSearchResult struct + Items *[]SearchResult + NextPageToken *string + Total *int + func (p *PaginatedResponseSearchResult) SearchResults() []SearchResultData + type PaginatedResponseString struct + Items *[]string + NextPageToken *string + Total *int + type PaginatedResponseSymbol struct + Items *[]Symbol + NextPageToken *string + Total *int + func (p *PaginatedResponseSymbol) SymbolResults() []SymbolResult + type PaginatedResponseVulnerability struct + Items *[]Vulnerability + NextPageToken *string + Total *int + type Readme struct + Contents *string + Filepath *string + type RequestEditorFn func(ctx context.Context, req *http.Request) error + type SearchResult struct + ModulePath *string + PackagePath *string + Synopsis *string + Version *string + type SearchResultData struct + ModulePath string + PackagePath string + Synopsis string + Version string + type Symbol struct + Kind *string + Name *string + Parent *string + Synopsis *string + type SymbolResult struct + Kind string + Name string + Synopsis string + type VersionResult struct + CommitTime *time.Time + Version string + type Vulnerability struct + Details *string + FixedVersion *string + Id *string + Summary *string