template

package
v0.0.0-...-1d706ad Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2017 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DockerSRV = `FROM alpine:3.2
ADD {{.Alias}}-{{.Type}} /{{.Alias}}-{{.Type}}
ENTRYPOINT [ "/{{.Alias}}-{{.Type}}" ]
`

	DockerWEB = `` /* 127-byte string literal not displayed */

)
View Source
var (
	HandlerSRV = `` /* 1292-byte string literal not displayed */

	SubscriberSRV = `` /* 395-byte string literal not displayed */

	HandlerAPI = `` /* 1152-byte string literal not displayed */

	HandlerWEB = `` /* 1015-byte string literal not displayed */

)
View Source
var (
	MainSRV = `` /* 758-byte string literal not displayed */

	MainAPI = `` /* 565-byte string literal not displayed */

	MainWEB = `` /* 664-byte string literal not displayed */

)
View Source
var (
	ProtoSRV = `` /* 508-byte string literal not displayed */

	ProtoAPI = `` /* 163-byte string literal not displayed */

)
View Source
var (
	HTMLWEB = `` /* 2923-byte string literal not displayed */

)
View Source
var (
	Readme = `# {{title .Alias}} {{title .Type}}

This is the {{title .Alias}} service with fqdn {{.FQDN}}.

## Getting Started

### Prerequisites

Install Consul
[https://www.consul.io/intro/getting-started/install.html](https://www.consul.io/intro/getting-started/install.html)

Run Consul
` + "```" +
		`
$ consul agent -dev -advertise=127.0.0.1
` + "```" +
		`

### Run Service

` + "```" +
		`
$ go run main.go
` + "```" +
		`

### Building a container

If you would like to build the docker container do the following
` + "```" +
		`
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-w' -o {{.Alias}}-{{.Type}} ./main.go
docker build -t {{.Alias}}-{{.Type}} .

` + "```"
)
View Source
var (
	WrapperAPI = `` /* 849-byte string literal not displayed */

)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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