| 49 | } |
| 50 | |
| 51 | type graphqlHandler struct { |
| 52 | resolver map[uint64]*resolve.RequestResolver |
| 53 | handler http.Handler |
| 54 | poller map[uint64]*subscription.Poller |
| 55 | resolverMux sync.RWMutex // protects resolver from RW races |
| 56 | pollerMux sync.RWMutex // protects poller from RW races |
| 57 | } |
| 58 | |
| 59 | // NewServer returns a new IServeGraphQL that can serve the given resolvers |
| 60 | func NewServer() IServeGraphQL { |
nothing calls this directly
no outgoing calls
no test coverage detected