action

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: May 31, 2019 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RemoveLibs = map[string][]string{
		"fasthttp":   {"github.com/prometheus/client_golang/prometheus/promhttp"},
		"aws_lambda": {"{{.Repo}}/signals"},
	}
	RemoveFiles = map[string][]string{
		"aws_lambda": {"signals/signals.go"},
	}
)

Functions

This section is empty.

Types

type Action

type Action struct {
	Console *console.Console
	Name    string
	Repo    string
	Path    string
	Context *cli.Context
	Config  *templates.Config
	// contains filtered or unexported fields
}

func New

func New(c *cli.Context) *Action

func (*Action) Invoke

func (a *Action) Invoke() (err error)

type Context

type Context struct {
	Env            string
	Name           string
	Repo           string
	Repos          string
	Runners        string
	Closers        string
	Setter         string
	SetterFunction string
	Props          string
	PropsValue     string
	Models         string
	DepLibs        string
	MdCode         string
	ServiceType    ServiceType
}

type ServiceType added in v0.1.5

type ServiceType string
const (
	DaemonServiceType ServiceType = "daemon"
	LambdaServiceType ServiceType = "lambda"
)

type TemplateResponse

type TemplateResponse string

func (*TemplateResponse) Write

func (t *TemplateResponse) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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