Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Action ¶
type Action struct { Name string Pascal string Camel string Short string View *View Key string // Key is an extension-less path Route string // Route to this action Redirect string Method string Provider *di.Provider Params []*ActionParam HandlerFunc bool Input string Results ActionResults RespondJSON bool RespondHTML bool PropsKey string }
Action is the target action state
type ActionParam ¶
type ActionParam struct { Name string Pascal string Snake string Type string Kind string Variable string Tag string }
ActionParam struct
func (*ActionParam) IsContext ¶
func (ap *ActionParam) IsContext() bool
type ActionResult ¶
type ActionResult struct { Name string Pascal string Named bool Snake string Type string Kind parser.Kind Variable string IsError bool Fields []*ActionResultField Methods []*ActionResultMethod }
ActionResult struct
type ActionResultField ¶
ActionResultField struct
type ActionResults ¶
type ActionResults []*ActionResult
ActionResults fn
func (ActionResults) Error ¶
func (results ActionResults) Error() string
Error expression if there is one
func (ActionResults) IsOnlyError ¶
func (results ActionResults) IsOnlyError() bool
Error expression is only return
func (ActionResults) Result ¶
func (results ActionResults) Result() string
Result expression if there is one
func (ActionResults) ViewResult ¶
func (results ActionResults) ViewResult() string
type Controller ¶
type Controller struct { Name string Pascal string JSON string Path string // Path to controller without action dir Route string Actions []*Action Controllers []*Controller }
Controller is the target controller state
func (*Controller) Last ¶
func (c *Controller) Last() Name
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator for controllers
Click to show internal directories.
Click to hide internal directories.