Skip to content

Commit

Permalink
template for services map
Browse files Browse the repository at this point in the history
  • Loading branch information
david-littlefarmer committed Apr 29, 2024
1 parent 63ec3bf commit 5b9762f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions types.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ var WebRPCServices = map[string][]string{
{{- end}}
}

var WebRPCServicesMap = map[string]map[string]struct{}{
{{- range $_, $service := $services}}
"{{$service.Name}}": {
{{- range $_, $method := $service.Methods}}
"{{$method.Name}}": struct{}{},
{{- end}}
},
{{- end}}
}

//
// Server types
//
Expand Down

0 comments on commit 5b9762f

Please sign in to comment.