Skip to content

Instantly share code, notes, and snippets.

@xxmatyuk
Created November 30, 2019 17:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xxmatyuk/be1ee02731d89e52fae92d77532cb4b4 to your computer and use it in GitHub Desktop.
Save xxmatyuk/be1ee02731d89e52fae92d77532cb4b4 to your computer and use it in GitHub Desktop.
package exampleservice
import (
"net/http"
)
type Service struct{}
func NewService() *Service {
return &Service{}
}
func (s *Service) WarmupRequestHandler(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
return
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment