Skip to content

kukkar/tigerhall-kittens

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tigerhall_Kittens

Requirement

We need go1.13 or greater

go get github.com/kukkar/tigerhall-kittens

Default Middlewares

  • Recovery (It will recover from any panic in endpoint and won't stop the server)
  • Debug (It will add context value to debug the SQL, Error stack trace, Request and Response on-demand)
  • Logger (gin default logger is used to log url hit, response time and response status)
  • CORS (Cross-origin resource sharing)

Default Endpoints

  • GET / (check server is running)
  • GET /swagger/docs.json (for swagger if you have created swag document)
  • GET /debug/pprof/ (To view all available profiles)
  • GET /debug/pprof/cmdline (running program's command line, with arguments separated by NUL bytes)
  • GET /debug/pprof/profile (CPU profile)
  • POST /debug/pprof/symbol
  • GET /debug/pprof/symbol
  • GET /debug/pprof/trace (execution trace)
  • GET /debug/pprof/allocs
  • GET /debug/pprof/block (to look at the goroutine blocking profile)
  • GET /debug/pprof/goroutine (Goroutine profile report the stack traces of all current goroutines.)
  • GET /debug/pprof/heap (to look at the heap profile)
  • GET /debug/pprof/mutex (to look at the holders of contended mutexes)
  • GET /debug/pprof/threadcreate (Thread creation profile reports the sections of the program)
  • GET /otp/healtcheck (healtcheck on service based on config)

build

  • to build docker run
    • sudo docker build -t tigerhall -f Dockerfile .
  • to run docker image
    • docker run tigerhall
  • to run go tests
    • go test ...

Swagger Documentor

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published