model

package
v0.0.19-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppQualityInfo

type AppQualityInfo struct {
	// 应用名称
	AppName *string `json:"app_name,omitempty"`
	// 视频质量信息
	QualityInfo *[]QualityInfo `json:"quality_info,omitempty"`
}

func (AppQualityInfo) String

func (o AppQualityInfo) String() string

type BandwidthInfo

type BandwidthInfo struct {
	// 带宽峰值,单位:bps
	BwBps int32 `json:"bw_bps"`
	// 带宽数据采样周期起始时刻,UTC时间,格式:yyyy-MM-ddTHH:mm:ssZ
	Timestamp string `json:"timestamp"`
}

func (BandwidthInfo) String

func (o BandwidthInfo) String() string

type CreateRecordConfigRequest

type CreateRecordConfigRequest struct {
	Body *RecordConfigInfo `json:"body,omitempty"`
}

Request Object

func (CreateRecordConfigRequest) String

func (o CreateRecordConfigRequest) String() string

type CreateRecordConfigResponse

type CreateRecordConfigResponse struct {
}

Response Object

func (CreateRecordConfigResponse) String

type CreateStreamForbiddenRequest

type CreateStreamForbiddenRequest struct {
	SpecifyProject *string                 `json:"specify_project,omitempty"`
	Body           *StreamForbiddenSetting `json:"body,omitempty"`
}

Request Object

func (CreateStreamForbiddenRequest) String

type CreateStreamForbiddenResponse

type CreateStreamForbiddenResponse struct {
}

Response Object

func (CreateStreamForbiddenResponse) String

type CreateTranscodingsTemplateRequest

type CreateTranscodingsTemplateRequest struct {
	Body *StreamTranscodingTemplate `json:"body,omitempty"`
}

Request Object

func (CreateTranscodingsTemplateRequest) String

type CreateTranscodingsTemplateResponse

type CreateTranscodingsTemplateResponse struct {
}

Response Object

func (CreateTranscodingsTemplateResponse) String

type DeleteRecordConfigRequest

type DeleteRecordConfigRequest struct {
	Domain  string `json:"domain"`
	AppName string `json:"app_name"`
}

Request Object

func (DeleteRecordConfigRequest) String

func (o DeleteRecordConfigRequest) String() string

type DeleteRecordConfigResponse

type DeleteRecordConfigResponse struct {
}

Response Object

func (DeleteRecordConfigResponse) String

type DeleteStreamForbiddenRequest

type DeleteStreamForbiddenRequest struct {
	SpecifyProject *string `json:"specify_project,omitempty"`
	Domain         string  `json:"domain"`
	AppName        string  `json:"app_name"`
	StreamName     string  `json:"stream_name"`
}

Request Object

func (DeleteStreamForbiddenRequest) String

type DeleteStreamForbiddenResponse

type DeleteStreamForbiddenResponse struct {
}

Response Object

func (DeleteStreamForbiddenResponse) String

type DeleteTranscodingsTemplateRequest

type DeleteTranscodingsTemplateRequest struct {
	Domain  string `json:"domain"`
	AppName string `json:"app_name"`
}

Request Object

func (DeleteTranscodingsTemplateRequest) String

type DeleteTranscodingsTemplateResponse

type DeleteTranscodingsTemplateResponse struct {
}

Response Object

func (DeleteTranscodingsTemplateResponse) String

type ListRecordConfigsRequest

type ListRecordConfigsRequest struct {
	Domain     string                              `json:"domain"`
	AppName    *string                             `json:"app_name,omitempty"`
	StreamName *string                             `json:"stream_name,omitempty"`
	Page       *int32                              `json:"page,omitempty"`
	Size       *int32                              `json:"size,omitempty"`
	RecordType *ListRecordConfigsRequestRecordType `json:"record_type,omitempty"`
}

Request Object

func (ListRecordConfigsRequest) String

func (o ListRecordConfigsRequest) String() string

type ListRecordConfigsRequestRecordType

type ListRecordConfigsRequestRecordType struct {
	// contains filtered or unexported fields
}

func (ListRecordConfigsRequestRecordType) MarshalJSON

func (c ListRecordConfigsRequestRecordType) MarshalJSON() ([]byte, error)

func (*ListRecordConfigsRequestRecordType) UnmarshalJSON

