ToDependencyMatchFunc converts a DependencyMatcher (generic for all dependencies) to a dependency-specific input matcher.
(d *Dependency, match DependencyMatcher)
| 126 | // ToDependencyMatchFunc converts a DependencyMatcher (generic for all dependencies) |
| 127 | // to a dependency-specific input matcher. |
| 128 | func ToDependencyMatchFunc(d *Dependency, match DependencyMatcher) DependencyMatchFunc { |
| 129 | return func(in reflect.Type) bool { |
| 130 | return match(d, in) |
| 131 | } |
| 132 | } |
| 133 | |
| 134 | func 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], |
no outgoing calls
no test coverage detected
searching dependent graphs…