generate

package
v0.4.22 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 10 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 ErrorDefinitionFile added in v0.4.13

func ErrorDefinitionFile(options ErrorDefinitionFileOptions)

ErrorDefinitionFile builds a file with error definitions

func ErrorDefinitionsMarkdown added in v0.4.15

func ErrorDefinitionsMarkdown(options ErrorDefinitionFileOptions)

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 ErrorDefinitionFileOptions added in v0.4.13

type ErrorDefinitionFileOptions struct {
	PkgName, Path, Source string
}

ErrorDefinitionFileOptions options that change the rendering of the error definition 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

Directories

Path Synopsis
errordefinition

Jump to

Keyboard shortcuts

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