routes

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRoutes

func GenerateRoutes(config *definitions.GleeceConfig, controllerMeta []definitions.ControllerMetadata) error

Types

type Argument

type Argument struct {
	Type      definitions.ParamPassedIn
	Name      string
	ValueType any
}

type ControllerMeta

type ControllerMeta struct {
	Routes []RouteCtx
}

type PackageImport

type PackageImport struct {
	FullPath string
	Alias    string
}

type RouteCtx

type RouteCtx struct {
	definitions.RouteMetadata
}

type RoutesContext

type RoutesContext struct {
	PackageName      string
	Controllers      []definitions.ControllerMetadata
	CustomValidators []definitions.CustomValidators
	GenerationDate   string
	AuthConfig       definitions.AuthorizationConfig
}

func GetTemplateContext

func GetTemplateContext(
	config definitions.RoutesConfig,
	controllers []definitions.ControllerMetadata,
) (RoutesContext, error)

Jump to

Keyboard shortcuts

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