MCPcopy Create free account
hub / github.com/kataras/iris / ToDependencyMatchFunc

Function ToDependencyMatchFunc

hero/binding.go:128–132  ·  view source on GitHub ↗

ToDependencyMatchFunc converts a DependencyMatcher (generic for all dependencies) to a dependency-specific input matcher.

(d *Dependency, match DependencyMatcher)

Source from the content-addressed store, hash-verified

126// ToDependencyMatchFunc converts a DependencyMatcher (generic for all dependencies)
127// to a dependency-specific input matcher.
128func ToDependencyMatchFunc(d *Dependency, match DependencyMatcher) DependencyMatchFunc {
129 return func(in reflect.Type) bool {
130 return match(d, in)
131 }
132}
133
134func getBindingsFor(inputs []reflect.Type, deps []*Dependency, disablePayloadAutoBinding bool, paramsCount int) (bindings []*binding) {
135 // Path parameter start index is the result of [total path parameters] - [total func path parameters inputs],

Callers 1

newDependencyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…