Documentation ¶
Overview ¶
Package tpl .
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BootstrapTpl = `` /* 411-byte string literal not displayed */
BootstrapTpl is the template for generating bootstrap.sh.
View Source
var BuildTpl = `` /* 283-byte string literal not displayed */
BuildTpl is the template for generating build.sh.
View Source
var HandlerMethodsTpl = `` /* 854-byte string literal not displayed */
HandlerMethodsTpl .
View Source
var HandlerTpl = ` package main import ( {{- range $path, $alias := .Imports}} {{$alias }}"{{$path}}" {{- end}} ) // {{.ServiceName}}Impl implements the last service interface defined in the IDL. type {{.ServiceName}}Impl struct{} ` + HandlerMethodsTpl
HandlerTpl is the template for generating handler.go.
View Source
var MainTpl = `` /* 263-byte string literal not displayed */
MainTpl is the template for generating main.go.
View Source
var ServiceTpl = `` /* 9459-byte string literal not displayed */
ServiceTpl is the template for generating the servicename.go source.
Functions ¶
func GetClientTpl ¶
func GetClientTpl() string
GetClientTpl returns the template for generating client.go.
func GetInvokerTpl ¶
func GetInvokerTpl() string
GetInvokerTpl returns the template for generating invoker.go.
func GetServerTpl ¶
func GetServerTpl() string
GetServerTpl returns the template for generating server.go.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.