generator

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(cfg *Config) error

Types

type BaseParam

type BaseParam struct {
	Package string
	Events  []EventInfo
}

type Config

type Config struct {
	States      []string
	Events      []string
	Transitions [][3]string
	Pkg         string
	Path        string
	NoTests     bool
}

type EventInfo

type EventInfo struct {
	Event    string
	CapEvent string
	Method   string
}

type StateParam

type StateParam struct {
	Package        string
	State          string
	CapState       string
	Events         []EventInfo
	Transitions    []transitionInfo
	TransitionsMap map[string]string
	CommonsHere    bool
}

Jump to

Keyboard shortcuts

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