Documentation ¶
Index ¶
- Constants
- func ActorMiddleware() echo.MiddlewareFunc
- func DahuaAferoFileURI(name string) string
- func DahuaDeviceFileURI(deviceID int64, filePath string) string
- func MediamtxURI(path string) string
- func RequireAuthMiddleware() echo.MiddlewareFunc
- func SessionMiddleware() echo.MiddlewareFunc
- func WS(ctx context.Context, conn *websocket.Conn, pub *pubsub.Pub)
- type Server
- func (s *Server) DahuaAfero(prefix string) echo.HandlerFunc
- func (s *Server) DahuaDevices(c echo.Context) error
- func (s *Server) DahuaDevicesIDAudio(c echo.Context) error
- func (s *Server) DahuaDevicesIDCoaxialCaps(c echo.Context) error
- func (s *Server) DahuaDevicesIDCoaxialStatus(c echo.Context) error
- func (s *Server) DahuaDevicesIDDetail(c echo.Context) error
- func (s *Server) DahuaDevicesIDError(c echo.Context) error
- func (s *Server) DahuaDevicesIDEvents(c echo.Context) error
- func (s *Server) DahuaDevicesIDFiles(c echo.Context) error
- func (s *Server) DahuaDevicesIDFilesPath(c echo.Context) error
- func (s *Server) DahuaDevicesIDLicenses(c echo.Context) error
- func (s *Server) DahuaDevicesIDPTZPresetGET(c echo.Context) error
- func (s *Server) DahuaDevicesIDPTZPresetPOST(c echo.Context) error
- func (s *Server) DahuaDevicesIDRPCPOST(c echo.Context) error
- func (s *Server) DahuaDevicesIDSnapshot(c echo.Context) error
- func (s *Server) DahuaDevicesIDSoftware(c echo.Context) error
- func (s *Server) DahuaDevicesIDStorage(c echo.Context) error
- func (s *Server) DahuaDevicesIDUptime(c echo.Context) error
- func (s *Server) DahuaDevicesIDUsers(c echo.Context) error
- func (s *Server) DahuaEvents(c echo.Context) error
- func (s *Server) Mediamtx(prefix string) echo.HandlerFunc
- func (s *Server) Register(e *echo.Group) *Server
- func (s *Server) RegisterSession(e *echo.Group) *Server
- func (s *Server) Session(c echo.Context) error
- func (s *Server) SessionDELETE(c echo.Context) error
- func (s *Server) SessionPOST(c echo.Context) error
- func (s Server) WS(c echo.Context) error
- type SesionResp
- type StreamPayload
- type WSData
- type WSEvent
Constants ¶
View Source
const Route = "/v1"
Variables ¶
This section is empty.
Functions ¶
func ActorMiddleware ¶
func ActorMiddleware() echo.MiddlewareFunc
ActorMiddleware sets the actor context from session context or token.
func DahuaAferoFileURI ¶
func DahuaDeviceFileURI ¶
func MediamtxURI ¶
func RequireAuthMiddleware ¶
func RequireAuthMiddleware() echo.MiddlewareFunc
RequireAuthMiddleware allows only if actor is system or session is valid.
func SessionMiddleware ¶
func SessionMiddleware() echo.MiddlewareFunc
SessionMiddleware sets the session context.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) DahuaAfero ¶
func (s *Server) DahuaAfero(prefix string) echo.HandlerFunc
func (*Server) DahuaDevicesIDCoaxialCaps ¶
func (*Server) DahuaDevicesIDCoaxialStatus ¶
func (*Server) DahuaDevicesIDFilesPath ¶
func (*Server) DahuaDevicesIDLicenses ¶
func (*Server) DahuaDevicesIDPTZPresetGET ¶
func (*Server) DahuaDevicesIDPTZPresetPOST ¶
func (*Server) DahuaDevicesIDSnapshot ¶
func (*Server) DahuaDevicesIDSoftware ¶
type SesionResp ¶
type StreamPayload ¶
Click to show internal directories.
Click to hide internal directories.