Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 1.25 KB

README.md

File metadata and controls

25 lines (18 loc) · 1.25 KB

Tuttifrutti 🥝🍓🍒🍊🍌🍉

Gitlab CI pipeline status

Tuttifrutti is a framework/helper-collection/kitchen-sink library to quickly bootstrap new (micro)services at KSF Media.

Howto

Add it to the packages key in your stack.yaml:

- location:
    git: https://github.com/KSF-Media/tuttifrutti
    commit: c5dd447  # Or latest commit, or release, or `master`, etc.
  extra-dep: true

Candy

  • Prelude: use NoImplicitPrelude, and import Tuttifrutti.Prelude
  • Health endpoint: Kubernetes needs an /healthz endpoint, Tuttifrutti.Servant.Health contains Api and server for it
  • Redirect endpoint: in Tuttifrutti.Servant.Redirect you can find Api and redirect handler
  • Logging: Tuttifrutti.Log (and Tuttifrutti.Log.Handle) has all the stuff that we need to logout on stdout in fluentd/Stackdriver format with different severities
  • Http: Tuttifrutti.Http (and Tuttifrutti.Http.Handle) has a fancy Http client integrated with XRequestId, Data.Vcr, etc.
  • Time: Tuttifrutti.Time (and Tuttifrutti.Time.Handle) has helpers to manage the application time, and possibly freeze it in different ways (e.g. for VCR tests)