Browse Source

api: normalize entity names

pull/543/head
aler9 5 years ago
parent
commit
da44bbd18a
  1. 12
      apidocs/openapi.yaml
  2. 4
      internal/core/rtmp_conn.go
  3. 4
      internal/core/rtsp_session.go

12
apidocs/openapi.yaml

@ -202,7 +202,7 @@ components:
properties: properties:
type: type:
type: string type: string
enum: [rtspsession] enum: [rtspSession]
id: id:
type: string type: string
@ -211,7 +211,7 @@ components:
properties: properties:
type: type:
type: string type: string
enum: [rtspssession] enum: [rtspsSession]
id: id:
type: string type: string
@ -220,7 +220,7 @@ components:
properties: properties:
type: type:
type: string type: string
enum: [rtmpconn] enum: [rtmpConn]
id: id:
type: string type: string
@ -243,7 +243,7 @@ components:
properties: properties:
type: type:
type: string type: string
enum: [rtspsession] enum: [rtspSession]
id: id:
type: string type: string
@ -252,7 +252,7 @@ components:
properties: properties:
type: type:
type: string type: string
enum: [rtspssession] enum: [rtspsSession]
id: id:
type: string type: string
@ -261,7 +261,7 @@ components:
properties: properties:
type: type:
type: string type: string
enum: [rtmpconn] enum: [rtmpConn]
id: id:
type: string type: string

4
internal/core/rtmp_conn.go

@ -548,7 +548,7 @@ func (c *rtmpConn) OnReaderAPIDescribe() interface{} {
return struct { return struct {
Type string `json:"type"` Type string `json:"type"`
ID string `json:"id"` ID string `json:"id"`
}{"rtmpconn", c.id} }{"rtmpConn", c.id}
} }
// OnSourceAPIDescribe implements source. // OnSourceAPIDescribe implements source.
@ -556,7 +556,7 @@ func (c *rtmpConn) OnSourceAPIDescribe() interface{} {
return struct { return struct {
Type string `json:"type"` Type string `json:"type"`
ID string `json:"id"` ID string `json:"id"`
}{"rtmpconn", c.id} }{"rtmpConn", c.id}
} }
// OnPublisherAccepted implements publisher. // OnPublisherAccepted implements publisher.

4
internal/core/rtsp_session.go

@ -352,7 +352,7 @@ func (s *rtspSession) OnReaderAPIDescribe() interface{} {
return struct { return struct {
Type string `json:"type"` Type string `json:"type"`
ID string `json:"id"` ID string `json:"id"`
}{"rtspsession", s.id} }{"rtspSession", s.id}
} }
// OnSourceAPIDescribe implements source. // OnSourceAPIDescribe implements source.
@ -360,7 +360,7 @@ func (s *rtspSession) OnSourceAPIDescribe() interface{} {
return struct { return struct {
Type string `json:"type"` Type string `json:"type"`
ID string `json:"id"` ID string `json:"id"`
}{"rtspsession", s.id} }{"rtspSession", s.id}
} }
// OnPublisherAccepted implements publisher. // OnPublisherAccepted implements publisher.

Loading…
Cancel
Save