templates

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfServerTpl = `` /* 553-byte string literal not displayed */

	ConfCacheTpl = `[redis]
    host     = "127.0.0.1:6379"
    auth     = ""
    index    = 14
    max_idle = 10
`

	ConfMysqlTpl = `` /* 293-byte string literal not displayed */

	ConfMongoTpl = `` /* 153-byte string literal not displayed */

)
View Source
const (
	GatewayMakefileTpl = `all:
    @go build -o {{.Name}} cmd/*.go
    @echo done.

clean:
    @go clean cmd/*.go
    @rm -f ./{{.Name}}
`

	ServiceMakefileTpl = `all:
    @go build -o {{.Name}} cmd/*.go
    @echo done.

clean:
    @go clean cmd/*.go
    @rm -f ./{{.Name}}
`
)
View Source
const (
	GatewayMainTpl = `` /* 1021-byte string literal not displayed */

	ServiceMainTpl = `` /* 1357-byte string literal not displayed */

	ServiceMainImportFrameMongoTpl = `"{{.Root}}/fireman/store/mongo"`
	ServiceMainImportFrameMysqlTpl = `"{{.Root}}/fireman/store/mysql"`
	ServiceMainImportSelfStoreTpl  = `"{{.Root}}/{{.Name}}/internal/dao/database"`

	ServiceMainConfigMongoTpl = `Mongo     mongo.Config`
	ServiceMainConfigMysqlTpl = `Mysql     []mysql.Config`

	ServiceMainRepoMongoTpl = `, database.NewRepository(mongo.NewPool(Conf.Mongo))`
	ServiceMainRepoMysqlTpl = `, database.NewRepository(mysql.NewPool(Conf.Mysql))`
)
View Source
const (
	GatewayMakefileTpl = `all:
    @go build -o {{.Name}} cmd/*.go
    @echo done.

clean:
    @go clean cmd/*.go
    @rm -f ./{{.Name}}
`

	ServiceMakefileTpl = `all:
    @go build -o {{.Name}} cmd/*.go
    @echo done.

clean:
    @go clean cmd/*.go
    @rm -f ./{{.Name}}
`
)
View Source
const (
	ServiceInternalHandlerTpl = `` /* 300-byte string literal not displayed */

	ServiceInternalGreeterTpl = `` /* 322-byte string literal not displayed */

)

Variables

This section is empty.

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