Versions in this module Expand all Collapse all v0 v0.0.2 Dec 18, 2020 Changes in this version type AuthMixin + Password string + Username string type RtspMixin + Host string + Password string + Username string + func (rm *RtspMixin) OpenRtspStream(profile enum.RtspProfile, rtspOpts ...rtsp.OptionRtspClient) *rtsp.RtspClient v0.0.1 Dec 17, 2020 Changes in this version + type AuthMixin struct + func (am *AuthMixin) Login() func(handler *network.RestHandler) (bool, error) + func (am *AuthMixin) Logout() func(handler *network.RestHandler) (bool, error) + type DeviceMixin struct + func (dm *DeviceMixin) FormatHdd(hddId int) func(handler *network.RestHandler) (bool, error) + func (dm *DeviceMixin) GetHddInfo() func(handler *network.RestHandler) (*models.HddInfo, error) + type DisplayMixin struct + func (dm *DisplayMixin) GetMask() func(handler *network.RestHandler) (*models.MaskData, error) + func (dm *DisplayMixin) GetOSD() func(handler *network.RestHandler) (*models.Osd, error) + func (dm *DisplayMixin) SetOSD(osdOption ...OptionOsd) func(handler *network.RestHandler) (bool, error) + type ImageMixin struct + func (im *ImageMixin) SetAdvanceImageSettings(imageAdvancedOptions ...OptionAdvancedImageSetting) func(handler *network.RestHandler) (bool, error) + func (im *ImageMixin) SetImageSettings(imageOptions ...OptionImageSetting) func(handler *network.RestHandler) (bool, error) + type NetworkMixin struct + func (nm *NetworkMixin) GetNetworkDDNS() func(handler *network.RestHandler) (*models.NetworkDDNS, error) + func (nm *NetworkMixin) GetNetworkEmail() func(handler *network.RestHandler) (*models.NetworkEmail, error) + func (nm *NetworkMixin) GetNetworkFTP() func(handler *network.RestHandler) (*models.NetworkFTP, error) + func (nm *NetworkMixin) GetNetworkGeneral() func(handler *network.RestHandler) (*models.NetworkGeneral, error) + func (nm *NetworkMixin) GetNetworkNTP() func(handler *network.RestHandler) (*models.NetworkNTP, error) + func (nm *NetworkMixin) GetNetworkPush() func(handler *network.RestHandler) (*models.NetworkPush, error) + func (nm *NetworkMixin) GetNetworkStatus() func(handler *network.RestHandler) (*models.NetworkGeneral, error) + func (nm *NetworkMixin) GetWifi() func(handler *network.RestHandler) (*models.Wifi, error) + func (nm *NetworkMixin) ScanWifi() func(handler *network.RestHandler) (*models.ScanWifi, error) + func (nm *NetworkMixin) SetNetworkPort(networkPortOptions ...NetworkPortOptions) func(handler *network.RestHandler) (bool, error) + func (nm *NetworkMixin) SetWifi(ssid string, password string) func(handler *network.RestHandler) (bool, error) + type NetworkPortOptions func(*networkPorts) + func NetworkPortOptionHttp(httpPort int) NetworkPortOptions + func NetworkPortOptionHttps(https int) NetworkPortOptions + func NetworkPortOptionMedia(media int) NetworkPortOptions + func NetworkPortOptionOnvif(onvif int) NetworkPortOptions + func NetworkPortOptionRtmp(rtmp int) NetworkPortOptions + func NetworkPortOptionRtsp(rtsp int) NetworkPortOptions + type OptionAdvancedImageSetting func(*imageAdvanced) + func ImageAdvancedOptionAntiFlicker(antiFlicker enum.AntiFlicker) OptionAdvancedImageSetting + func ImageAdvancedOptionBacklight(backlight enum.Backlight) OptionAdvancedImageSetting + func ImageAdvancedOptionBlc(blc int) OptionAdvancedImageSetting + func ImageAdvancedOptionBlueGain(blueGain int) OptionAdvancedImageSetting + func ImageAdvancedOptionDayNight(dayNight enum.DayNight) OptionAdvancedImageSetting + func ImageAdvancedOptionDrc(drc int) OptionAdvancedImageSetting + func ImageAdvancedOptionExposure(exposure enum.Exposure) OptionAdvancedImageSetting + func ImageAdvancedOptionGainMax(gainMax int) OptionAdvancedImageSetting + func ImageAdvancedOptionGainMin(gainMin int) OptionAdvancedImageSetting + func ImageAdvancedOptionMirroring(mirroring int) OptionAdvancedImageSetting + func ImageAdvancedOptionNr3d(nr3d int) OptionAdvancedImageSetting + func ImageAdvancedOptionRedGain(redGain int) OptionAdvancedImageSetting + func ImageAdvancedOptionRotation(rotation enum.Rotation) OptionAdvancedImageSetting + func ImageAdvancedOptionShutterMax(shutterMax int) OptionAdvancedImageSetting + func ImageAdvancedOptionShutterMin(shutterMin int) OptionAdvancedImageSetting + func ImageAdvancedOptionWhiteBalance(whiteBalance enum.WhiteBalance) OptionAdvancedImageSetting + type OptionFocusOperation func(*focus) + func FocusOptionSpeed(speed int) OptionFocusOperation + type OptionImageSetting func(*image) + func ImageOptionBrightness(brightness int) OptionImageSetting + func ImageOptionContrast(contrast int) OptionImageSetting + func ImageOptionHue(hue int) OptionImageSetting + func ImageOptionSaturation(saturation int) OptionImageSetting + func ImageOptionSharpness(sharpness int) OptionImageSetting + type OptionOsd func(*osd) + func SetOsdOptionBgColor(bgColor bool) OptionOsd + func SetOsdOptionsChannel(channel int) OptionOsd + func SetOsdOptionsChannelEnable(enable bool) OptionOsd + func SetOsdOptionsChannelName(name string) OptionOsd + func SetOsdOptionsChannelPos(position enum.OsdPosition) OptionOsd + func SetOsdOptionsTimeEnable(enable bool) OptionOsd + func SetOsdOptionsTimePos(position enum.OsdPosition) OptionOsd + type OptionPtzOperation func(*ptzOperationOptions) + func PtzOptionOpsIndex(index *int) OptionPtzOperation + func PtzOptionOpsSpeed(speed int) OptionPtzOperation + type OptionPtzPreset func(*ptzPresetOptions) + func PtzOptionPresetIndex(index int) OptionPtzPreset + func PtzOptionsPresetName(name string) OptionPtzPreset + type OptionRecordingEncoding func(*encoding) + func RecordingEncodingOptionAudio(audio bool) OptionRecordingEncoding + func RecordingEncodingOptionMainBitRate(bitRate enum.MainBitRate) OptionRecordingEncoding + func RecordingEncodingOptionMainFrameRate(frameRate enum.MainFrameRate) OptionRecordingEncoding + func RecordingEncodingOptionMainProfile(profile enum.RecordingProfile) OptionRecordingEncoding + func RecordingEncodingOptionMainSize(size enum.MainSize) OptionRecordingEncoding + func RecordingEncodingOptionSubBitRate(bitRate enum.SubBitRate) OptionRecordingEncoding + func RecordingEncodingOptionSubFrameRate(frameRate enum.SubFrameRate) OptionRecordingEncoding + func RecordingEncodingOptionSubProfile(profile enum.RecordingProfile) OptionRecordingEncoding + func RecordingEncodingOptionSubSize(size enum.SubSize) OptionRecordingEncoding + type OptionZoomOperation func(*zoom) + func ZoomOptionSpeed(speed int) OptionZoomOperation + type PtzMixin struct + func (pm *PtzMixin) AddPreset(ptzOptions ...OptionPtzPreset) func(handler *network.RestHandler) (bool, error) + func (pm *PtzMixin) AutoMovement() func(handler *network.RestHandler) (bool, error) + func (pm *PtzMixin) GoToPreset(ptzOptions ...OptionPtzOperation) func(handler *network.RestHandler) (bool, error) + func (pm *PtzMixin) MoveDown(ptzOptions ...OptionPtzOperation) func(handler *network.RestHandler) (bool, error) + func (pm *PtzMixin) MoveLeft(ptzOptions ...OptionPtzOperation) func(handler *network.RestHandler) (bool, error) + func (pm *PtzMixin) MoveLeftDown(ptzOptions ...OptionPtzOperation) func(handler *network.RestHandler) (bool, error) + func (pm *PtzMixin) MoveLeftUp(ptzOptions ...OptionPtzOperation) func(handler *network.RestHandler) (bool, error) + func (pm *PtzMixin) MoveRight(ptzOptions ...OptionPtzOperation) func(handler *network.RestHandler) (bool, error) + func (pm *PtzMixin) MoveRightDown(ptzOptions ...OptionPtzOperation) func(handler *network.RestHandler) (bool, error) + func (pm *PtzMixin) MoveRightUp(ptzOptions ...OptionPtzOperation) func(handler *network.RestHandler) (bool, error) + func (pm *PtzMixin) MoveUp(ptzOptions ...OptionPtzOperation) func(handler *network.RestHandler) (bool, error) + func (pm *PtzMixin) RemovePreset(ptzOptions ...OptionPtzPreset) func(handler *network.RestHandler) (bool, error) + func (pm *PtzMixin) StopPtz() func(handler *network.RestHandler) (bool, error) + type RecordingMixin struct + func (rm *RecordingMixin) GetRecordingAdvanced() func(handler *network.RestHandler) (*models.Recording, error) + func (rm *RecordingMixin) GetRecordingEncoding() func(handler *network.RestHandler) (*models.Encoding, error) + func (rm *RecordingMixin) SetRecordingEncoding(encodingOptions ...OptionRecordingEncoding) func(handler *network.RestHandler) (bool, error) + type RtspMixin struct + type RtspStream struct + Err error + Frame []av.CodecData + type SystemMixin struct + func (sm *SystemMixin) GetDeviceInformation() func(handler *network.RestHandler) (*models.DeviceInformation, error) + func (sm *SystemMixin) GetDstInformation() ... + func (sm *SystemMixin) GetGeneralSystem() func(handler *network.RestHandler) (*models.DeviceGeneralInformation, error) + func (sm *SystemMixin) GetPerformance() ... + func (sm *SystemMixin) RebootCamera() func(handler *network.RestHandler) (bool, error) + type UserMixin struct + func (um *UserMixin) AddUser(username string, password string, level enum.UserLevel) func(handler *network.RestHandler) (bool, error) + func (um *UserMixin) DeleteUser(username string) func(handler *network.RestHandler) (bool, error) + func (um *UserMixin) GetOnlineUsers() func(handler *network.RestHandler) ([]*models.User, error) + func (um *UserMixin) GetUsers() func(handler *network.RestHandler) ([]*models.User, error) + func (um *UserMixin) UpdateUserPassword(username string, password string) func(handler *network.RestHandler) (bool, error) + type ZoomFocusMixin struct + func (zfm *ZoomFocusMixin) StartFocusingIn(focusOptions ...OptionFocusOperation) func(handler *network.RestHandler) (bool, error) + func (zfm *ZoomFocusMixin) StartFocusingOut(focusOptions ...OptionFocusOperation) func(handler *network.RestHandler) (bool, error) + func (zfm *ZoomFocusMixin) StartZoomingIn(zoomOptions ...OptionZoomOperation) func(handler *network.RestHandler) (bool, error) + func (zfm *ZoomFocusMixin) StartZoomingOut(zoomOptions ...OptionZoomOperation) func(handler *network.RestHandler) (bool, error) + func (zfm *ZoomFocusMixin) StopFocusing() func(handler *network.RestHandler) (bool, error) + func (zfm *ZoomFocusMixin) StopZooming() func(handler *network.RestHandler) (bool, error)