update renovate.json

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-02-12 12:39:32 +03:00
parent c5d305ef01
commit fc55098637
3 changed files with 26 additions and 4 deletions

View File

@@ -22,6 +22,7 @@ import (
{{- if ne (lenght $errmsg) 0 }}
"fmt"
{{- end }}
// "net/http"
micro_client "github.com/unistack-org/micro/v3/client"
micro_server "github.com/unistack-org/micro/v3/server"
@@ -178,6 +179,13 @@ func (h *{{$ServiceName | lowerFirst}}Handler) {{.Name}}(ctx context.Context, re
}
{{- end}}
/*
func (h *{{$ServiceName | lowerFirst}}Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
fmt.Printf("new request: %#+v\n", r)
// HANDLE ALL STUFF
}
*/
{{if or (.ServerStreaming) (.ClientStreaming)}}
type {{$ServiceName | lowerFirst}}{{.Name}}Stream struct {
stream micro_server.Stream
@@ -245,6 +253,7 @@ func Register{{$ServiceName}}Handler(s micro_server.Server, sh {{$ServiceName}}H
{{.Name}}(context.Context, *{{$reqMethod}}, *{{$rspMethod}}) error
{{- end}}
{{- end}}
// ServeHTTP(http.ResponseWriter, *http.Request)
}
type {{$ServiceName}} struct {
{{$ServiceName | lowerFirst}}