common-golang

module
v0.0.0-...-61e4c6b Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT

README

common-golang

Introduction

Some basic class libraries

Desc

  • code: convert int64 to custom code
  • elasticsearch: es client based on github.com/olivere/elastic/v7
  • etcd: etcd client based on go.etcd.io/etcd/client/v3
  • grpc: grpc client connection pool
  • http: http client
  • log: custom log library based on go.uber.org/zap
  • mongo: mongo client connection pool, which is different from the connection pool below
  • mysql: mysql client base on gorm
  • password: encrypt user password data
  • pool: generic connection pool library
  • postgres: postgres client base on gorm
  • redis: redis client
  • sqlite3: sqlite3 client base on gorm
  • unique: distributed id based on the snowflake algorithm, adding a type to the id, so that the source can be distinguished based on the id

Notes

  • kafka client: here

Directories

Path Synopsis
pkg
es
log

Jump to

Keyboard shortcuts

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