http urls monitor.

main.go 709B

12345678910111213141516171819202122232425262728
  1. package main
  2. import (
  3. "git.links123.net/links123.com/monitor_status/cmd/http"
  4. "git.links123.net/links123.com/monitor_status/cmd/version"
  5. "github.com/spf13/cobra"
  6. )
  7. var apiVersion, gitCommit, built string
  8. // @title project monitor_status for all project from links123.com
  9. // @version 1.0
  10. // @description project monitor_status for all project from links123.com
  11. // @host 127.0.0.1:8080/v1
  12. func main() {
  13. rootCmd := &cobra.Command{
  14. Use: "monitor_status",
  15. Short: "monitor_status api for the project of links123.com's campus",
  16. }
  17. rootCmd.AddCommand(http.RunCommand())
  18. rootCmd.AddCommand(version.RunCommand(apiVersion, gitCommit, built))
  19. if err := rootCmd.Execute(); err != nil {
  20. panic(err)
  21. }
  22. }