Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionDef ¶
type ActionDef struct {
Name string
WrapTxn bool
Type ActionType
NoArgs bool
NillableArgs bool
DocComment string
GenericEntType string
IsDefault bool
}
func NewAction ¶
func NewAction(name string, actionType ActionType, setters ...ActionOption) *ActionDef
type ActionOption ¶
type ActionOption func(*ActionDef)
func DocComment ¶
func DocComment(comment string) ActionOption
func GenericEntType ¶
func GenericEntType(entType string) ActionOption
func IsDefault ¶
func IsDefault() ActionOption
func NillableArgs ¶
func NillableArgs() ActionOption
func NoArgs ¶
func NoArgs() ActionOption
func WrapTxn ¶
func WrapTxn(wrap bool) ActionOption
type ActionType ¶
type ActionType string
const ( ActionCreate ActionType = "Create" ActionUpdate ActionType = "Update" )
type EntWithActions ¶
type EntWithActions interface {
Actions() []*ActionDef
}
Click to show internal directories.
Click to hide internal directories.