mirror of
https://github.com/kataras/iris.git
synced 2025-12-23 04:47:02 +00:00
👔 next version: some linting
Former-commit-id: a102fbb90e2a8a8b09fcb9c9e0c370e4078b74d1
This commit is contained in:
@@ -9,8 +9,11 @@ import (
|
||||
)
|
||||
|
||||
type (
|
||||
// DependencyHandler is the native function declaration which implementors should return a value match to an input.
|
||||
DependencyHandler func(ctx context.Context, input *Input) (reflect.Value, error)
|
||||
|
||||
// Dependency describes the design-time dependency to be injected at serve time.
|
||||
// Contains its source location, the dependency handler (provider) itself and information
|
||||
// such as static for static struct values or explicit to bind a value to its exact DestType and not if just assignable to it (interfaces).
|
||||
Dependency struct {
|
||||
OriginalValue interface{} // Used for debugging and for logging only.
|
||||
Source Source
|
||||
|
||||
Reference in New Issue
Block a user