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
github.com/tikv/pd/tests/integrations/mcs v0.0.0-20231229060928-cf22c0434e54
323 versions - Latest release: over 1 year ago - 1 dependent repositoriesgithub.com/wwu/pd v1.0.1
Placement driver for TiKV1 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 service1 version - Latest release: almost 2 years ago - 0 stars on GitHub
github.com/gottingen/tm v0.1.0
titan search meta service1 version - Latest release: almost 2 years ago - 0 stars on GitHub
github.com/pingcap-incubator/tinykv v0.0.0-20230424031214-86a0b62a6c4e
A course to build distributed key-value service based on TiKV model4 versions - Latest release: about 2 years ago - 1 dependent package - 89 dependent repositories - 2,469 stars on GitHub
github.com/tikv/pd/tests/mcs v0.0.0-20230324033443-79ec29cee8db
Placement driver for TiKV58 versions - Latest release: about 2 years ago - 951 stars on GitHub
github.com/HJiefeng/tinykv v0.0.0-20220408102403-5d74a296e1ae
A course to build distributed key-value service based on TiKV model1 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
github.com/BugenZhao/sql-masker v0.0.0-20211129092053-8b6b44198573
1 version - Latest release: over 3 years ago - 1 stars on GitHubgithub.hscsec.cn/pingcap/dm v1.0.7
13 versions - Latest release: almost 4 years agogithub.com/pingcap/dm v1.0.7
Data Migration Platform13 versions - Latest release: almost 4 years ago - 21 dependent packages - 18 dependent repositories - 457 stars on GitHub
github.com/pingcap/pd/v4 v4.0.4
Placement driver for TiKV9 versions - Latest release: almost 5 years ago - 30 dependent packages - 76 dependent repositories - 950 stars on GitHub
github.com/tikv/pd/v4 v4.0.4
Placement driver for TiKV9 versions - Latest release: almost 5 years ago - 950 stars on GitHub
github.com/xhebox/pd/v4 v4.0.3
Placement driver for TiKV11 versions - Latest release: almost 5 years ago - 0 stars on GitHub
github.com/actiontech/dm v1.0.6 removed
11 versions - Latest release: almost 5 years ago - 1 dependent repositoriesgithub.com/pingcap/pd/v3 v3.1.2
35 versions - Latest release: about 5 years ago - 1 dependent repositoriesgithub.com/tikv/pd/v3 v3.1.2
Placement driver for TiKV35 versions - Latest release: about 5 years ago - 951 stars on GitHub
github.com/mahjonp/pd/v4 v4.0.0-rc
Placement driver for TiKV5 versions - Latest release: about 5 years ago - 0 stars on GitHub
github.com/shafreeck/pd/v3 v3.2.0
Placement driver for TiKV1 version - Latest release: over 5 years ago - 0 stars on GitHub
github.com/siddontang/dm v1.0.2
Data Migration Platform6 versions - Latest release: over 5 years ago - 1 stars on GitHub
Check this option to include packages that no longer depend on this package in their latest version but previously did.