model

package
v0.0.34-rc.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 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 CreateDomainMappingRequest

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

Request Object

func (CreateDomainMappingRequest) String

type CreateDomainMappingResponse

type CreateDomainMappingResponse struct {
	// 直播播放域名
	PullDomain *string `json:"pull_domain,omitempty"`
	// 直播播放域名关联的推流域名
	PushDomain     *string `json:"push_domain,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateDomainMappingResponse) String

type CreateDomainRequest

type CreateDomainRequest struct {
	Body *LiveDomainCreateReq `json:"body,omitempty"`
}

Request Object

func (CreateDomainRequest) String

func (o CreateDomainRequest) String() string

type CreateDomainResponse

type CreateDomainResponse struct {
	// 直播域名
	Domain *string `json:"domain,omitempty"`
	// 域名类型 - pull表示播放域名 - push表示推流域名
	DomainType *CreateDomainResponseDomainType `json:"domain_type,omitempty"`
	// 直播域名的CName
	DomainCname *string `json:"domain_cname,omitempty"`
	// 直播所属直播中心
	Region *string `json:"region,omitempty"`
	// 直播域名的状态
	Status *CreateDomainResponseStatus `json:"status,omitempty"`
	// 域名创建时间,格式:yyyy-mm-ddThh:mm:ssZ,UTC时间
	CreateTime     *sdktime.SdkTime  `json:"create_time,omitempty"`
	DomainSource   *DomainSourceInfo `json:"domain_source,omitempty"`
	HttpStatusCode int               `json:"-"`
}

Response Object

func (CreateDomainResponse) String

func (o CreateDomainResponse) String() string

type CreateDomainResponseDomainType

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

func (CreateDomainResponseDomainType) MarshalJSON

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

func (*CreateDomainResponseDomainType) UnmarshalJSON

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

type CreateDomainResponseDomainTypeEnum

type CreateDomainResponseDomainTypeEnum struct {
	PULL CreateDomainResponseDomainType
	PUSH CreateDomainResponseDomainType
}

func GetCreateDomainResponseDomainTypeEnum

func GetCreateDomainResponseDomainTypeEnum() CreateDomainResponseDomainTypeEnum

type CreateDomainResponseStatus

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

func (CreateDomainResponseStatus) MarshalJSON

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

func (*CreateDomainResponseStatus) UnmarshalJSON

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

type CreateDomainResponseStatusEnum

type CreateDomainResponseStatusEnum struct {
	ON          CreateDomainResponseStatus
	OFF         CreateDomainResponseStatus
	CONFIGURING CreateDomainResponseStatus
}

func GetCreateDomainResponseStatusEnum

func GetCreateDomainResponseStatusEnum() CreateDomainResponseStatusEnum

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 {
	HttpStatusCode int `json:"-"`
}

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 {
	HttpStatusCode int `json:"-"`
}

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 {
	HttpStatusCode int `json:"-"`
}

Response Object

func (CreateTranscodingsTemplateResponse) String

type DecoupledLiveDomainInfo

type DecoupledLiveDomainInfo struct {
	// 直播域名
	Domain string `json:"domain"`
	// 域名类型
	DomainType DecoupledLiveDomainInfoDomainType `json:"domain_type"`
	// CDN厂商
	Vendor DecoupledLiveDomainInfoVendor `json:"vendor"`
	// 直播所属直播中心
	Region string `json:"region"`
	// 直播域名的CName
	DomainCname string `json:"domain_cname"`
	// 直播域名的状态
	Status DecoupledLiveDomainInfoStatus `json:"status"`
	// 播放域名关联的推流域名(只有domain_type为pull的时候有效)
	RelatedDomain string `json:"related_domain"`
	// 域名创建时间,格式:yyyy-mm-ddThh:mm:ssZ,UTC时间
	CreateTime   *sdktime.SdkTime  `json:"create_time"`
	DomainSource *DomainSourceInfo `json:"domain_source"`
}

func (DecoupledLiveDomainInfo) String

func (o DecoupledLiveDomainInfo) String() string

type DecoupledLiveDomainInfoDomainType

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

func (DecoupledLiveDomainInfoDomainType) MarshalJSON

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

func (*DecoupledLiveDomainInfoDomainType) UnmarshalJSON

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

type DecoupledLiveDomainInfoDomainTypeEnum

type DecoupledLiveDomainInfoDomainTypeEnum struct {
	PULL DecoupledLiveDomainInfoDomainType
	PUSH DecoupledLiveDomainInfoDomainType
}

func GetDecoupledLiveDomainInfoDomainTypeEnum

func GetDecoupledLiveDomainInfoDomainTypeEnum() DecoupledLiveDomainInfoDomainTypeEnum

type DecoupledLiveDomainInfoStatus

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

func (DecoupledLiveDomainInfoStatus) MarshalJSON

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

func (*DecoupledLiveDomainInfoStatus) UnmarshalJSON

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

type DecoupledLiveDomainInfoStatusEnum

type DecoupledLiveDomainInfoStatusEnum struct {
	ON          DecoupledLiveDomainInfoStatus
	OFF         DecoupledLiveDomainInfoStatus
	CONFIGURING DecoupledLiveDomainInfoStatus
}

func GetDecoupledLiveDomainInfoStatusEnum

func GetDecoupledLiveDomainInfoStatusEnum() DecoupledLiveDomainInfoStatusEnum

type DecoupledLiveDomainInfoVendor

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

func (DecoupledLiveDomainInfoVendor) MarshalJSON

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

func (*DecoupledLiveDomainInfoVendor) UnmarshalJSON

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

type DeleteDomainMappingRequest

type DeleteDomainMappingRequest struct {
	SpecifyProject *string `json:"specify_project,omitempty"`
	PullDomain     string  `json:"pull_domain"`
	PushDomain     string  `json:"push_domain"`
}

Request Object

func (DeleteDomainMappingRequest) String

type DeleteDomainMappingResponse

type DeleteDomainMappingResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteDomainMappingResponse) String

type DeleteDomainRequest

type DeleteDomainRequest struct {
	Domain string `json:"domain"`
}

Request Object

func (DeleteDomainRequest) String

func (o DeleteDomainRequest) String() string

type DeleteDomainResponse

type DeleteDomainResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteDomainResponse) String

func (o DeleteDomainResponse) String() 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 {
	HttpStatusCode int `json:"-"`
}

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 {
	HttpStatusCode int `json:"-"`
}

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 {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteTranscodingsTemplateResponse) String

type DomainMapping

type DomainMapping struct {
	// 直播播放域名
	PullDomain string `json:"pull_domain"`
	// 直播播放域名关联的推流域名
	PushDomain string `json:"push_domain"`
}

func (DomainMapping) String

func (o DomainMapping) String() string

type DomainSourceInfo

type DomainSourceInfo struct {
	// 回源、转推协议。
	Protocol *DomainSourceInfoProtocol `json:"protocol,omitempty"`
	// 源站地址类型
	SourceType DomainSourceInfoSourceType `json:"source_type"`
	// 回源、转推地址列表,格式为:{domain/IP}[:{port}],port默认值为1935;最少1个,最多10个。
	Sources *[]string `json:"sources,omitempty"`
	// 多个回源、转推地址的优先级。
	SourcesPriority *DomainSourceInfoSourcesPriority `json:"sources_priority,omitempty"`
}

func (DomainSourceInfo) String

func (o DomainSourceInfo) String() string

type DomainSourceInfoProtocol

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

func (DomainSourceInfoProtocol) MarshalJSON

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

func (*DomainSourceInfoProtocol) UnmarshalJSON

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

type DomainSourceInfoProtocolEnum

type DomainSourceInfoProtocolEnum struct {
	RTMP DomainSourceInfoProtocol
	HTTP DomainSourceInfoProtocol
}

func GetDomainSourceInfoProtocolEnum

func GetDomainSourceInfoProtocolEnum() DomainSourceInfoProtocolEnum

type DomainSourceInfoSourceType

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

func (DomainSourceInfoSourceType) MarshalJSON

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

func (*DomainSourceInfoSourceType) UnmarshalJSON

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

type DomainSourceInfoSourceTypeEnum

type DomainSourceInfoSourceTypeEnum struct {
	DOMAIN DomainSourceInfoSourceType
	IPADDR DomainSourceInfoSourceType
	HUAWEI DomainSourceInfoSourceType
}

func GetDomainSourceInfoSourceTypeEnum

func GetDomainSourceInfoSourceTypeEnum() DomainSourceInfoSourceTypeEnum

type DomainSourceInfoSourcesPriority

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

func (DomainSourceInfoSourcesPriority) MarshalJSON

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

func (*DomainSourceInfoSourcesPriority) UnmarshalJSON

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

type DomainSourceInfoSourcesPriorityEnum

type DomainSourceInfoSourcesPriorityEnum struct {
	FIRST DomainSourceInfoSourcesPriority
	ALL   DomainSourceInfoSourcesPriority
}

func GetDomainSourceInfoSourcesPriorityEnum

func GetDomainSourceInfoSourcesPriorityEnum() DomainSourceInfoSourcesPriorityEnum

type ListLiveSampleLogsRequest

type ListLiveSampleLogsRequest struct {
	PlayDomain string           `json:"play_domain"`
	StartTime  *sdktime.SdkTime `json:"start_time"`
	EndTime    *sdktime.SdkTime `json:"end_time"`
}

Request Object

func (ListLiveSampleLogsRequest) String

func (o ListLiveSampleLogsRequest) String() string

type ListLiveSampleLogsResponse

type ListLiveSampleLogsResponse struct {
	// 符合查询条件的总条目数
	Total *int32 `json:"total,omitempty"`
	// 播放域名
	Domain *string `json:"domain,omitempty"`
	// 日志信息列表
	Logs           *[]LogInfo `json:"logs,omitempty"`
	HttpStatusCode int        `json:"-"`
}

Response Object

func (ListLiveSampleLogsResponse) String

type ListLiveStreamsOnlineRequest

type ListLiveStreamsOnlineRequest struct {
	PublishDomain string  `json:"publish_domain"`
	App           *string `json:"app,omitempty"`
	Offset        *int32  `json:"offset,omitempty"`
	Limit         *int32  `json:"limit,omitempty"`
	Stream        *string `json:"stream,omitempty"`
}

Request Object

func (ListLiveStreamsOnlineRequest) String

type ListLiveStreamsOnlineResponse

type ListLiveStreamsOnlineResponse struct {
	// 总条页数
	TotalPage *int64 `json:"total_page,omitempty"`
	// 总条目数
	TotalNum *int64 `json:"total_num,omitempty"`
	// 偏移量
	Offset *int64 `json:"offset,omitempty"`
	// 每页条目数
	Limit *int64 `json:"limit,omitempty"`
	// 请求唯一标识
	RequestId      *string     `json:"request_id,omitempty"`
	Streams        *OnlineInfo `json:"streams,omitempty"`
	HttpStatusCode int         `json:"-"`
}

Response Object

func (ListLiveStreamsOnlineResponse) 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"`
	HttpStatusCode int                 `json:"-"`
}

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"`
	HttpStatusCode int                    `json:"-"`
}

Response Object

func (ListStreamForbiddenResponse) String

type LiveDomainCreateReq

type LiveDomainCreateReq struct {
	// 直播域名
	Domain string `json:"domain"`
	// 域名类型 - pull表示播放域名 - push表示推流域名
	DomainType LiveDomainCreateReqDomainType `json:"domain_type"`
	// 直播所属的直播中心
	Region       string            `json:"region"`
	DomainSource *DomainSourceInfo `json:"domain_source,omitempty"`
}

func (LiveDomainCreateReq) String

func (o LiveDomainCreateReq) String() string

type LiveDomainCreateReqDomainType

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

func (LiveDomainCreateReqDomainType) MarshalJSON

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

func (*LiveDomainCreateReqDomainType) UnmarshalJSON

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

type LiveDomainCreateReqDomainTypeEnum

type LiveDomainCreateReqDomainTypeEnum struct {
	PULL LiveDomainCreateReqDomainType
	PUSH LiveDomainCreateReqDomainType
}

func GetLiveDomainCreateReqDomainTypeEnum

func GetLiveDomainCreateReqDomainTypeEnum() LiveDomainCreateReqDomainTypeEnum

type LiveDomainModifyReq

type LiveDomainModifyReq struct {
	// 直播域名,不允许修改
	Domain string `json:"domain"`
	// 直播域名状态,通过修改此字段,实现域名的启用和停用。注意:域名处于“配置中”状态时,不允对该域名执行启停操作。
	Status       *LiveDomainModifyReqStatus `json:"status,omitempty"`
	DomainSource *DomainSourceInfo          `json:"domain_source,omitempty"`
}

func (LiveDomainModifyReq) String

func (o LiveDomainModifyReq) String() string

type LiveDomainModifyReqStatus

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

func (LiveDomainModifyReqStatus) MarshalJSON

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

func (*LiveDomainModifyReqStatus) UnmarshalJSON

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

type LiveDomainModifyReqStatusEnum

type LiveDomainModifyReqStatusEnum struct {
	ON  LiveDomainModifyReqStatus
	OFF LiveDomainModifyReqStatus
}

func GetLiveDomainModifyReqStatusEnum

func GetLiveDomainModifyReqStatusEnum() LiveDomainModifyReqStatusEnum

type LogInfo

type LogInfo struct {
	// 日志文件名,打包文件名格式:{Domain}_{logStartTimeStamp}.log.gz
	Name string `json:"name"`
	// 日志下载链接
	Url string `json:"url"`
	// 日志文件大小
	Size int64 `json:"size"`
	// 日志文件中日志开始时间,北京时间
	StartTime string `json:"start_time"`
	// 日志文件中日志结束时间,北京时间
	EndTime string `json:"end_time"`
}

func (LogInfo) String

func (o LogInfo) String() 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 OnlineInfo

type OnlineInfo struct {
	// 域名
	PublishDomain string `json:"publish_domain"`
	// 应用名
	App string `json:"app"`
	// 流名
	Stream string `json:"stream"`
	// 视频编码方式 - H264 - H265
	VideoCodec OnlineInfoVideoCodec `json:"video_codec"`
	// 音频编码方式 - AAC
	AudioCodec OnlineInfoAudioCodec `json:"audio_codec"`
	// 推流设备的ip
	ClientIp string `json:"client_ip"`
	// 开始推流时刻 UTC格式 2006-01-02T15:04:05Z
	StartTime string `json:"start_time"`
}