func (c *ListRecordConfigsRequestRecordType) UnmarshalJSON(b []byte) error

type ListRecordConfigsRequestRecordTypeEnum

type ListRecordConfigsRequestRecordTypeEnum struct {
	CONFIGER_RECORD ListRecordConfigsRequestRecordType
}

func GetListRecordConfigsRequestRecordTypeEnum

func GetListRecordConfigsRequestRecordTypeEnum() ListRecordConfigsRequestRecordTypeEnum

type ListRecordConfigsResponse

type ListRecordConfigsResponse struct {
	// 查询结果的总元素数量
	Total *int32 `json:"total,omitempty"`
	// 录制配置数组
	RecordConfig *[]RecordConfigInfo `json:"record_config,omitempty"`
}

Response Object

func (ListRecordConfigsResponse) String

func (o ListRecordConfigsResponse) String() string

type ListStreamForbiddenRequest

type ListStreamForbiddenRequest struct {
	SpecifyProject *string `json:"specify_project,omitempty"`
	Domain         string  `json:"domain"`
	AppName        *string `json:"app_name,omitempty"`
	StreamName     *string `json:"stream_name,omitempty"`
	Page           *int32  `json:"page,omitempty"`
	Size           *int32  `json:"size,omitempty"`
}

Request Object

func (ListStreamForbiddenRequest) String

type ListStreamForbiddenResponse

type ListStreamForbiddenResponse struct {
	// 查询结果的总元素数量
	Total *int32 `json:"total,omitempty"`
	// 禁播黑名单列表
	Blocks *[]StreamForbiddenList `json:"blocks,omitempty"`
}

Response Object

func (ListStreamForbiddenResponse) String

type ObsFileAddr

type ObsFileAddr struct {
	// OBS的bucket名称
	Bucket string `json:"bucket"`
	// OBS Bucket所在数据中心(OBS Location)
	Location string `json:"location"`
	// OBS对象路径,遵守OSS Object定义,当用于指示input时,需要指定到具体对象;当用于指示output时, 只需指定到转码结果期望存放的路径
	Object string `json:"object"`
}

func (ObsFileAddr) String

func (o ObsFileAddr) String() string

type QualityInfo

type QualityInfo struct {
	// 模板名称。
	TemplateName *string `json:"templateName,omitempty"`
	// 包含如下取值: - FHD: 超高清,系统缺省名称 - HD: 高清,系统缺省名称 - SD: 标清,系统缺省名称 - LD: 流畅,系统缺省名称 - XXX: 租户自定义名称。用户自定义名称不能与系统缺省名称冲突;多个自定义名称不能重复
	Quality string `json:"quality"`
	// 是否使用窄带高清转码,模板组里不同模板的PVC选项必须相同。 - on:启用。 - off:不启用。 默认为off
	Pvc *QualityInfoPvc `json:"PVC,omitempty"`
	// 是否启用高清低码,较PVC相比画质增强。 - on:启用。 - off:不启用。 默认为off。
	Hdlb *QualityInfoHdlb `json:"hdlb,omitempty"`
	// 视频编码格式,模板组里不同模板的编码格式必须相同。 - H264:使用H.264。 - H265:使用H.265。 默认为H264。
	Codec *QualityInfoCodec `json:"codec,omitempty"`
	// 视频宽度(单位:像素) - H264   取值范围:32-3840,必须为2的倍数 。 - H265   取值范围:320-3840 ,必须为4的倍数。
	Width int32 `json:"width"`
	// 视频高度(单位:像素) - H264   取值范围:32-2160,必须为2的倍数。 - H265   取值范围:240-2160,必须为4的倍数。
	Height int32 `json:"height"`
	// 转码视频的码率(单位:Kbps)。 取值范围:40-30000。
	Bitrate int32 `json:"bitrate"`
	// 转码视频帧率(单位:fps)。 取值范围:0-30,0表示保持帧率不变。
	VideoFrameRate *int32 `json:"video_frame_rate,omitempty"`
	// 转码输出支持的协议类型。当前只支持RTMP和HLS,且模板组里不同模板的输出协议类型必须相同。 - RTMP - HLS - DASH  默认为RTMP。
	Protocol *QualityInfoProtocol `json:"protocol,omitempty"`
	// I帧间隔(单位:帧)。  取值范围:0-500。  默认为25。
	IFrameInterval *int32 `json:"iFrameInterval,omitempty"`
	// 按时间设置I帧间隔,与“iFrameInterval”选择一个设置即可。  取值范围:[0,10]  默认值:4
	Gop *int32 `json:"gop,omitempty"`
}

