generator

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(cfg Config, s schema.Schema, folder string) error

Types

type Config

type Config struct {
	ModulePath  string
	Package     string
	DataPackage string
	TypeName    string
	HandlerType HandlerType
}

type HandlerType added in v0.1.0

type HandlerType int
const (
	TypeDefault HandlerType = iota
	TypeQueue
	TypeStack
)

func ParseHandlerType added in v0.1.0

func ParseHandlerType(s string) (HandlerType, error)

func (HandlerType) String added in v0.1.0

func (ht HandlerType) String() string

Jump to

Keyboard shortcuts

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