func (OnlineInfo) String

func (o OnlineInfo) String() string

type OnlineInfoAudioCodec

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

func (OnlineInfoAudioCodec) MarshalJSON

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

func (*OnlineInfoAudioCodec) UnmarshalJSON

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

type OnlineInfoAudioCodecEnum

type OnlineInfoAudioCodecEnum struct {
	AAC OnlineInfoAudioCodec
}

func GetOnlineInfoAudioCodecEnum

func GetOnlineInfoAudioCodecEnum() OnlineInfoAudioCodecEnum

type OnlineInfoVideoCodec

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

func (OnlineInfoVideoCodec) MarshalJSON

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

func (*OnlineInfoVideoCodec) UnmarshalJSON

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

type OnlineInfoVideoCodecEnum

type OnlineInfoVideoCodecEnum struct {
	H264 OnlineInfoVideoCodec
	H265 OnlineInfoVideoCodec
}

func GetOnlineInfoVideoCodecEnum

func GetOnlineInfoVideoCodecEnum() OnlineInfoVideoCodecEnum

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"`
	HttpStatusCode int              `json:"-"`
}

Response Object

func (ShowBandwidthResponse) String

func (o ShowBandwidthResponse) String() string

type ShowDomainRequest

type ShowDomainRequest struct {
	Domain *string `json:"domain,omitempty"`
}

