generate

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commands

func Commands(path string, options CommandOptions)

Commands generates the microservice commands based of the given path

func Dockerfile

func Dockerfile(path string, options DockerfileOptions)

Dockerfile generate a dockerfile using the given options for specified path

func Makefile

func Makefile(path string, options MakefileOptions)

Makefile generates a with given options for the specified path

func Rest

func Rest(options RestOptions)

Rest builds a jsonapi rest api

Types

type CommandOptions

type CommandOptions struct {
	DaemonName  string
	ControlName string
}

CommandOptions are applied when generating the different microservice commands

func NewCommandOptions

func NewCommandOptions(name string) CommandOptions

NewCommandOptions generate command names using given name

type DockerfileOptions

type DockerfileOptions struct {
	Name     string
	Commands CommandOptions
}

DockerfileOptions configure the output of the generated docker file

type MakefileOptions

type MakefileOptions struct {
	Name string
}

MakefileOptions options that change the rendering of the makefile

type RestOptions

type RestOptions struct {
	PkgName, Path, Source string
}

RestOptions options to respect when generating the rest api

Jump to

Keyboard shortcuts

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