NewLazyResolver creates a new Resolver that is constructed from the given descriptors only as needed, if invoked. If there is an error when constructing the resolver, it will be returned by all method calls of the returned resolver.
(fileDescriptors ...F)
| 49 | // If there is an error when constructing the resolver, it will be returned by all |
| 50 | // method calls of the returned resolver. |
| 51 | func NewLazyResolver[F protodescriptor.FileDescriptor](fileDescriptors ...F) Resolver { |
| 52 | return &lazyResolver{fn: func() (Resolver, error) { |
| 53 | return newResolver(fileDescriptors...) |
| 54 | }} |
| 55 | } |
| 56 | |
| 57 | // CombineResolvers returns a resolver that uses all of the given resolvers. It |
| 58 | // will use the first resolver, and if it returns an error, the second will be |
no test coverage detected
searching dependent graphs…