inject

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Container

func Container() *dig.Container

func Invoke

func Invoke(i interface{})

func Provide

func Provide(constructs ...any)

Types

type IJetController

type IJetController interface {
}

IJetController By marking it with IJetController, this indicates that it is a Controller that needs to be registered with Jet. Jet will automatically handle the mounted routes and resolve them.

type JetControllerList

type JetControllerList struct {
	dig.In
	Handlers []IJetController `group:"server"`
}

type JetControllerResult

type JetControllerResult struct {
	dig.Out
	Handler IJetController `group:"server"`
}

func NewJetController

func NewJetController(controller IJetController) JetControllerResult

Jump to

Keyboard shortcuts

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