func golang.org/x/pkgsite/internal/derrors.ToStatus
40 uses
golang.org/x/pkgsite/internal/derrors (current package)
derrors.go#L177: func ToStatus(err error) int {
derrors.go#L194: return ToStatus(ReprocessStatusOK)
derrors.go#L195: case ToStatus(HasIncompletePackages):
derrors.go#L196: return ToStatus(ReprocessHasIncompletePackages)
derrors.go#L197: case ToStatus(BadModule):
derrors.go#L198: return ToStatus(ReprocessBadModule)
derrors.go#L199: case ToStatus(AlternativeModule):
derrors.go#L200: return ToStatus(ReprocessAlternative)
derrors.go#L201: case ToStatus(DBModuleInsertInvalid):
derrors.go#L202: return ToStatus(ReprocessDBModuleInsertInvalid)
golang.org/x/pkgsite/internal/fetch
fetch.go#L139: fr.Status = derrors.ToStatus(fr.Error)
fetch.go#L240: fr.Status = derrors.ToStatus(derrors.HasIncompletePackages)
fetchlocal.go#L49: fr.Status = derrors.ToStatus(fr.Error)
fetchlocal.go#L120: fr.Status = derrors.ToStatus(derrors.HasIncompletePackages)
package.go#L145: Status: derrors.ToStatus(derrors.PackageBadImportPath),
package.go#L152: status := derrors.ToStatus(derrors.PackageMaxFileSizeLimitExceeded)
package.go#L228: Status: derrors.ToStatus(status),
golang.org/x/pkgsite/internal/frontend
404.go#L87: case http.StatusFound, derrors.ToStatus(derrors.AlternativeModule):
404.go#L203: vm.Status == derrors.ToStatus(derrors.AlternativeModule) ||
404.go#L204: vm.Status == derrors.ToStatus(derrors.BadModule)) {
fetch.go#L162: if fr.status == derrors.ToStatus(derrors.AlternativeModule) {
fetch.go#L255: case derrors.ToStatus(derrors.AlternativeModule):
fetch.go#L270: case derrors.ToStatus(derrors.BadModule):
fetch.go#L398: status: derrors.ToStatus(err),
fetch.go#L414: derrors.ToStatus(derrors.DBModuleInsertInvalid),
fetch.go#L440: case derrors.ToStatus(derrors.AlternativeModule):
fetch.go#L451: if fr.status >= derrors.ToStatus(derrors.ReprocessStatusOK) {
golang.org/x/pkgsite/internal/middleware
errorreporting.go#L36: if w2.status == derrors.ToStatus(derrors.ProxyTimedOut) {
errorreporting.go#L40: if w2.status == derrors.ToStatus(derrors.ProxyError) {
golang.org/x/pkgsite/internal/postgres
clean.go#L79: status := derrors.ToStatus(derrors.Cleaned)
insert_module.go#L206: return status == derrors.ToStatus(derrors.AlternativeModule), nil
requeue.go#L27: derrors.ToStatus(derrors.HasIncompletePackages),
requeue.go#L28: derrors.ToStatus(derrors.DBModuleInsertInvalid),
golang.org/x/pkgsite/internal/worker
fetch.go#L79: return derrors.ToStatus(err), "", err
fetch.go#L119: if ft.Status != derrors.ToStatus(derrors.AlternativeModule) || lmv == nil || lmv.CookedVersion != ft.ResolvedVersion {
fetch.go#L177: ft.Status = derrors.ToStatus(ft.Error)
fetch.go#L238: if ft.Status >= 500 && ft.Status != derrors.ToStatus(derrors.ProxyTimedOut) {
fetch.go#L256: ft.Status = derrors.ToStatus(err)
fetch.go#L386: if ft.Status == derrors.ToStatus(derrors.AlternativeModule) {
fetch.go#L430: status = derrors.ToStatus(err)
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |