loader

package
v0.0.0-...-a786b95 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type AppLoader

type AppLoader struct {
	*graphqlutil.DataLoader `wire:"-"`
	AppService              AppLoaderAppService
	Authz                   AuthzService
}

func NewAppLoader

func NewAppLoader(appService AppLoaderAppService, authz AuthzService) *AppLoader

func (*AppLoader) LoadFunc

func (l *AppLoader) LoadFunc(keys []interface{}) ([]interface{}, error)

type AppLoaderAppService

type AppLoaderAppService interface {
	GetMany(ids []string) ([]*model.App, error)
}

type AuthzService

type AuthzService interface {
	CheckAccessOfViewer(appID string) (userID string, err error)
}

type CollaboratorInvitationLoader

type CollaboratorInvitationLoader struct {
	*graphqlutil.DataLoader `wire:"-"`
	CollaboratorService     CollaboratorLoaderCollaboratorService
	Authz                   AuthzService
}

func NewCollaboratorInvitationLoader

func NewCollaboratorInvitationLoader(
	collaboratorService CollaboratorLoaderCollaboratorService,
	authz AuthzService,
) *CollaboratorInvitationLoader

func (*CollaboratorInvitationLoader) LoadFunc

func (l *CollaboratorInvitationLoader) LoadFunc(keys []interface{}) ([]interface{}, error)

type CollaboratorLoader

type CollaboratorLoader struct {
	*graphqlutil.DataLoader `wire:"-"`
	CollaboratorService     CollaboratorLoaderCollaboratorService
	Authz                   AuthzService
}

func NewCollaboratorLoader

func NewCollaboratorLoader(
	collaboratorService CollaboratorLoaderCollaboratorService,
	authz AuthzService,
) *CollaboratorLoader

func (*CollaboratorLoader) LoadFunc

func (l *CollaboratorLoader) LoadFunc(keys []interface{}) ([]interface{}, error)

type CollaboratorLoaderCollaboratorService

type CollaboratorLoaderCollaboratorService interface {
	GetManyCollaborators(ids []string) ([]*model.Collaborator, error)
	GetManyInvitations(ids []string) ([]*model.CollaboratorInvitation, error)
}

type DomainLoader

type DomainLoader struct {
	*graphqlutil.DataLoader `wire:"-"`
	DomainService           DomainLoaderDomainService
	Authz                   AuthzService
}

func NewDomainLoader

func NewDomainLoader(domainService DomainLoaderDomainService, authz AuthzService) *DomainLoader

func (*DomainLoader) LoadFunc

func (l *DomainLoader) LoadFunc(keys []interface{}) ([]interface{}, error)

type DomainLoaderDomainService

type DomainLoaderDomainService interface {
	GetMany(ids []string) ([]*apimodel.Domain, error)
}

type UserLoader

type UserLoader struct {
	*graphqlutil.DataLoader `wire:"-"`

	AdminAPI      UserLoaderAdminAPIService
	Apps          UserLoaderAppService
	Collaborators UserLoaderCollaboratorService
}

func (*UserLoader) LoadFunc

func (l *UserLoader) LoadFunc(keys []interface{}) ([]interface{}, error)

type UserLoaderAdminAPIService

type UserLoaderAdminAPIService interface {
	SelfDirector(actorUserID string, usage service.Usage) (func(*http.Request), error)
}

type UserLoaderAppService

type UserLoaderAppService interface {
	GetManyProjectQuota(userIDs []string) ([]int, error)
}

type UserLoaderCollaboratorService

type UserLoaderCollaboratorService interface {
	GetManyProjectOwnerCount(userIDs []string) ([]int, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL