types.go 402 B

123456789101112131415161718192021222324
  1. package commontray
  2. var (
  3. Title = "Ollama"
  4. ToolTip = "Ollama"
  5. UpdateIconName = "tray_upgrade"
  6. IconName = "tray"
  7. )
  8. type Callbacks struct {
  9. Quit chan struct{}
  10. Update chan struct{}
  11. DoFirstUse chan struct{}
  12. ShowLogs chan struct{}
  13. }
  14. type OllamaTray interface {
  15. GetCallbacks() Callbacks
  16. Run()
  17. UpdateAvailable(ver string) error
  18. DisplayFirstUseNotification() error
  19. Quit()
  20. }