Skip to content

Luukvdm/mediator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mediator

GoDoc Coverage License

A mediator implementation for Golang. The goal of this package is to make using CQRS easy and testable in Golang using the mediator design pattern.

Mediator supports sending requests and publishing and subscribing to notifications. Requests and notifications are passed through a pipeline that can be used for things like logging and tracing. Mediator also makes it easy to mock sending requests. So Http and gRPC handlers can be unit tested.

Examples can be found on pkg.go.dev.

Install it with the Go CLI.

go get github.com/luukvdm/mediator