nodejs

package
v0.10.2-alpha.0...-d05ecc4 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: BSD-3-Clause Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandToJs

func CommandToJs(command eml.Command) string

CommandToJs renders nodeJs for a command

func ControllerJs

func ControllerJs(stream eml.Stream, readmodelLookup map[string]eml.Readmodel) string

ControllerJs renders a REST API controller.

func DomainJs

func DomainJs(stream eml.Stream, eventList []eml.Event) string

DomainJs renders an aggregate for an event stream.

func EventToJs

func EventToJs(event eml.Event) string

EventToJs renders nodeJs for an event

func FirstCharToLower

func FirstCharToLower(s string) string

FirstCharToLower ...

func ReadmodelsToJs

func ReadmodelsToJs(readmodel eml.Readmodel, eventLookup map[string]eml.Event) string

ReadmodelsToJs renders nodeJs for a command

func ToNodeJsClassName

func ToNodeJsClassName(s string) string

ToNodeJsClassName ...

Types

type DomainTemplateParams

type DomainTemplateParams struct {
	Stream              eml.Stream
	EventLookup         map[string][]eml.Property
	Fields              map[string]Field
	HasHashedProperties bool
}

DomainTemplateParams ...

type Field

type Field struct {
	Name     string
	Type     string
	IsHashed bool
}

Field for domain templates

Jump to

Keyboard shortcuts

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