MCPcopy Create free account
hub / github.com/authorizerdev/authorizer / New

Function New

internal/graphql/provider.go:53–60  ·  view source on GitHub ↗

New constructs a new graphql provider with given arguments

(cfg *config.Config, deps *Dependencies)

Source from the content-addressed store, hash-verified

51
52// New constructs a new graphql provider with given arguments
53func New(cfg *config.Config, deps *Dependencies) (Provider, error) {
54 // TODO - Add any validation here for config and dependencies
55 g := &graphqlProvider{
56 Config: cfg,
57 Dependencies: *deps,
58 }
59 return g, nil
60}
61
62// graphqlProvider is the struct that provides resolver functions.
63type graphqlProvider struct {

Callers 3

initFGATestSetupFunction · 0.92
initTestSetupFunction · 0.92
GraphqlHandlerMethod · 0.92

Calls

no outgoing calls

Tested by 1

initFGATestSetupFunction · 0.74