Documentation ¶
Index ¶
- Variables
- func NewGlobalDatabaseCredentials(dbCredentials *config.DatabaseCredentials) *config.GlobalDatabaseCredentialsEnvironmentConfig
- func NewLoggerFactory() *log.Factory
- type Service
- func (s *Service) CreatePlan(ctx context.Context, name string) error
- func (s Service) GetDatabaseSourceByAppID(ctx context.Context, appID string) (consrc *configsource.DatabaseSource, err error)
- func (s *Service) GetPlan(ctx context.Context, name string) (p *plan.Plan, err error)
- func (s Service) UpdateAppFeatureConfig(ctx context.Context, appID string, featureConfigYAML []byte, planName string) (err error)
- func (s Service) UpdateAppPlan(ctx context.Context, appID string, planName string) error
- func (s Service) UpdatePlan(ctx context.Context, name string, featureConfigYAML []byte) (appIDs []string, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DependencySet = wire.NewSet( NewLoggerFactory, config.NewDefaultDatabaseEnvironmentConfig, NewGlobalDatabaseCredentials, globaldb.DependencySet, clock.DependencySet, plan.DependencySet, wire.Struct(new(configsource.Store), "*"), wire.Struct(new(Service), "*"), )
Functions ¶
func NewGlobalDatabaseCredentials ¶
func NewGlobalDatabaseCredentials(dbCredentials *config.DatabaseCredentials) *config.GlobalDatabaseCredentialsEnvironmentConfig
func NewLoggerFactory ¶
Types ¶
type Service ¶
type Service struct { Handle *globaldb.Handle Store *plan.Store ConfigSourceStore *configsource.Store Clock clock.Clock }
func NewService ¶
func NewService(pool *db.Pool, databaseCredentials *config.DatabaseCredentials) *Service
func (Service) GetDatabaseSourceByAppID ¶
func (s Service) GetDatabaseSourceByAppID(ctx context.Context, appID string) (consrc *configsource.DatabaseSource, err error)
func (Service) UpdateAppFeatureConfig ¶
func (Service) UpdateAppPlan ¶
Click to show internal directories.
Click to hide internal directories.