github.com/vcilabs/webrpc@v0.5.2-0.20201116131534-162e27b1b33b/gen/javascript/templates/proto.gen.js.tmpl (about) 1 {{- define "proto" -}} 2 // {{.Name}} {{.SchemaVersion}} {{.SchemaHash}} 3 // -- 4 // This file has been generated by https://github.com/webrpc/webrpc using gen/javascript 5 // Do not edit by hand. Update your webrpc schema and re-generate. 6 7 {{ if .WebRPCVersion}} 8 // WebRPC description and code-gen version 9 export const WebRPCVersion = "{{.WebRPCVersion}}" 10 {{end}}{{ if .SchemaVersion }} 11 // Schema version of your RIDL schema 12 export const WebRPCSchemaVersion = "{{.SchemaVersion}}" 13 {{end}}{{ if .SchemaHash }} 14 // Schema hash generated from your RIDL schema 15 export const WebRPCSchemaHash = "{{.SchemaHash}}" 16 {{end}} 17 {{template "types" .}} 18 {{- if .TargetOpts.Client}} 19 {{template "client" .}} 20 {{template "client_helpers" .}} 21 {{- end}} 22 {{- if .TargetOpts.Server}} 23 {{template "server" .}} 24 {{- end}} 25 {{- end}}