tpl

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL