Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 1.27 KB

README.md

File metadata and controls

46 lines (34 loc) · 1.27 KB

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