Back to godoc.org

Package root

v0.1.1
Latest Go to latest

The highest tagged major version is .

Published: Mar 29, 2020 | License: Apache-2.0 | Module: github.com/decentralized-cloud/api-gateway

Overview

Package root implements GraphQL root resolvers required by the GraphQL transport layer

Index

func NewRootResolver

func NewRootResolver(
	ctx context.Context,
	resolverCreator types.ResolverCreatorContract,
	logger *zap.Logger) (types.RootResolverContract, error)

NewRootResolver creates new instance of the rootResolver, setting up all dependencies and returns the instance ctx: Mandatory. Reference to the context resolverCreator: Mandatory. Reference to the resolver creator service that can create new instances of resolvers logger: Mandatory. Reference to the logger service Returns the new instance or error if something goes wrong

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier