Help us shape the future of Go! Take the 2026 Go Developer Survey

fetcher

package
v1.8.84 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2022 License: MIT Imports: 11 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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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