Go to file
Kevin Franklin Kim 1e7dc782c6 feat: add keeltime
2022-01-03 13:20:06 +01:00
.github chore: pwd test 2021-12-14 16:48:46 +01:00
config feat: extend config with exampl 2021-09-14 08:55:54 +02:00
env initial commit 2021-05-18 08:34:47 +02:00
errors feat: add mongo persistance 2021-10-01 16:19:13 +02:00
example chore(deps): bump go.mongodb.org/mongo-driver in /example 2021-12-13 22:22:13 +00:00
jwt feat: add keeltime 2022-01-03 13:20:06 +01:00
log fix: add nosec comment 2021-11-08 13:42:42 +01:00
metrics docs: mark metrics as deprecated 2021-09-10 12:00:38 +02:00
net feat: add keeltime 2022-01-03 13:20:06 +01:00
persistence feat: add keeltime 2022-01-03 13:20:06 +01:00
telemetry style: gofmt 2021-09-07 22:05:16 +02:00
test feat: use global logger 2021-11-19 12:24:52 +01:00
time feat: add keeltime 2022-01-03 13:20:06 +01:00
utils/net/http revert: don't send error handler 2021-09-10 12:01:20 +02:00
.editorconfig chore: linting 2021-11-19 14:16:09 +01:00
.gitignore revert: remove jetbench 2021-11-17 13:07:09 +01:00
.golangci.yml chore: linting 2021-11-19 14:16:09 +01:00
.husky.yaml chore: add husky 2021-12-14 16:56:34 +01:00
.prettierrc.yml chore: update github workflow 2021-11-19 12:29:44 +01:00
closer.go feat: add closers 2021-09-29 13:33:56 +02:00
go.mod feat: go mod tidy 2021-12-14 16:49:59 +01:00
go.sum feat: go mod tidy 2021-12-14 16:49:59 +01:00
ldflags.go initial commit 2021-05-18 08:34:47 +02:00
LICENSE docs: add license 2021-07-26 15:58:31 +02:00
Makefile chore: pwd test 2021-11-25 15:19:35 +01:00
option.go feat: add service options 2021-09-06 22:03:39 +02:00
README.md chore: linting 2021-11-19 14:16:09 +01:00
server_test.go fix: fix test path 2021-09-14 09:21:40 +02:00
server.go refactor: remove vars 2021-11-16 15:31:00 +01:00
service.go feat: add name 2021-11-16 15:31:09 +01:00
servicehttp.go wip: remove comments 2021-11-17 11:41:03 +01:00
servicehttpprometheus.go feat: update telemetry 2021-09-06 22:15:23 +02:00
servicehttpviper.go feat: update telemetry 2021-09-06 22:15:23 +02:00
servicehttpzap.go feat: update telemetry 2021-09-06 22:15:23 +02:00
super-linter.log chore: linting 2021-11-19 14:16:09 +01:00

keel

Go Report Card godoc GitHub Super-Linter

Opinionated way to run services.

Stack

  • Zap
  • Viper
  • Open Telemetry
  • Nats
  • GoTSRPC

Examples

See the examples folder for usages

package main

import (
  "net/http"

  "github.com/foomo/keel"
)

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

  l := svr.Logger()

  svs := newService()

  svr.AddService(
    keel.NewServiceHTTP(l, "demo", ":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

Make a pull request...

License

Distributed under MIT License, please see license file within the code for more details.