Documentation ¶
Overview ¶
Package project implements different project GraphQL query resovlers required by the GraphQL transport layer
Package project implements different project GraphQL query resovlers required by the GraphQL transport layer ¶
Package project implements different project GraphQL query resovlers required by the GraphQL transport layer
Index ¶
- func NewProjectResolver(ctx context.Context, resolverCreator types.ResolverCreatorContract, ...) (project.ProjectResolverContract, error)
- func NewProjectTypeConnectionResolver(ctx context.Context, resolverCreator types.ResolverCreatorContract, ...) (project.ProjectTypeConnectionResolverContract, error)
- func NewProjectTypeEdgeResolver(ctx context.Context, resolverCreator types.ResolverCreatorContract, ...) (project.ProjectTypeEdgeResolverContract, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProjectResolver ¶
func NewProjectResolver( ctx context.Context, resolverCreator types.ResolverCreatorContract, logger *zap.Logger, projectClientService project.ProjectClientContract, edgeClusterClientService edgecluster.EdgeClusterClientContract, projectID string, projectDetail *project.ProjectDetail) (project.ProjectResolverContract, error)
NewProjectResolver creates new instance of the projectResolver, 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 projectClientService: Mandatory. the project client service that creates gRPC connection and client to the project projectID: Mandatory. the project unique identifier projectDetail: Optional. The tennat details, if provided, the value be used instead of contacting the edge cluster service Returns the new instance or error if something goes wrong
func NewProjectTypeConnectionResolver ¶
func NewProjectTypeConnectionResolver( ctx context.Context, resolverCreator types.ResolverCreatorContract, projects []*projectGrpcContract.ProjectWithCursor, hasPreviousPage bool, hasNextPage bool, totalCount int32) (project.ProjectTypeConnectionResolverContract, error)
NewProjectTypeConnectionResolver creates new instance of the projectTypeConnectionResolver, 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 projects: Mandatory. Reference the list of projects hasPreviousPage: Mandatory. Indicates whether more edges exist prior to the set defined by the clients arguments hasNextPage: Mandatory. Indicates whether more edges exist following the set defined by the clients arguments totalCount: Mandatory. The total count of matched projects Returns the new instance or error if something goes wrong
func NewProjectTypeEdgeResolver ¶
func NewProjectTypeEdgeResolver( ctx context.Context, resolverCreator types.ResolverCreatorContract, projectID string, projectDetail *project.ProjectDetail, cursor string) (project.ProjectTypeEdgeResolverContract, error)
NewProjectTypeEdgeResolver creates new instance of the projectTypeEdgeResolver, 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 projectID: Mandatory. the project unique identifier projectDetail: Optional. The project details, if provided, the value be used instead of contacting the edge cluster service cursor: Mandatory. the cursor Returns the new instance or error if something goes wrong
Types ¶
This section is empty.