Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DependencySet = wire.NewSet( NewRunnableFactory, NewRunner, )
View Source
var RunnableDependencySet = wire.NewSet( globaldb.DependencySet, wire.Struct(new(Store), "*"), wire.Struct(new(Runnable), "*"), wire.Bind(new(backgroundjob.Runnable), new(*Runnable)), )
View Source
var RunnableLogger = slogutil.NewLogger("account-status-runner")
Functions ¶
func NewRunnableFactory ¶
func NewRunnableFactory( pool *db.Pool, globalDBCredentials *config.GlobalDatabaseCredentialsEnvironmentConfig, databaseCfg *config.DatabaseEnvironmentConfig, clock clock.Clock, appContextResolver AppContextResolver, userServiceFactory UserServiceFactory, ) backgroundjob.RunnableFactory
func NewRunner ¶
func NewRunner(ctx context.Context, runnableFactory backgroundjob.RunnableFactory) *backgroundjob.Runner
Types ¶
type AppContextResolver ¶
type Runnable ¶
type Runnable struct {
Store *Store
AppContextResolver AppContextResolver
UserServiceFactory UserServiceFactory
}
type Store ¶
type Store struct {
Handle *globaldb.Handle
SQLBuilder *globaldb.SQLBuilder
SQLExecutor *globaldb.SQLExecutor
Clock clock.Clock
}
type UserService ¶
type UserServiceFactory ¶
type UserServiceFactory interface {
MakeUserService(appID string, appContext *config.AppContext) UserService
}
Click to show internal directories.
Click to hide internal directories.