dataloader

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2019 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertLoader

type AlertLoader struct {
	// contains filtered or unexported fields
}

func NewAlertLoader

func NewAlertLoader(ctx context.Context, store alert.Store) *AlertLoader

func (*AlertLoader) FetchOneAlert

func (l *AlertLoader) FetchOneAlert(ctx context.Context, id int) (*alert.Alert, error)

func (*AlertLoader) FetchOneAlertState

func (l *AlertLoader) FetchOneAlertState(ctx context.Context, alertID int) (*alert.State, error)

type CMLoader

type CMLoader struct {
	// contains filtered or unexported fields
}

CMLoader will load user contact methods from postgres.

func NewCMLoader

func NewCMLoader(ctx context.Context, store contactmethod.Store) *CMLoader

NewCMLoader will create a new CMLoader using the provided store for fetch operations.

func (*CMLoader) FetchOne

func (l *CMLoader) FetchOne(ctx context.Context, id string) (*contactmethod.ContactMethod, error)

FetchOne will fetch a single record from the store, batching requests to the store.

type PolicyLoader

type PolicyLoader struct {
	// contains filtered or unexported fields
}

func NewPolicyLoader

func NewPolicyLoader(ctx context.Context, store escalation.Store) *PolicyLoader

func (*PolicyLoader) FetchOne

func (p *PolicyLoader) FetchOne(ctx context.Context, id string) (*escalation.Policy, error)

type RotationLoader

type RotationLoader struct {
	// contains filtered or unexported fields
}

func NewRotationLoader

func NewRotationLoader(ctx context.Context, store rotation.Store) *RotationLoader

func (*RotationLoader) FetchOne

func (l *RotationLoader) FetchOne(ctx context.Context, id string) (*rotation.Rotation, error)

type ScheduleLoader

type ScheduleLoader struct {
	// contains filtered or unexported fields
}

func NewScheduleLoader

func NewScheduleLoader(ctx context.Context, store schedule.Store) *ScheduleLoader

func (*ScheduleLoader) FetchOne

func (l *ScheduleLoader) FetchOne(ctx context.Context, id string) (*schedule.Schedule, error)

type ServiceLoader

type ServiceLoader struct {
	// contains filtered or unexported fields
}

func NewServiceLoader

func NewServiceLoader(ctx context.Context, store service.Store) *ServiceLoader

func (*ServiceLoader) FetchOne

func (l *ServiceLoader) FetchOne(ctx context.Context, id string) (*service.Service, error)

type UserLoader

type UserLoader struct {
	// contains filtered or unexported fields
}

func NewUserLoader

func NewUserLoader(ctx context.Context, store user.Store) *UserLoader

func (*UserLoader) FetchOne

func (l *UserLoader) FetchOne(ctx context.Context, id string) (*user.User, error)

Jump to

Keyboard shortcuts

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