An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 4.0% on proxy.golang.org
Top 1.2% dependent packages on proxy.golang.org
Top 0.3% dependent repos on proxy.golang.org
Top 8.9% forks on proxy.golang.org
Top 0.5% docker downloads on proxy.golang.org

proxy.golang.org : github.com/pingcap/errcode

Package errcode facilitates standardized API error codes. The goal is that clients can reliably understand errors by checking against immutable error codes This godoc documents usage. For broader context, see https://github.com/pingcap/errcode/tree/master/README.md Error codes are represented as strings by CodeStr (see CodeStr documentation). This package is designed to have few opinions and be a starting point for how you want to do errors in your project. The main requirement is to satisfy the ErrorCode interface by attaching a Code to an Error. See the documentation of ErrorCode. Additional optional interfaces HasClientData, HasOperation, Causer, and StackTracer are provided for extensibility in creating structured error data representations. Hierarchies are supported: a Code can point to a parent. This is used in the HTTPCode implementation to inherit HTTP codes found with MetaDataFromAncestors. The hierarchy is present in the Code's string representation with a dot separation. A few generic top-level error codes are provided (see the variables section of the doc). You are encouraged to create your own error codes customized to your application rather than solely using generic errors. See NewJSONFormat for an opinion on how to send back meta data about errors with the error data to a client. JSONFormat includes a body of response data (the "data field") that is by default the data from the Error serialized to JSON. Stack traces are automatically added by NewInternalErr and show up as the Stack field in JSONFormat. Errors can be grouped with Combine() and ungrouped via Errors() which show up as the Others field in JSONFormat. To extract any ErrorCodes from an error, use CodeChain(). This extracts error codes without information loss (using ChainContext).

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/pingcap/errcode
License: Apache-2.0
Latest release: about 6 years ago
First release: about 6 years ago
Namespace: github.com/pingcap
Dependent packages: 18
Dependent repositories: 388
Stars: 14 on GitHub
Forks: 4 on GitHub
Docker dependents: 24
Docker downloads: 4,053,522
See more repository details: repos.ecosyste.ms
Last synced: 1 day ago

Top 6.6% on proxy.golang.org
github.com/tikv/pd/tests/integrations/mcs v0.0.0-20231229060928-cf22c0434e54
323 versions - Latest release: over 1 year ago - 1 dependent repositories
github.com/wwu/pd v1.0.1
Placement driver for TiKV
1 version - Latest release: over 1 year ago - 0 stars on GitHub
github.com/gottingen/tm/tests/integrations/mcs v0.0.0-20230615191752-a6ee7d681f31
titan search meta service
1 version - Latest release: almost 2 years ago - 0 stars on GitHub
github.com/gottingen/tm v0.1.0
titan search meta service
1 version - Latest release: almost 2 years ago - 0 stars on GitHub
Top 2.0% on proxy.golang.org
github.com/pingcap-incubator/tinykv v0.0.0-20230424031214-86a0b62a6c4e
A course to build distributed key-value service based on TiKV model
4 versions - Latest release: about 2 years ago - 1 dependent package - 89 dependent repositories - 2,469 stars on GitHub
Top 4.7% on proxy.golang.org
github.com/tikv/pd/tests/mcs v0.0.0-20230324033443-79ec29cee8db
Placement driver for TiKV
58 versions - Latest release: about 2 years ago - 951 stars on GitHub
Top 9.0% on proxy.golang.org
github.com/HJiefeng/tinykv v0.0.0-20220408102403-5d74a296e1ae
A course to build distributed key-value service based on TiKV model
1 version - Latest release: about 3 years ago - 0 stars on GitHub
github.com/s3nt3/sqlvine v0.0.0-20220110064537-469cf1ef7684
A coverage-guided fuzzing framework for TiDB.
4 versions - Latest release: over 3 years ago - 1 dependent repositories - 1 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/BugenZhao/sql-masker v0.0.0-20211129092053-8b6b44198573
1 version - Latest release: over 3 years ago - 1 stars on GitHub
Top 6.8% on proxy.golang.org
github.hscsec.cn/pingcap/dm v1.0.7
13 versions - Latest release: almost 4 years ago
Top 1.6% on proxy.golang.org
github.com/pingcap/dm v1.0.7
Data Migration Platform
13 versions - Latest release: almost 4 years ago - 21 dependent packages - 18 dependent repositories - 457 stars on GitHub
Top 1.1% on proxy.golang.org
github.com/pingcap/pd/v4 v4.0.4
Placement driver for TiKV
9 versions - Latest release: almost 5 years ago - 30 dependent packages - 76 dependent repositories - 950 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/tikv/pd/v4 v4.0.4
Placement driver for TiKV
9 versions - Latest release: almost 5 years ago - 950 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/xhebox/pd/v4 v4.0.3
Placement driver for TiKV
11 versions - Latest release: almost 5 years ago - 0 stars on GitHub
Top 7.1% on proxy.golang.org
github.com/actiontech/dm v1.0.6 removed
11 versions - Latest release: almost 5 years ago - 1 dependent repositories
Top 7.2% on proxy.golang.org
github.com/pingcap/pd/v3 v3.1.2
35 versions - Latest release: about 5 years ago - 1 dependent repositories
Top 4.7% on proxy.golang.org
github.com/tikv/pd/v3 v3.1.2
Placement driver for TiKV
35 versions - Latest release: about 5 years ago - 951 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/mahjonp/pd/v4 v4.0.0-rc
Placement driver for TiKV
5 versions - Latest release: about 5 years ago - 0 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/shafreeck/pd/v3 v3.2.0
Placement driver for TiKV
1 version - Latest release: over 5 years ago - 0 stars on GitHub
Top 9.0% on proxy.golang.org
github.com/siddontang/dm v1.0.2
Data Migration Platform
6 versions - Latest release: over 5 years ago - 1 stars on GitHub
Past Dependents
Include Past Dependents

Check this option to include packages that no longer depend on this package in their latest version but previously did.