Versions in this module Expand all Collapse all v1 v1.3.0 Sep 5, 2024 Changes in this version type Cars + MaxOldParkingDelay *settings.Duration + MinOldParkingDelay *settings.Duration type Config + func (c *Config) Bounds() (minb, maxb *Serializable) + type OutOfBoundsSettingsError struct + Cars struct{ ... } + func (e *OutOfBoundsSettingsError) Error() string + func (e *OutOfBoundsSettingsError) IsBoundsError() v1.2.0 Mar 7, 2024 Changes in this version type Config + Comments *comment.Comment + func LoadFromDB(ctx context.Context, data []byte) (*Config, bool, error) + func (c *Config) Mutate(s Serializable) error + func (c *Config) Serializable() *Serializable + func (c *Config) SettingsPersister(tx repo.Tx) (repo.SettingsPersister, error) + func (c *Config) Visible() *Visible + type Immutable struct + Logger bool + type Serializable struct + Version model.SemVer + type Settings struct + type Visible struct + Cars struct{ ... } v1.1.0 Feb 16, 2024 Changes in this version + const Major + const Minor + const Patch + var Version = model.SemVer + type Cars struct + OldParkingDelay *settings.Duration + func (c Cars) NewUseCase(p repo.Pool, r repo.Cars) (*carsuc.UseCase, error) + type Config struct + Database Database + Gin Gin + Usecases Usecases + Vers vers.Config + func Load(data []byte) (*Config, error) + func (c *Config) Clone() *Config + func (c *Config) ConnectionInfo() (dbName, host string, port int) + func (c *Config) ConnectionPool(ctx context.Context, r repo.Role) (repo.Pool, error) + func (c *Config) Dereference() *Config + func (c *Config) MajorVersion() uint + func (c *Config) Marshal() *Marshalled + func (c *Config) MarshalYAML() (interface{}, error) + func (c *Config) MergeConfig(c2 *Config) error + func (c *Config) NewSchemaRepo() repo.Schema + func (c *Config) RenewPasswords(ctx context.Context, ...) (finalizer func() error, err error) + func (c *Config) SchemaInitializer(tx repo.Tx) (repo.SchemaInitializer, error) + func (c *Config) SchemaMigrator(tx repo.Tx) (repo.Migrator[repo.SchemaSettler], error) + func (c *Config) SchemaVersion() model.SemVer + func (c *Config) SetSchemaVersion(sv model.SemVer) + func (c *Config) ValidateAndNormalize() error + func (c *Config) Version() model.SemVer + type Database struct + AuthMethod string + Host string + Name string + PassDir string + Port int + RoleSuffix repo.Role + func (d *Database) ValidateAndNormalize() error + func (d Database) ConnectionInfo() (dbName, host string, port int) + func (d Database) ConnectionPool(ctx context.Context, r repo.Role) (repo.Pool, error) + func (d Database) ConnectionURL(r repo.Role, path string) (string, error) + func (d Database) NewSchemaRepo() repo.Schema + func (d Database) RenewPasswords(ctx context.Context, ...) (finalizer func() error, err error) + func (d Database) SchemaMigrator(tx repo.Tx, srcDBVer model.SemVer) (repo.Migrator[repo.SchemaSettler], error) + type Gin struct + Logger *bool + Recovery *bool + func (g Gin) NewEngine() *gin.Engine + type Marshalled struct + Database Database + Gin Gin + Usecases struct{ ... } + Vers *vers.Marshalled + type Usecases struct + Cars Cars