Versions in this module Expand all Collapse all v0 v0.1.7 Sep 17, 2024 Changes in this version + const ShopTemplate type Config + Shop shopConfig v0.1.6 Sep 11, 2024 v0.1.5 Sep 11, 2024 v0.1.4 Sep 11, 2024 Changes in this version + const DefaultConfigPath + const ErrBadRequest + const ErrInternalServerError + const ErrNotFound + const ErrUnauthorized + const EventHeartbeatCreate + const EventProjectLabelCreate + const EventProjectLabelDelete + const EventUserDelete + const EventUserUpdate + const EventWakatimeFailure + const FieldPayload + const FieldUser + const FieldUserId + const ImprintTemplate + const IndexTemplate + const KeyFirstHeartbeat + const KeyInviteCode + const KeyLastImport + const KeyLastImportSuccess + const KeyLatestTotalTime + const KeyLatestTotalUsers + const KeyNewsbox + const KeySubscriptionNotificationSent + const LeaderboardTemplate + const LoginTemplate + const MailProviderSmtp + const ProjectsTemplate + const QueueDefault + const QueueHousekeeping + const QueueImports + const QueueMails + const QueueProcessing + const QueueReports + const ResetPasswordTemplate + const SQLDialectMssql + const SQLDialectMysql + const SQLDialectPostgres + const SQLDialectSqlite + const SessionKeyDefault + const SetPasswordTemplate + const SettingsTemplate + const SignupTemplate + const SimpleDateFormat + const SimpleDateTimeFormat + const SummaryTemplate + const TopicHeartbeat + const TopicProjectLabel + const TopicUser + const WakatimeApiAllTimeUrl + const WakatimeApiDataDumpUrl + const WakatimeApiHeartbeatsBulkUrl + const WakatimeApiHeartbeatsUrl + const WakatimeApiMachineNamesUrl + const WakatimeApiUrl + const WakatimeApiUserAgentsUrl + const WakatimeApiUserUrl + func BeginningOfWakatime() time.Time + func ChooseFS(localDir string, embeddedFS fs.FS) fs.FS + func CloseQueues() + func EventBus() *hub.Hub + func GetDefaultQueue() *artifex.Dispatcher + func GetQueue(name string) *artifex.Dispatcher + func GetSessionStore() *sessions.CookieStore + func InitLogger(isDev bool) + func InitQueue(name string, workers int) error + func IsDev(env string) bool + func Set(config *Config) + func StartJobs() + type ApplicationEvent struct + Payload interface{} + Type string + type Config struct + App appConfig + Db dbConfig + EnablePprof bool + Env string + InstanceId string + Mail mailConfig + QuickStart bool + Security securityConfig + Sentry sentryConfig + Server serverConfig + SkipMigrations bool + Subscriptions subscriptionsConfig + Version string + func Empty() *Config + func Get() *Config + func Load(configFlag string, version string) *Config + func (c *Config) CreateCookie(name, value string) *http.Cookie + func (c *Config) GetClearCookie(name string) *http.Cookie + func (c *Config) IsDev() bool + func (c *Config) UseTLS() bool + type JobQueueMetrics struct + EnqueuedJobs int + FinishedJobs int + Queue string + func GetQueueMetrics() []*JobQueueMetrics + type SMTPMailConfig struct + Host string + Password string + Port uint + SkipVerify bool + TLS bool + Username string + func (c *SMTPMailConfig) ConnStr() string + type SentryLogger struct + func Log() *SentryLogger + func (l *SentryLogger) Fatal(msg string, args ...any) + func (l *SentryLogger) Request(r *http.Request) *slog.Logger + type WakapiDBOpts struct + func GetWakapiDBOpts(dbConfig *dbConfig) *WakapiDBOpts + func (opts WakapiDBOpts) AfterInitialize(db *gorm.DB) error + func (opts WakapiDBOpts) Apply(config *gorm.Config) error