NewConfig creates a config object
(contextType TypeGetter, endpoints ...NamedTypeGetter)
| 45 | |
| 46 | // NewConfig creates a config object |
| 47 | func NewConfig(contextType TypeGetter, endpoints ...NamedTypeGetter) Config { |
| 48 | res := Config{ |
| 49 | contextType: contextType, |
| 50 | endpointTypes: make(map[string]TypeGetter), |
| 51 | } |
| 52 | for _, e := range endpoints { |
| 53 | res.endpointTypes[e.name] = e.typeGetter |
| 54 | } |
| 55 | return res |
| 56 | } |
no outgoing calls
searching dependent graphs…