Documentation ¶
Index ¶
- Constants
- type ControllerFetcher
- func (cf *ControllerFetcher) BuildControllerObjFromControllerFile(filePath string) (controller *lib.Controller, e error)
- func (cf *ControllerFetcher) Fetch(dir string) (controllers []*lib.Controller, dirs []string, e error)
- func (cf *ControllerFetcher) FetchAll() (controllers []*lib.Controller, dirs []string, e error)
Constants ¶
View Source
const ( RouteArgTypeString = "string" RouteArgTypeNumber = "int64" // Route Tags RouteTagAnonymous = "@anonymous" RouteTagAnyone = "@anyone" RouteTagBody = "@body" RouteTagResponse = "@response" RouteTagRoute = "@route" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControllerFetcher ¶
type ControllerFetcher struct {
// contains filtered or unexported fields
}
func NewControllerFetcher ¶
func NewControllerFetcher() *ControllerFetcher
func (*ControllerFetcher) BuildControllerObjFromControllerFile ¶
func (cf *ControllerFetcher) BuildControllerObjFromControllerFile(filePath string) (controller *lib.Controller, e error)
BuildControllerObjFromControllerFile parses a file and extracts all of its @route comments
func (*ControllerFetcher) Fetch ¶
func (cf *ControllerFetcher) Fetch(dir string) (controllers []*lib.Controller, dirs []string, e error)
func (*ControllerFetcher) FetchAll ¶
func (cf *ControllerFetcher) FetchAll() (controllers []*lib.Controller, dirs []string, e error)
Click to show internal directories.
Click to hide internal directories.