Request Object

func (ShowDomainRequest) String

func (o ShowDomainRequest) String() string

type ShowDomainResponse

type ShowDomainResponse struct {
	// 查询结果的总数量
	Total float32 `json:"total,omitempty"`
	// 直播域名列表
	DomainInfo     *[]DecoupledLiveDomainInfo `json:"domain_info,omitempty"`
	HttpStatusCode int                        `json:"-"`
}

Response Object

func (ShowDomainResponse) String

func (o ShowDomainResponse) 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"`
	HttpStatusCode int         `json:"-"`
}

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"`
	HttpStatusCode int            `json:"-"`
}

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"`
	HttpStatusCode int               `json:"-"`
}

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 UpdateDomainRequest

type UpdateDomainRequest struct {
	Body *LiveDomainModifyReq `json:"body,omitempty"`
}

Request Object

func (UpdateDomainRequest) String

func (o UpdateDomainRequest) String() string

type UpdateDomainResponse

type UpdateDomainResponse struct {
	// 直播域名
	Domain *string `json:"domain,omitempty"`
	// 域名类型 - pull表示播放域名 - push表示推流域名
	DomainType *UpdateDomainResponseDomainType `json:"domain_type,omitempty"`
	// 直播域名的CName
	DomainCname *string `json:"domain_cname,omitempty"`
	// 直播所属直播中心
	Region *string `json:"region,omitempty"`
	// 直播域名的状态
	Status *UpdateDomainResponseStatus `json:"status,omitempty"`
	// 域名创建时间,格式:yyyy-mm-ddThh:mm:ssZ,UTC时间
	CreateTime     *sdktime.SdkTime  `json:"create_time,omitempty"`
	DomainSource   *DomainSourceInfo `json:"domain_source,omitempty"`
	HttpStatusCode int               `json:"-"`
}

Response Object

func (UpdateDomainResponse) String

func (o UpdateDomainResponse) String() string

type UpdateDomainResponseDomainType

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

func (UpdateDomainResponseDomainType) MarshalJSON

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

func (*UpdateDomainResponseDomainType) UnmarshalJSON

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

type UpdateDomainResponseDomainTypeEnum

type UpdateDomainResponseDomainTypeEnum struct {
	PULL UpdateDomainResponseDomainType
	PUSH UpdateDomainResponseDomainType
}

func GetUpdateDomainResponseDomainTypeEnum

func GetUpdateDomainResponseDomainTypeEnum() UpdateDomainResponseDomainTypeEnum

type UpdateDomainResponseStatus

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

func (UpdateDomainResponseStatus) MarshalJSON

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

func (*UpdateDomainResponseStatus) UnmarshalJSON

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

type UpdateDomainResponseStatusEnum

type UpdateDomainResponseStatusEnum struct {
	ON          UpdateDomainResponseStatus
	OFF         UpdateDomainResponseStatus
	CONFIGURING UpdateDomainResponseStatus
}

func GetUpdateDomainResponseStatusEnum

func GetUpdateDomainResponseStatusEnum() UpdateDomainResponseStatusEnum

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 {
	HttpStatusCode int `json:"-"`
}

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 {
	HttpStatusCode int `json:"-"`
}

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

Source Files

Jump to

Keyboard shortcuts

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