You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

middleware.tpl 389 B

12345678910111213141516171819
  1. package middleware
  2. import "net/http"
  3. type {{.name}} struct {
  4. }
  5. func New{{.name}}() *{{.name}} {
  6. return &{{.name}}{}
  7. }
  8. func (m *{{.name}})Handle(next http.HandlerFunc) http.HandlerFunc {
  9. return func(w http.ResponseWriter, r *http.Request) {
  10. // TODO generate middleware implement function, delete after code implementation
  11. // Passthrough to next handler if need
  12. next(w, r)
  13. }
  14. }

PCM is positioned as Software stack over Cloud, aiming to build the standards and ecology of heterogeneous cloud collaboration for JCC in a non intrusive and autonomous peer-to-peer manner.