func (QualityInfo) String

func (o QualityInfo) String() string

type QualityInfoCodec

type QualityInfoCodec struct {
	// contains filtered or unexported fields
}

func (QualityInfoCodec) MarshalJSON

func (c QualityInfoCodec) MarshalJSON() ([]byte, error)

func (*QualityInfoCodec) UnmarshalJSON

func (c *QualityInfoCodec) UnmarshalJSON(b []byte) error

type QualityInfoCodecEnum

type QualityInfoCodecEnum struct {
	H264 QualityInfoCodec
	H265 QualityInfoCodec
}

func GetQualityInfoCodecEnum

func GetQualityInfoCodecEnum() QualityInfoCodecEnum

type QualityInfoHdlb

type QualityInfoHdlb struct {
	// contains filtered or unexported fields
}

func (QualityInfoHdlb) MarshalJSON

func (c QualityInfoHdlb) MarshalJSON() ([]byte, error)

func (*QualityInfoHdlb) UnmarshalJSON

func (c *QualityInfoHdlb) UnmarshalJSON(b []byte) error

type QualityInfoHdlbEnum

type QualityInfoHdlbEnum struct {
	ON  QualityInfoHdlb
	OFF QualityInfoHdlb
}

func GetQualityInfoHdlbEnum

func GetQualityInfoHdlbEnum() QualityInfoHdlbEnum

type QualityInfoProtocol

type QualityInfoProtocol struct {
	// contains filtered or unexported fields
}

func (QualityInfoProtocol) MarshalJSON

func (c QualityInfoProtocol) MarshalJSON() ([]byte, error)

func (*QualityInfoProtocol) UnmarshalJSON

func (c *QualityInfoProtocol) UnmarshalJSON(b []byte) error

type QualityInfoProtocolEnum

type QualityInfoProtocolEnum struct {
	RTMP QualityInfoProtocol
	HLS  QualityInfoProtocol
	DASH QualityInfoProtocol
}

func GetQualityInfoProtocolEnum

func GetQualityInfoProtocolEnum() QualityInfoProtocolEnum

type QualityInfoPvc

type QualityInfoPvc struct {
	// contains filtered or unexported fields
}

func (QualityInfoPvc) MarshalJSON

func (c QualityInfoPvc) MarshalJSON() ([]byte, error)

func (*QualityInfoPvc) UnmarshalJSON

func (c *QualityInfoPvc) UnmarshalJSON(b []byte) error

type QualityInfoPvcEnum

type QualityInfoPvcEnum struct {
	ON  QualityInfoPvc
	OFF QualityInfoPvc
}

func GetQualityInfoPvcEnum

func GetQualityInfoPvcEnum() QualityInfoPvcEnum

type RecordConfigInfo

type RecordConfigInfo struct {
	// 直播播放域名
	Domain string `json:"domain"`
	// 应用名称。 默认为“live”,若您需要自定义应用名称,请先提交工单申请。
	AppName string `json:"app_name"`
	// 秒,周期录制时常,最小15分钟,最大6小时,默认1小时
	RecordDuration *int32 `json:"record_duration,omitempty"`
	// 录制格式flv,hls,mp4,默认flv(目前仅支持flv)
	RecordFormat *RecordConfigInfoRecordFormat `json:"record_format,omitempty"`
	// 录制类型,configer_record,默认configer_record。表示录制配置好后,只要有流就录制
	RecordType *RecordConfigInfoRecordType `json:"record_type,omitempty"`
	// 录制位置vod, 默认vod(目前暂只支持vod)
	RecordLocation *RecordConfigInfoRecordLocation `json:"record_location,omitempty"`
	// 录制文件前缀, DomainName,AppName,StreamName必须,默认{DomainName}/{AppName}/{StreamName}/{StartTime}-{EndTime}
	RecordPrefix *string      `json:"record_prefix,omitempty"`
	ObsAddr      *ObsFileAddr `json:"obs_addr,omitempty"`
	// 录制配置创建时间,样例2020-02-14T10:45:16.947+08:00
	CreateTime *string `json:"create_time,omitempty"`
}

