iam-kit

command module
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2022 License: MIT Imports: 1 Imported by: 0

README

CI

IAM Kit

错误码

格式

错误码为6位数字,每2位为1组,分别代表服务(1-2位) + 模块(3-4位) + 错误编号(5-6位)。示例:

# 10(通用错误)+ 01(认证/授权模块)+ 05(token过期)
100105
错误码段
  1. 通用:10XXYY
  2. iam-apiserver:11XXYY
  3. iam-authz-server:12XXYY
  4. iam-pump:13XXYY
通用错误码

error_code_base.md

TODO

  • test
  • metrics
  • profiling
  • version
  • validate
  • README

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package code defines the base errors with corresponding error code.
Package code defines the base errors with corresponding error code.
Package config loads configuration from config file or environment variables.
Package config loads configuration from config file or environment variables.
Package errcoder implements `github.com/marmotedu/errors` Coder interface.
Package errcoder implements `github.com/marmotedu/errors` Coder interface.
Package httputil provide useful functions to handle http response.
Package httputil provide useful functions to handle http response.
Package logger is the logger builder.
Package logger is the logger builder.
Package meta contains API types that are common to all versions.
Package meta contains API types that are common to all versions.
Package middleware defines multiple gin middlewares.
Package middleware defines multiple gin middlewares.
auth
Package auth defines authentication strategy like Basic, Bearer.
Package auth defines authentication strategy like Basic, Bearer.
Package mongo is the mongo instance builder.
Package mongo is the mongo instance builder.
Package mysql is the mysql instance builder.
Package mysql is the mysql instance builder.
Package redis is the redis instance builder.
Package redis is the redis instance builder.
Package server is a server builder.
Package server is a server builder.
Package shutdown assumes the responsibility of graceful shutdown of the server.
Package shutdown assumes the responsibility of graceful shutdown of the server.
tools
codegen
Package codegen is a tool to automate the creation of code init function and generate document.
Package codegen is a tool to automate the creation of code init function and generate document.
Package util defines util functions for IAM platform.
Package util defines util functions for IAM platform.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL