Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service handles demo mode functionality
func NewService ¶
func NewService(db *sql.DB, snippetService *services.SnippetService, logger *slog.Logger, resetInterval time.Duration, enabled bool) *Service
NewService creates a new demo service
func (*Service) ResetDatabase ¶
ResetDatabase clears all data and creates fake snippets
func (*Service) StartPeriodicReset ¶
StartPeriodicReset starts the periodic database reset goroutine
Click to show internal directories.
Click to hide internal directories.