func (RecordConfigInfo) String

func (o RecordConfigInfo) String() string

type RecordConfigInfoRecordFormat

type RecordConfigInfoRecordFormat struct {
	// contains filtered or unexported fields
}

func (RecordConfigInfoRecordFormat) MarshalJSON

func (c RecordConfigInfoRecordFormat) MarshalJSON() ([]byte, error)

func (*RecordConfigInfoRecordFormat) UnmarshalJSON

func (c *RecordConfigInfoRecordFormat) UnmarshalJSON(b []byte) error

type RecordConfigInfoRecordLocation

type RecordConfigInfoRecordLocation struct {
	// contains filtered or unexported fields
}

func (RecordConfigInfoRecordLocation) MarshalJSON

func (c RecordConfigInfoRecordLocation) MarshalJSON() ([]byte, error)

func (*RecordConfigInfoRecordLocation) UnmarshalJSON

func (c *RecordConfigInfoRecordLocation) UnmarshalJSON(b []byte) error

type RecordConfigInfoRecordLocationEnum

type RecordConfigInfoRecordLocationEnum struct {
	VOD RecordConfigInfoRecordLocation
	OBS RecordConfigInfoRecordLocation
}

func GetRecordConfigInfoRecordLocationEnum

func GetRecordConfigInfoRecordLocationEnum() RecordConfigInfoRecordLocationEnum

type RecordConfigInfoRecordType

type RecordConfigInfoRecordType struct {
	// contains filtered or unexported fields
}

func (RecordConfigInfoRecordType) MarshalJSON

func (c RecordConfigInfoRecordType) MarshalJSON() ([]byte, error)

func (*RecordConfigInfoRecordType) UnmarshalJSON

func (c *RecordConfigInfoRecordType) UnmarshalJSON(b []byte) error

type RecordConfigInfoRecordTypeEnum

type RecordConfigInfoRecordTypeEnum struct {
	CONFIGER_RECORD RecordConfigInfoRecordType
}

func GetRecordConfigInfoRecordTypeEnum

func GetRecordConfigInfoRecordTypeEnum() RecordConfigInfoRecordTypeEnum

type ShowBandwidthRequest

type ShowBandwidthRequest struct {
	Domain    *string `json:"domain,omitempty"`
	StartTime *string `json:"start_time,omitempty"`
	EndTime   *string `json:"end_time,omitempty"`
	Step      *int32  `json:"step,omitempty"`
}

Request Object

func (ShowBandwidthRequest) String

func (o ShowBandwidthRequest) String() string

type ShowBandwidthResponse

type ShowBandwidthResponse struct {
	// 查询结果的总元素数量
	Total *int32 `json:"total,omitempty"`
	// 带宽信息
	BandwidthInfo *[]BandwidthInfo `json:"bandwidth_info,omitempty"`
}

Response Object

func (ShowBandwidthResponse) String

func (o ShowBandwidthResponse) String() string

type ShowOnlineUsersRequest

type ShowOnlineUsersRequest struct {
	Domain     string           `json:"domain"`
	AppName    *string          `json:"app_name,omitempty"`
	StreamName *string          `json:"stream_name,omitempty"`
	StartTime  *sdktime.SdkTime `json:"start_time,omitempty"`
	EndTime    *sdktime.SdkTime `json:"end_time,omitempty"`
	Step       *int32           `json:"step,omitempty"`
}

Request Object

func (ShowOnlineUsersRequest) String

func (o ShowOnlineUsersRequest) String() string

type ShowOnlineUsersResponse

type ShowOnlineUsersResponse struct {
	// 查询结果的总元素数量
	Total *int32 `json:"total,omitempty"`
	// 正在推流的音视频信息
	UserInfo *[]UserInfo `json:"user_info,omitempty"`
}

Response Object

func (ShowOnlineUsersResponse) String

func (o ShowOnlineUsersResponse) String() string

type ShowTrafficRequest

type ShowTrafficRequest struct {
	Domain    *string `json:"domain,omitempty"`
	StartTime *string `json:"start_time,omitempty"`
	EndTime   *string `json:"end_time,omitempty"`
	Step      *int32  `json:"step,omitempty"`
}

Request Object

func (ShowTrafficRequest) String

func (o ShowTrafficRequest) String() string

