kurzd.go 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // Package kurzd contains the Kurz daemon command.
  2. package main
  3. import (
  4. "os"
  5. "time"
  6. _ "github.com/go-sql-driver/mysql"
  7. )
  8. /**
  9. kurzd
  10. -h Display top-level help
  11. -v Verbose (default: false).
  12. help <command> Display help (same as kurzd <command> -h)
  13. server Serve kurz (default option).
  14. -p|--port <port_id> Serve on this IP port (default: 80).
  15. -m|--monitoring <port_id> Serve monitoring on this IP port (default: none)
  16. install Install kurzd completely.
  17. config Install the configuration define by command line to ~.
  18. export Export kurzd data.
  19. config Export kurz configuration.
  20. content Export kurz content.
  21. migrate Goose migration commands
  22. <goose commands> See https://github.com/pressly/goose
  23. uninstall Uninstall kurzd completely.
  24. config Uninstall the curz configuration file from ~.
  25. schema Uninstall the curz database schema.
  26. status Report on kurzd status
  27. stop Stop all instances of kurzd on the current server (restricted)
  28. */
  29. func main() {
  30. Execute()
  31. os.Exit(0)
  32. }
  33. type MapEntry struct {
  34. Hash uint64
  35. Url string
  36. Date1, Date2, Date3 time.Time
  37. RefCount uint32
  38. }