Versions in this module Expand all Collapse all v0 v0.0.11 Feb 25, 2026 Changes in this version type EventType + const EventGitCommitCreate + const EventGitCommitPush v0.0.10 Feb 22, 2026 Changes in this version + var ErrSoundNotFound = errors.New("sound not found") + func ValidEventType(eventType EventType) bool + type Config struct + Hooks map[EventType]string + func DefaultConfig() *Config + func (c *Config) OK() error + type Event struct + Time time.Time + Type EventType + type EventType string + const EventCommitCreate + const EventFileCreate + const EventFileRemove + const EventFileWrite + const EventInit + const EventPackageCreate + const EventPackageRemove + const EventPackageUpgrade + type Manager struct + func NewManager(cfg *Config) (*Manager, error) + func (m *Manager) AddEventHook(name string, eventType EventType) error + func (m *Manager) AddSound(path string) error + func (m *Manager) Close() + func (m *Manager) GetSound(name string) (*Sound, error) + func (m *Manager) PlaySound(ctx context.Context, name string) error + func (m *Manager) Run(ctx context.Context) + func (m *Manager) SendEvent(ctx context.Context, event Event) + type Sound struct + Buffer *beep.Buffer + Format beep.Format + Name string