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

15
.github/renovate.json vendored
View File

@ -2,5 +2,18 @@
"extends": [ "extends": [
"config:base" "config:base"
], ],
"groupName": "all" "packageRules": [
{
"matchUpdateTypes": ["minor", "patch", "pin", "digest"],
"automerge": true
},
{
"groupName": "all deps",
"separateMajorMinor": true,
"groupSlug": "all",
"packagePatterns": [
"*"
]
}
]
} }

File diff suppressed because one or more lines are too long

View File

@ -22,6 +22,7 @@ import (
{{- if ne (lenght $errmsg) 0 }} {{- if ne (lenght $errmsg) 0 }}
"fmt" "fmt"
{{- end }} {{- end }}
// "net/http"
micro_client "github.com/unistack-org/micro/v3/client" micro_client "github.com/unistack-org/micro/v3/client"
micro_server "github.com/unistack-org/micro/v3/server" micro_server "github.com/unistack-org/micro/v3/server"
@ -178,6 +179,13 @@ func (h *{{$ServiceName | lowerFirst}}Handler) {{.Name}}(ctx context.Context, re
} }
{{- end}} {{- 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)}} {{if or (.ServerStreaming) (.ClientStreaming)}}
type {{$ServiceName | lowerFirst}}{{.Name}}Stream struct { type {{$ServiceName | lowerFirst}}{{.Name}}Stream struct {
stream micro_server.Stream 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 {{.Name}}(context.Context, *{{$reqMethod}}, *{{$rspMethod}}) error
{{- end}} {{- end}}
{{- end}} {{- end}}
// ServeHTTP(http.ResponseWriter, *http.Request)
} }
type {{$ServiceName}} struct { type {{$ServiceName}} struct {
{{$ServiceName | lowerFirst}} {{$ServiceName | lowerFirst}}