jexia / semaphore

Take control of your data, connect with anything, and expose it anywhere through protocols such as HTTP, GraphQL, and gRPC.

Home Page:https://jexia.github.io/semaphore/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go middleware API

jeroenrinzema opened this issue · comments

A Go middleware API should be introduced to allow additional features to be developed upon Maestro. Implementations such as the open tracing API are great use-cases.

// example middleware initialization
maestro.New(
  maestro.WithMiddleware(tracing.New())
)

Middlewares should be able to register to various events inside maestro such as BeforeFlow, AfterFlow and OnFlowSuccess.