(v reflect.Value, dest *Dependency)
| 170 | } |
| 171 | |
| 172 | func fromStructValue(v reflect.Value, dest *Dependency) bool { |
| 173 | if !isStructValue(v) { |
| 174 | return false |
| 175 | } |
| 176 | |
| 177 | // It's just a static struct value. |
| 178 | handler := func(*context.Context, *Input) (reflect.Value, error) { |
| 179 | return v, nil |
| 180 | } |
| 181 | |
| 182 | dest.DestType = v.Type() |
| 183 | dest.Static = true |
| 184 | dest.Handle = handler |
| 185 | return true |
| 186 | } |
| 187 | |
| 188 | func fromStructValueOrDependentStructValue(v reflect.Value, disablePayloadAutoBinding bool, dest *Dependency, prevDependencies []*Dependency) bool { |
| 189 | if !isStructValue(v) { |
no test coverage detected
searching dependent graphs…