Documentation ¶
Index ¶
- func GenReqDefForCreateDomain() *def.HttpRequestDef
- func GenReqDefForCreateDomainMapping() *def.HttpRequestDef
- func GenReqDefForCreateRecordCallbackConfig() *def.HttpRequestDef
- func GenReqDefForCreateRecordRule() *def.HttpRequestDef
- func GenReqDefForCreateStreamForbidden() *def.HttpRequestDef
- func GenReqDefForCreateTranscodingsTemplate() *def.HttpRequestDef
- func GenReqDefForDeleteDomain() *def.HttpRequestDef
- func GenReqDefForDeleteDomainMapping() *def.HttpRequestDef
- func GenReqDefForDeleteRecordCallbackConfig() *def.HttpRequestDef
- func GenReqDefForDeleteRecordRule() *def.HttpRequestDef
- func GenReqDefForDeleteStreamForbidden() *def.HttpRequestDef
- func GenReqDefForDeleteTranscodingsTemplate() *def.HttpRequestDef
- func GenReqDefForListLiveSampleLogs() *def.HttpRequestDef
- func GenReqDefForListLiveStreamsOnline() *def.HttpRequestDef
- func GenReqDefForListRecordCallbackConfigs() *def.HttpRequestDef
- func GenReqDefForListRecordContents() *def.HttpRequestDef
- func GenReqDefForListRecordRules() *def.HttpRequestDef
- func GenReqDefForListStreamForbidden() *def.HttpRequestDef
- func GenReqDefForRunRecord() *def.HttpRequestDef
- func GenReqDefForShowDomain() *def.HttpRequestDef
- func GenReqDefForShowRecordCallbackConfig() *def.HttpRequestDef
- func GenReqDefForShowRecordRule() *def.HttpRequestDef
- func GenReqDefForShowTranscodingsTemplate() *def.HttpRequestDef
- func GenReqDefForUpdateDomain() *def.HttpRequestDef
- func GenReqDefForUpdateRecordCallbackConfig() *def.HttpRequestDef
- func GenReqDefForUpdateRecordRule() *def.HttpRequestDef
- func GenReqDefForUpdateStreamForbidden() *def.HttpRequestDef
- func GenReqDefForUpdateTranscodingsTemplate() *def.HttpRequestDef
- func LiveClientBuilder() *http_client.HcHttpClientBuilder
- type LiveClient
- func (c *LiveClient) CreateDomain(request *model.CreateDomainRequest) (*model.CreateDomainResponse, error)
- func (c *LiveClient) CreateDomainMapping(request *model.CreateDomainMappingRequest) (*model.CreateDomainMappingResponse, error)
- func (c *LiveClient) CreateRecordCallbackConfig(request *model.CreateRecordCallbackConfigRequest) (*model.CreateRecordCallbackConfigResponse, error)
- func (c *LiveClient) CreateRecordRule(request *model.CreateRecordRuleRequest) (*model.CreateRecordRuleResponse, error)
- func (c *LiveClient) CreateStreamForbidden(request *model.CreateStreamForbiddenRequest) (*model.CreateStreamForbiddenResponse, error)
- func (c *LiveClient) CreateTranscodingsTemplate(request *model.CreateTranscodingsTemplateRequest) (*model.CreateTranscodingsTemplateResponse, error)
- func (c *LiveClient) DeleteDomain(request *model.DeleteDomainRequest) (*model.DeleteDomainResponse, error)
- func (c *LiveClient) DeleteDomainMapping(request *model.DeleteDomainMappingRequest) (*model.DeleteDomainMappingResponse, error)
- func (c *LiveClient) DeleteRecordCallbackConfig(request *model.DeleteRecordCallbackConfigRequest) (*model.DeleteRecordCallbackConfigResponse, error)
- func (c *LiveClient) DeleteRecordRule(request *model.DeleteRecordRuleRequest) (*model.DeleteRecordRuleResponse, error)
- func (c *LiveClient) DeleteStreamForbidden(request *model.DeleteStreamForbiddenRequest) (*model.DeleteStreamForbiddenResponse, error)
- func (c *LiveClient) DeleteTranscodingsTemplate(request *model.DeleteTranscodingsTemplateRequest) (*model.DeleteTranscodingsTemplateResponse, error)
- func (c *LiveClient) ListLiveSampleLogs(request *model.ListLiveSampleLogsRequest) (*model.ListLiveSampleLogsResponse, error)
- func (c *LiveClient) ListLiveStreamsOnline(request *model.ListLiveStreamsOnlineRequest) (*model.ListLiveStreamsOnlineResponse, error)
- func (c *LiveClient) ListRecordCallbackConfigs(request *model.ListRecordCallbackConfigsRequest) (*model.ListRecordCallbackConfigsResponse, error)
- func (c *LiveClient) ListRecordContents(request *model.ListRecordContentsRequest) (*model.ListRecordContentsResponse, error)
- func (c *LiveClient) ListRecordRules(request *model.ListRecordRulesRequest) (*model.ListRecordRulesResponse, error)
- func (c *LiveClient) ListStreamForbidden(request *model.ListStreamForbiddenRequest) (*model.ListStreamForbiddenResponse, error)
- func (c *LiveClient) RunRecord(request *model.RunRecordRequest) (*model.RunRecordResponse, error)
- func (c *LiveClient) ShowDomain(request *model.ShowDomainRequest) (*model.ShowDomainResponse, error)
- func (c *LiveClient) ShowRecordCallbackConfig(request *model.ShowRecordCallbackConfigRequest) (*model.ShowRecordCallbackConfigResponse, error)
- func (c *LiveClient) ShowRecordRule(request *model.ShowRecordRuleRequest) (*model.ShowRecordRuleResponse, error)
- func (c *LiveClient) ShowTranscodingsTemplate(request *model.ShowTranscodingsTemplateRequest) (*model.ShowTranscodingsTemplateResponse, error)
- func (c *LiveClient) UpdateDomain(request *model.UpdateDomainRequest) (*model.UpdateDomainResponse, error)
- func (c *LiveClient) UpdateRecordCallbackConfig(request *model.UpdateRecordCallbackConfigRequest) (*model.UpdateRecordCallbackConfigResponse, error)
- func (c *LiveClient) UpdateRecordRule(request *model.UpdateRecordRuleRequest) (*model.UpdateRecordRuleResponse, error)
- func (c *LiveClient) UpdateStreamForbidden(request *model.UpdateStreamForbiddenRequest) (*model.UpdateStreamForbiddenResponse, error)
- func (c *LiveClient) UpdateTranscodingsTemplate(request *model.UpdateTranscodingsTemplateRequest) (*model.UpdateTranscodingsTemplateResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenReqDefForCreateDomain ¶
func GenReqDefForCreateDomain() *def.HttpRequestDef
func GenReqDefForCreateDomainMapping ¶
func GenReqDefForCreateDomainMapping() *def.HttpRequestDef
func GenReqDefForCreateRecordCallbackConfig ¶ added in v0.0.48
func GenReqDefForCreateRecordCallbackConfig() *def.HttpRequestDef
func GenReqDefForCreateRecordRule ¶ added in v0.0.48
func GenReqDefForCreateRecordRule() *def.HttpRequestDef
func GenReqDefForCreateStreamForbidden ¶
func GenReqDefForCreateStreamForbidden() *def.HttpRequestDef
func GenReqDefForCreateTranscodingsTemplate ¶
func GenReqDefForCreateTranscodingsTemplate() *def.HttpRequestDef
func GenReqDefForDeleteDomain ¶
func GenReqDefForDeleteDomain() *def.HttpRequestDef
func GenReqDefForDeleteDomainMapping ¶
func GenReqDefForDeleteDomainMapping() *def.HttpRequestDef
func GenReqDefForDeleteRecordCallbackConfig ¶ added in v0.0.48
func GenReqDefForDeleteRecordCallbackConfig() *def.HttpRequestDef
func GenReqDefForDeleteRecordRule ¶ added in v0.0.48
func GenReqDefForDeleteRecordRule() *def.HttpRequestDef
func GenReqDefForDeleteStreamForbidden ¶
func GenReqDefForDeleteStreamForbidden() *def.HttpRequestDef
func GenReqDefForDeleteTranscodingsTemplate ¶
func GenReqDefForDeleteTranscodingsTemplate() *def.HttpRequestDef
func GenReqDefForListLiveSampleLogs ¶
func GenReqDefForListLiveSampleLogs() *def.HttpRequestDef
func GenReqDefForListLiveStreamsOnline ¶
func GenReqDefForListLiveStreamsOnline() *def.HttpRequestDef
func GenReqDefForListRecordCallbackConfigs ¶ added in v0.0.48
func GenReqDefForListRecordCallbackConfigs() *def.HttpRequestDef
func GenReqDefForListRecordContents ¶ added in v0.0.62
func GenReqDefForListRecordContents() *def.HttpRequestDef
func GenReqDefForListRecordRules ¶ added in v0.0.48
func GenReqDefForListRecordRules() *def.HttpRequestDef
func GenReqDefForListStreamForbidden ¶
func GenReqDefForListStreamForbidden() *def.HttpRequestDef
func GenReqDefForRunRecord ¶ added in v0.0.68
func GenReqDefForRunRecord() *def.HttpRequestDef
func GenReqDefForShowDomain ¶
func GenReqDefForShowDomain() *def.HttpRequestDef
func GenReqDefForShowRecordCallbackConfig ¶ added in v0.0.48
func GenReqDefForShowRecordCallbackConfig() *def.HttpRequestDef
func GenReqDefForShowRecordRule ¶ added in v0.0.48
func GenReqDefForShowRecordRule() *def.HttpRequestDef
func GenReqDefForShowTranscodingsTemplate ¶
func GenReqDefForShowTranscodingsTemplate() *def.HttpRequestDef
func GenReqDefForUpdateDomain ¶
func GenReqDefForUpdateDomain() *def.HttpRequestDef
func GenReqDefForUpdateRecordCallbackConfig ¶ added in v0.0.48
func GenReqDefForUpdateRecordCallbackConfig() *def.HttpRequestDef
func GenReqDefForUpdateRecordRule ¶ added in v0.0.48
func GenReqDefForUpdateRecordRule() *def.HttpRequestDef
func GenReqDefForUpdateStreamForbidden ¶
func GenReqDefForUpdateStreamForbidden() *def.HttpRequestDef
func GenReqDefForUpdateTranscodingsTemplate ¶
func GenReqDefForUpdateTranscodingsTemplate() *def.HttpRequestDef
func LiveClientBuilder ¶
func LiveClientBuilder() *http_client.HcHttpClientBuilder
Types ¶
type LiveClient ¶
type LiveClient struct {
HcClient *http_client.HcHttpClient
}
func NewLiveClient ¶
func NewLiveClient(hcClient *http_client.HcHttpClient) *LiveClient
func (*LiveClient) CreateDomain ¶
func (c *LiveClient) CreateDomain(request *model.CreateDomainRequest) (*model.CreateDomainResponse, error)
创建直播域名
可单独创建直播播放域名或推流域名,每个租户最多可配置64条域名记录。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*LiveClient) CreateDomainMapping ¶
func (c *LiveClient) CreateDomainMapping(request *model.CreateDomainMappingRequest) (*model.CreateDomainMappingResponse, error)
域名映射
将用户已创建的播放域名和推流域名建立域名映射关系
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*LiveClient) CreateRecordCallbackConfig ¶ added in v0.0.48
func (c *LiveClient) CreateRecordCallbackConfig(request *model.CreateRecordCallbackConfigRequest) (*model.CreateRecordCallbackConfigResponse, error)
创建录制回调配置
创建录制回调配置接口
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*LiveClient) CreateRecordRule ¶ added in v0.0.48
func (c *LiveClient) CreateRecordRule(request *model.CreateRecordRuleRequest) (*model.CreateRecordRuleResponse, error)
创建录制规则
创建录制规则接口,录制规则对新推送的流生效,对已经推送中的流不生效
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*LiveClient) CreateStreamForbidden ¶
func (c *LiveClient) CreateStreamForbidden(request *model.CreateStreamForbiddenRequest) (*model.CreateStreamForbiddenResponse, error)
禁止直播推流
禁止直播推流
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*LiveClient) CreateTranscodingsTemplate ¶
func (c *LiveClient) CreateTranscodingsTemplate(request *model.CreateTranscodingsTemplateRequest) (*model.CreateTranscodingsTemplateResponse, error)
创建直播转码模板
创建直播转码模板
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*LiveClient) DeleteDomain ¶
func (c *LiveClient) DeleteDomain(request *model.DeleteDomainRequest) (*model.DeleteDomainResponse, error)
删除直播域名
删除域名。只有在域名停用(off)状态时才能删除。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*LiveClient) DeleteDomainMapping ¶
func (c *LiveClient) DeleteDomainMapping(request *model.DeleteDomainMappingRequest) (*model.DeleteDomainMappingResponse, error)
删除直播域名映射关系
将播放域名和推流域名的域名映射关系删除
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*LiveClient) DeleteRecordCallbackConfig ¶ added in v0.0.48
func (c *LiveClient) DeleteRecordCallbackConfig(request *model.DeleteRecordCallbackConfigRequest) (*model.DeleteRecordCallbackConfigResponse, error)
删除录制回调配置
删除录制回调配置接口
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*LiveClient) DeleteRecordRule ¶ added in v0.0.48
func (c *LiveClient) DeleteRecordRule(request *model.DeleteRecordRuleRequest) (*model.DeleteRecordRuleResponse, error)
删除录制规则
删除录制规则接口
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*LiveClient) DeleteStreamForbidden ¶
func (c *LiveClient) DeleteStreamForbidden(request *model.DeleteStreamForbiddenRequest) (*model.DeleteStreamForbiddenResponse, error)
禁推恢复
恢复直播推流接口
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*LiveClient) DeleteTranscodingsTemplate ¶
func (c *LiveClient) DeleteTranscodingsTemplate(request *model.DeleteTranscodingsTemplateRequest) (*model.DeleteTranscodingsTemplateResponse, error)
删除直播转码模板
删除直播转码模板
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*LiveClient) ListLiveSampleLogs ¶
func (c *LiveClient) ListLiveSampleLogs(request *model.ListLiveSampleLogsRequest) (*model.ListLiveSampleLogsResponse, error)
获取直播播放日志
获取直播播放日志,基于域名以5分钟粒度进行打包,日志内容以 \"|\" 进行分隔。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*LiveClient) ListLiveStreamsOnline ¶
func (c *LiveClient) ListLiveStreamsOnline(request *model.ListLiveStreamsOnlineRequest) (*model.ListLiveStreamsOnlineResponse, error)
查询直播中的流信息
查询直播中的流信息
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*LiveClient) ListRecordCallbackConfigs ¶ added in v0.0.48
func (c *LiveClient) ListRecordCallbackConfigs(request *model.ListRecordCallbackConfigsRequest) (*model.ListRecordCallbackConfigsResponse, error)
查询录制回调配置列表
查询录制回调配置列表接口。通过指定条件,查询满足条件的配置列表。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*LiveClient) ListRecordContents ¶ added in v0.0.62
func (c *LiveClient) ListRecordContents(request *model.ListRecordContentsRequest) (*model.ListRecordContentsResponse, error)
录制完成内容的查询
录制完成的内容查询
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*LiveClient) ListRecordRules ¶ added in v0.0.48
func (c *LiveClient) ListRecordRules(request *model.ListRecordRulesRequest) (*model.ListRecordRulesResponse, error)
查询录制规则列表
查询录制规则列表接口,通过指定条件,查询满足条件的录制规则列表。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*LiveClient) ListStreamForbidden ¶
func (c *LiveClient) ListStreamForbidden(request *model.ListStreamForbiddenRequest) (*model.ListStreamForbiddenResponse, error)
查询禁止直播推流列表
查询禁播黑名单列表
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*LiveClient) RunRecord ¶ added in v0.0.68
func (c *LiveClient) RunRecord(request *model.RunRecordRequest) (*model.RunRecordResponse, error)
提交录制控制命令
对单条流的实时录制控制接口。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*LiveClient) ShowDomain ¶
func (c *LiveClient) ShowDomain(request *model.ShowDomainRequest) (*model.ShowDomainResponse, error)
查询直播域名
查询直播域名
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*LiveClient) ShowRecordCallbackConfig ¶ added in v0.0.48
func (c *LiveClient) ShowRecordCallbackConfig(request *model.ShowRecordCallbackConfigRequest) (*model.ShowRecordCallbackConfigResponse, error)
查询录制回调配置
查询录制回调配置接口
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*LiveClient) ShowRecordRule ¶ added in v0.0.48
func (c *LiveClient) ShowRecordRule(request *model.ShowRecordRuleRequest) (*model.ShowRecordRuleResponse, error)
查询录制规则配置
查询录制规则接口
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*LiveClient) ShowTranscodingsTemplate ¶
func (c *LiveClient) ShowTranscodingsTemplate(request *model.ShowTranscodingsTemplateRequest) (*model.ShowTranscodingsTemplateResponse, error)
查询直播转码模板
查询直播转码模板
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*LiveClient) UpdateDomain ¶
func (c *LiveClient) UpdateDomain(request *model.UpdateDomainRequest) (*model.UpdateDomainResponse, error)
修改直播域名
修改直播播放、RTMP推流加速域名相关信息
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*LiveClient) UpdateRecordCallbackConfig ¶ added in v0.0.48
func (c *LiveClient) UpdateRecordCallbackConfig(request *model.UpdateRecordCallbackConfigRequest) (*model.UpdateRecordCallbackConfigResponse, error)
修改录制回调配置
修改录制回调配置接口
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*LiveClient) UpdateRecordRule ¶ added in v0.0.48
func (c *LiveClient) UpdateRecordRule(request *model.UpdateRecordRuleRequest) (*model.UpdateRecordRuleResponse, error)
修改录制规则
修改录制规则接口,如果规则修改后,修改后的规则对正在录制的流无效,对新的流有效。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*LiveClient) UpdateStreamForbidden ¶
func (c *LiveClient) UpdateStreamForbidden(request *model.UpdateStreamForbiddenRequest) (*model.UpdateStreamForbiddenResponse, error)
修改禁推属性
修改禁推属性
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*LiveClient) UpdateTranscodingsTemplate ¶
func (c *LiveClient) UpdateTranscodingsTemplate(request *model.UpdateTranscodingsTemplateRequest) (*model.UpdateTranscodingsTemplateResponse, error)
配置直播转码模板
修改直播转码模板
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.