loader

package
Version: v0.0.0-...-4f6383b Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: Apache-2.0 Imports: 6 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) ([]*model.Domain, error)
}

type UserLoader

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

	AdminAPI UserLoaderAdminAPIService
}

func NewUserLoader

func NewUserLoader(adminAPI UserLoaderAdminAPIService) *UserLoader

func (*UserLoader) LoadFunc

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

type UserLoaderAdminAPIService

type UserLoaderAdminAPIService interface {
	SelfDirector() (func(*http.Request), error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL