inputs

package
v1.23.10 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InputModeGin astra.InputMode = "gin" // github.com/gin-gonic/gin web framework.
)

Variables

This section is empty.

Functions

func WithGinInput

func WithGinInput(router *gin.Engine) astra.Option

WithGinInput adds gin as an input to the service. CreateRoutes is called before ParseRoutes. CreateRoutes is the only function that will have access to the routes - it will create the routes and refer to the handler function by name, file and line number. ParseRoutes will populate the routes with the handler function, should not need access to the routes because there will be cases where the routes is nil (CLI).

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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