qingwave / gocorex

Gocorex is a collection golang useful utils for golang application, distributed system and microservices.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gocorex

Gocorex is a collection golang useful utils for distributed system and microservices.

Features

Distributed Bloom Filter

Distributed Rate Limiter

Distributed Lock

Service Discovery

PubSub

Cron

Concurrency

  • Group, wrap the WaitGroup
  • ErrGroup, run groups of goroutines, context cancel when meet error
  • CtrlGroup, run special number goroutines

Metrics

Data structures

  • Set, hash set with generics
  • Heap, heap with generics
  • Queue, queue with generics
  • Ring, ring queue with generics

utils

  • trace, recoding the latency of operations
  • retry, retry operation on conditional

About

Gocorex is a collection golang useful utils for golang application, distributed system and microservices.

License:Apache License 2.0


Languages

Language:Go 100.0%