fetcher

package
v1.8.51 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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