Browse Source

update docs

pull/745/head
aler9 5 years ago
parent
commit
779d5b61cd
  1. 8
      apidocs/openapi.yaml
  2. 2
      internal/conf/path.go
  3. 2
      internal/core/api.go

8
apidocs/openapi.yaml

@ -48,7 +48,7 @@ components: @@ -48,7 +48,7 @@ components:
runOnConnectRestart:
type: boolean
# rtsp
# RTSP
rtspDisable:
type: boolean
protocols:
@ -82,13 +82,13 @@ components: @@ -82,13 +82,13 @@ components:
readBufferSize:
type: integer
# rtmp
# RTMP
rtmpDisable:
type: boolean
rtmpAddress:
type: string
# hls
# HLS
hlsDisable:
type: boolean
hlsAddress:
@ -150,7 +150,7 @@ components: @@ -150,7 +150,7 @@ components:
items:
type: string
# custom commands
# external commands
runOnInit:
type: string
runOnInitRestart:

2
internal/conf/path.go

@ -58,7 +58,7 @@ type PathConf struct { @@ -58,7 +58,7 @@ type PathConf struct {
ReadPass Credential `json:"readPass"`
ReadIPs IPsOrNets `json:"readIPs"`
// custom commands
// external commands
RunOnInit string `json:"runOnInit"`
RunOnInitRestart bool `json:"runOnInitRestart"`
RunOnDemand string `json:"runOnDemand"`

2
internal/core/api.go

@ -117,7 +117,7 @@ func loadConfPathData(ctx *gin.Context) (interface{}, error) { @@ -117,7 +117,7 @@ func loadConfPathData(ctx *gin.Context) (interface{}, error) {
ReadPass *conf.Credential `json:"readPass"`
ReadIPs *conf.IPsOrNets `json:"readIPs"`
// custom commands
// external commands
RunOnInit *string `json:"runOnInit"`
RunOnInitRestart *bool `json:"runOnInitRestart"`
RunOnDemand *string `json:"runOnDemand"`

Loading…
Cancel
Save