Documentation ¶
Overview ¶
Package tenant implements different tenant GraphQL query resovlers required by the GraphQL transport layer
Package tenant implements different tenant GraphQL query resovlers required by the GraphQL transport layer ¶
Package tenant implements different tenant GraphQL query resovlers required by the GraphQL transport layer
Index ¶
- func NewTenantResolver(ctx context.Context, resolverCreator types.ResolverCreatorContract, ...) (tenant.TenantResolverContract, error)
- func NewTenantTypeConnectionResolver(ctx context.Context, resolverCreator types.ResolverCreatorContract, ...) (tenant.TenantTypeConnectionResolverContract, error)
- func NewTenantTypeEdgeResolver(ctx context.Context, resolverCreator types.ResolverCreatorContract, ...) (tenant.TenantTypeEdgeResolverContract, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTenantResolver ¶
func NewTenantResolver( ctx context.Context, resolverCreator types.ResolverCreatorContract, logger *zap.Logger, tenantClientService tenant.TenantClientContract, edgeClusterClientService edgecluster.EdgeClusterClientContract, tenantID string, tenantDetail *tenant.TenantDetail) (tenant.TenantResolverContract, error)
NewTenantResolver creates new instance of the tenantResolver, 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 tenantClientService: Mandatory. the tenant client service that creates gRPC connection and client to the tenant tenantID: Mandatory. the tenant unique identifier tenantDetail: 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 NewTenantTypeConnectionResolver ¶
func NewTenantTypeConnectionResolver( ctx context.Context, resolverCreator types.ResolverCreatorContract, tenants []*tenantGrpcContract.TenantWithCursor, hasPreviousPage bool, hasNextPage bool, totalCount int32) (tenant.TenantTypeConnectionResolverContract, error)
NewTenantTypeConnectionResolver creates new instance of the tenantTypeConnectionResolver, 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 tenants: Mandatory. Reference the list of tenants 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 tenants Returns the new instance or error if something goes wrong
func NewTenantTypeEdgeResolver ¶
func NewTenantTypeEdgeResolver( ctx context.Context, resolverCreator types.ResolverCreatorContract, tenantID string, tenantDetail *tenant.TenantDetail, cursor string) (tenant.TenantTypeEdgeResolverContract, error)
NewTenantTypeEdgeResolver creates new instance of the tenantTypeEdgeResolver, 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 tenantID: Mandatory. the tenant unique identifier tenantDetail: Optional. The tenant 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.