Kevin Franklin Kim fcd053491b
Some checks are pending
Test Branch / test (push) Waiting to run
Merge pull request #290 from foomo/feature/simplify-service-interface
feat: simplify service interface
2026-06-01 16:43:12 +02:00
2026-05-29 11:58:23 +02:00
2026-04-13 13:14:46 +02:00
2025-11-07 14:15:03 +01:00
2026-03-03 16:12:56 +01:00
2026-06-01 16:30:07 +02:00
2023-09-08 12:17:23 +02:00
2026-06-01 16:36:06 +02:00
2026-04-16 22:19:03 +02:00
2026-04-17 10:00:52 +02:00
2025-10-02 13:52:18 +02:00
2025-10-02 13:52:18 +02:00
2026-06-01 16:30:07 +02:00
2026-05-29 16:24:10 +02:00
2026-05-29 16:44:35 +02:00
2025-12-15 16:38:43 +01:00
2021-11-19 14:16:09 +01:00
2026-04-22 00:04:52 +02:00
2026-02-17 13:47:18 +01:00
2026-05-12 22:43:30 +02:00
2026-03-16 16:48:45 +01:00
2026-02-24 13:59:01 +01:00
2026-05-29 11:58:23 +02:00
2026-03-03 15:41:43 +01:00
2023-09-08 22:24:31 +02:00
2024-03-15 11:01:25 +01:00
2026-06-01 16:30:07 +02:00
2026-06-01 16:30:07 +02:00
2023-09-08 22:24:31 +02:00
2021-05-18 08:34:47 +02:00
2024-11-22 09:15:21 +01:00
2026-05-29 16:24:10 +02:00
2026-06-01 09:50:44 +02:00
2026-05-29 11:58:23 +02:00
2026-06-01 09:50:44 +02:00
2026-05-29 16:02:02 +02:00

Go Report Card GoDoc Coverage GitHub Stars

keel

keel

Opinionated way to run services on Kubernetes

Stack

  • Zap
  • Nats
  • Viper
  • GoTSRPC
  • Temporal
  • OpenTelemetry

Examples

See the examples folder for usages

package main

import (
  "net/http"

  "github.com/foomo/keel"
  "github.com/foomo/keel/service"
)

func main() {
  svr := keel.NewServer(
    keel.WithHTTPZapService(true),
    keel.WithHTTPViperService(true),
    keel.WithHTTPPrometheusService(true),
  )

  l := svr.Logger()

  svs := newService()

  svr.AddService(
    service.NewHTTP(l, "demo", "localhost:8080", svs),
  )

  svr.Run()
}

func newService() *http.ServeMux {
  s := http.NewServeMux()
  s.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
    w.WriteHeader(http.StatusOK)
    _, _ = w.Write([]byte("OK"))
  })
  return s
}

How to Contribute

Contributions are welcome! Please read the contributing guide.

Contributors

License

Distributed under MIT License, please read the license file for more details.

Made with ♥ foomo by bestbytes

Description
No description provided
Readme MIT 5.5 MiB
Languages
Go 99%
Makefile 1%