type ShowTrafficResponse

type ShowTrafficResponse struct {
	// 查询结果的总元素数量
	Total *int32 `json:"total,omitempty"`
	// 流量信息
	TrafficInfo *[]TrafficInfo `json:"traffic_info,omitempty"`
}

Response Object

func (ShowTrafficResponse) String

func (o ShowTrafficResponse) String() string

type ShowTranscodingsTemplateRequest

type ShowTranscodingsTemplateRequest struct {
	Domain  string  `json:"domain"`
	AppName *string `json:"app_name,omitempty"`
	Page    *int32  `json:"page,omitempty"`
	Size    *int32  `json:"size,omitempty"`
}

Request Object

func (ShowTranscodingsTemplateRequest) String

type ShowTranscodingsTemplateResponse

type ShowTranscodingsTemplateResponse struct {
	// 查询结果的总元素数量
	Total *int32 `json:"total,omitempty"`
	// 播放域名
	Domain *string `json:"domain,omitempty"`
	// 转码模板
	Templates *[]AppQualityInfo `json:"templates,omitempty"`
}

Response Object

func (ShowTranscodingsTemplateResponse) String

type StreamForbiddenList

type StreamForbiddenList struct {
	// 流应用名称
	AppName string `json:"app_name"`
	// 流名称
	StreamName string `json:"stream_name"`
	// 恢复流时间,格式:yyyy-mm-ddThh:mm:ssZ,UTC时间,不指定则默认7天,最大禁推为90天
	ResumeTime *string `json:"resume_time,omitempty"`
}

func (StreamForbiddenList) String

func (o StreamForbiddenList) String() string

type StreamForbiddenSetting

type StreamForbiddenSetting struct {
	// 直播播放域名或推流域名
	Domain string `json:"domain"`
	// 流应用名称
	AppName string `json:"app_name"`
	// 流名称
	StreamName string `json:"stream_name"`
	// 恢复流时间,格式:yyyy-mm-ddThh:mm:ssZ,UTC时间,不指定则默认7天,最大禁推为90天
	ResumeTime *sdktime.SdkTime `json:"resume_time,omitempty"`
}

func (StreamForbiddenSetting) String

func (o StreamForbiddenSetting) String() string

type StreamTranscodingTemplate

type StreamTranscodingTemplate struct {
	// 播放域名
	Domain string `json:"domain"`
	// 应用名称。 默认为“live”,若您需要自定义应用名称,请先提交工单申请。
	AppName string `json:"app_name"`
	// 视频质量信息
	QualityInfo []QualityInfo `json:"quality_info"`
}

func (StreamTranscodingTemplate) String

func (o StreamTranscodingTemplate) String() string

type TrafficInfo

type TrafficInfo struct {
	// 采样周期内的总流量,单位:byte
	Traffic int32 `json:"traffic"`
	// 流量数据采样周期起始时刻,UTC时间,格式:yyyy-MM-ddTHH:mm:ssZ
	Timestamp *sdktime.SdkTime `json:"timestamp"`
}

func (TrafficInfo) String

func (o TrafficInfo) String() string

type UpdateStreamForbiddenRequest

type UpdateStreamForbiddenRequest struct {
	SpecifyProject *string                 `json:"specify_project,omitempty"`
	Body           *StreamForbiddenSetting `json:"body,omitempty"`
}

Request Object

func (UpdateStreamForbiddenRequest) String

type UpdateStreamForbiddenResponse

type UpdateStreamForbiddenResponse struct {
}

Response Object

func (UpdateStreamForbiddenResponse) String

type UpdateTranscodingsTemplateRequest

type UpdateTranscodingsTemplateRequest struct {
	Body *StreamTranscodingTemplate `json:"body,omitempty"`
}

Request Object

func (UpdateTranscodingsTemplateRequest) String

type UpdateTranscodingsTemplateResponse

type UpdateTranscodingsTemplateResponse struct {
}

Response Object

func (UpdateTranscodingsTemplateResponse) String

type UserInfo

type UserInfo struct {
	// 直播流的在线人数
	UserNum int32 `json:"user_num"`
	// 操作执行的时间,UTC时间,格式:yyyy-MM-ddTHH:mm:ssZ
	Timestamp string `json:"timestamp"`
}

func (UserInfo) String

func (o UserInfo) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL