Versions in this module Expand all Collapse all v0 v0.5.5 Jul 8, 2023 Changes in this version + var ErrInvalidConfig = errors.New("config is not in its proper form") + var ErrNotFound = errors.New("config not found") + type Config struct + DateCreated time.Time + DateUpdated time.Time + Key string + Value string + type Core struct + func NewCore(log *zap.SugaredLogger, sqlxDB *sqlx.DB) Core + func (c Core) Create(ctx context.Context, newConfig NewConfig, now time.Time) (Config, error) + func (c Core) Delete(ctx context.Context, configKey string) error + func (c Core) QueryByKey(ctx context.Context, configKey string) (Config, error) + func (c Core) QueryEngineConfig(ctx context.Context) (*config.Config, error) + func (c Core) Update(ctx context.Context, configKey string, updateConfig UpdateConfig, ...) error + type NewConfig struct + Key string + Value string + type UpdateConfig struct + Value *string