loader

package
v0.0.0-...-c4f7e29 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 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 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(keys []interface{}) ([]interface{}, error)

type AuditLogQuery

type AuditLogQuery interface {
	GetByIDs(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(keys []interface{}) ([]interface{}, error)

type AuthenticatorLoaderAuthenticatorService

type AuthenticatorLoaderAuthenticatorService interface {
	GetMany(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(keys []interface{}) ([]interface{}, error)

type GroupLoaderGroups

type GroupLoaderGroups interface {
	GetManyGroups(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(keys []interface{}) ([]interface{}, error)

type IdentityLoaderIdentityService

type IdentityLoaderIdentityService interface {
	GetMany(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(keys []interface{}) ([]interface{}, error)

type RoleLoaderRoles

type RoleLoaderRoles interface {
	GetManyRoles(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(keys []interface{}) ([]interface{}, error)

type UserLoaderUserService

type UserLoaderUserService interface {
	GetMany(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