- Introduced the OAuth service structure, including configuration management and user provider integration. - Implemented default settings and validation for various configuration parameters, ensuring robust service initialization. - Added methods for retrieving service configuration and user information based on access tokens. - Defined error handling for configuration issues, enhancing reliability of the OAuth service.
12 lines
222 B
Go
12 lines
222 B
Go
package types
|
|
|
|
import "context"
|
|
|
|
// Job interface
|
|
type Job interface {
|
|
Run(ctx context.Context) error
|
|
AddTask(ctx context.Context, task Task) error
|
|
}
|
|
|
|
// Task interface
|
|
type Task func(ctx context.Context, job Job) error
|