controller

package
v0.0.0-...-bc2c20b Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	Register(e *echo.Echo)
}

type GraphqlController

type GraphqlController struct {
	// contains filtered or unexported fields
}

func (*GraphqlController) GraphQL

func (m *GraphqlController) GraphQL() echo.HandlerFunc

func (*GraphqlController) GraphiQL

func (m *GraphqlController) GraphiQL() echo.HandlerFunc

func (*GraphqlController) Register

func (m *GraphqlController) Register(e *echo.Echo)

type GraphqlControllerResult

type GraphqlControllerResult struct {
	fx.Out
	// contains filtered or unexported fields
}

type GraphqlControllerTarget

type GraphqlControllerTarget struct {
	fx.In
	GraphiQLEnable bool `name:"graphiql_enable"`
	Logger         meshlogger.Logger
}

type Result

type Result struct {
	fx.Out
	Controller Controller `group:"controller"`
}

func NewGraphQLController

func NewGraphQLController(target GraphqlControllerTarget) Result

type Target

type Target struct {
	fx.In
	Echo        *echo.Echo
	Controllers []Controller `group:"controller"`
}

Jump to

Keyboard shortcuts

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