Documentation ¶ Index ¶ func Execute() type App func (a *App) PostHandlerMotion(w http.ResponseWriter, r *http.Request) func (a *App) Serve() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Execute ¶ func Execute() Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd. Types ¶ type App ¶ type App struct { Router *mux.Router Cfg *c.Config RestUri string // Modules Snapshots c.CamModule SnapshotTimeoutChan chan int } func (*App) PostHandlerMotion ¶ func (a *App) PostHandlerMotion(w http.ResponseWriter, r *http.Request) func (*App) Serve ¶ func (a *App) Serve() Source Files ¶ View all Source files root.go serve.go Click to show internal directories. Click to hide internal directories.