Documentation ¶
Index ¶
- func FormatTimeAxisValue(milis float64) string
- func FormatYAxisValues(num float64) string
- func GetFormattedWeek(date time.Time) string
- func GetLastNWeeks(date time.Time, n int) []string
- func GetMonospaceFont() *truetype.Font
- func GetPrevNextWeek(date time.Time) (string, string)
- func GetRegularFont() *truetype.Font
- func GetStartEndWeekDates(yearWeek string) (string, error)
- func GetStartOfMonths(weeks []string) []time.Time
- func GetStartOfTheWeek(date time.Time) time.Time
- func GetTimeAxisNormalizationFactor(milis float64) float64
- func GetTimeAxisNormalizationFactorLabel(factor float64) string
- func ParseYearWeek(yw string) (time.Time, time.Time, error)
- func URLValuesWith(values url.Values, key string, value string) url.Values
- func URLValuesWithout(values url.Values, keyWithout string) url.Values
- type Config
- type Tenant
- type TomlConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatTimeAxisValue ¶
func FormatYAxisValues ¶
func GetFormattedWeek ¶
func GetMonospaceFont ¶
func GetRegularFont ¶
func GetStartEndWeekDates ¶
func GetStartOfMonths ¶
Types ¶
type Config ¶
type Config struct { IsMultiTenant bool ShouldUseSuperDatabase bool SuperDatabaseUrl *string TenantDatabaseUrlTemplate *string Tenants map[string]Tenant }
func GetConfigFromEnv ¶
func ValidateConfig ¶
func ValidateConfig(config *TomlConfig) (*Config, error)
type TomlConfig ¶
type TomlConfig struct { TenantDatabaseUrlTemplate *string `toml:"tenant_database_url_template"` SuperDatabaseUrl *string `toml:"super_database_url"` Tenants map[string]Tenant `toml:"tenants"` }
func LoadConfigToml ¶
func LoadConfigToml(path string) (*TomlConfig, error)
Click to show internal directories.
Click to hide internal directories.