loader

package
v0.0.0-...-4f5e8d6 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type AuditLogLoader

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

	AuditDatabase *auditdb.ReadHandle
	Query         AuditLogQuery
}

func NewAuditLogLoader

func NewAuditLogLoader(query AuditLogQuery, handle *auditdb.ReadHandle) *AuditLogLoader

func (*AuditLogLoader) LoadFunc

func (l *AuditLogLoader) LoadFunc(ctx context.Context, keys []interface{}) ([]interface{}, error)

type AuditLogQuery

type AuditLogQuery interface {
	GetByIDs(ctx context.Context, ids []string) ([]*audit.Log, error)
}

type AuthenticatorLoader

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

	Authenticators AuthenticatorLoaderAuthenticatorService
}

func NewAuthenticatorLoader

func NewAuthenticatorLoader(authenticators AuthenticatorLoaderAuthenticatorService) *AuthenticatorLoader

func (*AuthenticatorLoader) LoadFunc

func (l *AuthenticatorLoader) LoadFunc(ctx context.Context, keys []interface{}) ([]interface{}, error)

type AuthenticatorLoaderAuthenticatorService

type AuthenticatorLoaderAuthenticatorService interface {
	GetMany(ctx context.Context, ids []string) ([]*authenticator.Info, error)
}

type GroupLoader

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

	Groups GroupLoaderGroups
}

func NewGroupLoader

func NewGroupLoader(groups GroupLoaderGroups) *GroupLoader

func (*GroupLoader) LoadFunc

func (l *GroupLoader) LoadFunc(ctx context.Context, keys []interface{}) ([]interface{}, error)

type GroupLoaderGroups

type GroupLoaderGroups interface {
	GetManyGroups(ctx context.Context, ids []string) ([]*model.Group, error)
}

type IdentityLoader

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

	Identities IdentityLoaderIdentityService
}

func NewIdentityLoader

func NewIdentityLoader(identities IdentityLoaderIdentityService) *IdentityLoader

func (*IdentityLoader) LoadFunc

func (l *IdentityLoader) LoadFunc(ctx context.Context, keys []interface{}) ([]interface{}, error)

type IdentityLoaderIdentityService

type IdentityLoaderIdentityService interface {
	GetMany(ctx context.Context, ids []string) ([]*identity.Info, error)
}

type RoleLoader

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

	Roles RoleLoaderRoles
}

func NewRoleLoader

func NewRoleLoader(roles RoleLoaderRoles) *RoleLoader

func (*RoleLoader) LoadFunc

func (l *RoleLoader) LoadFunc(ctx context.Context, keys []interface{}) ([]interface{}, error)

type RoleLoaderRoles

type RoleLoaderRoles interface {
	GetManyRoles(ctx context.Context, ids []string) ([]*model.Role, error)
}

type UserLoader

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

	Users UserLoaderUserService
}

func NewUserLoader

func NewUserLoader(users UserLoaderUserService) *UserLoader

func (*UserLoader) LoadFunc

func (l *UserLoader) LoadFunc(ctx context.Context, keys []interface{}) ([]interface{}, error)

type UserLoaderUserService

type UserLoaderUserService interface {
	GetMany(ctx context.Context, ids []string, role accesscontrol.Role) ([]*model.User, error)
}

Jump to

Keyboard shortcuts

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