Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
DB *gorm.DB
JWTSecret string
IAM *config.IAMConfig
WorkerProvisioning *service.WorkerProvisioningService
SmsSender sms.SmsSender
WorkerAuth *config.WorkerAuthConfig
}
Config aggregates all dependencies that either edition might need. Fields only used by one variant are passed as nil by the other.
type Edition ¶
type Edition interface {
Auth() account.AuthProvider
User() account.UserRepository
Org() account.OrgRepository
Department() account.DepartmentRepository
Permission() account.PermissionProvider
TokenParser() account.TokenParser
}
Edition aggregates all adapter implementations for the current build variant. The concrete edition (oss or enterprise) is selected at build time via //go:build tags.
func NewEdition ¶
NewEdition returns the oss (open-source) edition. Selected at build time when no -tags enterprise is passed.
Click to show internal directories.
Click to hide internal directories.