Documentation ¶
Index ¶
- Variables
- func NewRunnableFactory(pool *db.Pool, ...) backgroundjob.RunnableFactory
- func NewRunner(loggerFactory *log.Factory, runnableFactory backgroundjob.RunnableFactory) *backgroundjob.Runner
- type AppContextResolver
- type AppUser
- type Runnable
- type RunnableLogger
- type Store
- type UserService
- type UserServiceFactory
Constants ¶
This section is empty.
Variables ¶
View Source
var DependencySet = wire.NewSet( NewRunnableFactory, NewRunner, )
Functions ¶
func NewRunnableFactory ¶
func NewRunnableFactory( pool *db.Pool, globalDBCredentials *config.GlobalDatabaseCredentialsEnvironmentConfig, databaseCfg *config.DatabaseEnvironmentConfig, logFactory *log.Factory, clock clock.Clock, appContextResolver AppContextResolver, userServiceFactory UserServiceFactory, ) backgroundjob.RunnableFactory
func NewRunner ¶
func NewRunner(loggerFactory *log.Factory, runnableFactory backgroundjob.RunnableFactory) *backgroundjob.Runner
Types ¶
type AppContextResolver ¶
type AppContextResolver interface {
ResolveContext(appID string) (*config.AppContext, error)
}
type Runnable ¶
type Runnable struct { Context context.Context Store *Store AppContextResolver AppContextResolver UserServiceFactory UserServiceFactory Logger RunnableLogger }
type RunnableLogger ¶
func NewRunnableLogger ¶
func NewRunnableLogger(lf *log.Factory) RunnableLogger
type Store ¶
type Store struct { Handle *globaldb.Handle SQLBuilder *globaldb.SQLBuilder SQLExecutor *globaldb.SQLExecutor Clock clock.Clock }
func (*Store) ListAppUsers ¶
ListAppUsers returns a list of (appID, userID) pairs that it is the time to execute the scheduled deletion.
type UserService ¶
type UserServiceFactory ¶
type UserServiceFactory interface {
MakeUserService(ctx context.Context, appID string, appContext *config.AppContext) UserService
}
Click to show internal directories.
Click to hide internal directories.