Versions in this module Expand all Collapse all v7 v7.13.0 Sep 1, 2022 Changes in this version + const APIHTTPSScheme + const APIHTTPScheme + const APIHost + const CodecDefaultSelect + const DefaultAppName + const DomainLiveHDL + const DomainLiveHLS + const DomainLiveRTMP + const DomainPublishRTMP + const FlowDefaultSelect + const IAMAPIHost + const NropDefaultSelect + const SRTPort + const SRTScheme + const SecurityTypeDynamic + const SecurityTypeDynamicNoncePart + const SecurityTypeExpiry + const SecurityTypeExpirySK + const SecurityTypeExpirySkTsPart + const SecurityTypeExpiryTsPart + const SecurityTypeNone + const SecurityTypeNull + const SecurityTypeStatic + const SecurityTypeStaticKeyPart + const SecurityTypeTokenPart + const SecurityTypeTsExpireMD5 + const SecurityTypeTsStartMD5 + const TagName + var ErrInvalidArgs = &client.ErrorInfo + var ErrInvalidRule = &client.ErrorInfo + var ErrUnsupportedSecurityType = &client.ErrorInfo + func ErrInfo(code int, err string) *client.ErrorInfo + func Form(obj interface{}) map[string][]string + func HDLPlayURL(hub, domain, streamTitle string) string + func HLSPlayURL(hub, domain, streamTitle string) string + func RTMPPlayURL(hub, domain, streamTitle string) string + func RTMPPublishURL(hub, domain, streamTitle string) string + func SRTPublishURL(hub, domain, streamTitle string) string + func SetAppName(appName string) + func SignPlayURL(playURL string, args SignPlayURLArgs) (string, error) + func SignPublishURL(publishURL string, args SignPublishURLArgs) (string, error) + type AccessLogOptions struct + ExpireDays int + SaveBucket string + type BatchGetStreamLiveStatusRequest struct + Hub string + Items []string + type BatchGetStreamLiveStatusResponse struct + Items []StreamLiveStatus + type BindDomainRequest struct + Domain string + Hub string + Type string + type BindVodDomainRequest struct + Hub string + VodDomain string + type DefaultDomain struct + Domain string + Type string + type DomainCallbackConfig struct + FailCode int + RetryInterval int + RetryTimes int + SuccessCode int + Timeout int64 + Type string + URL string + Vars map[string]string + type DomainIPLimit struct + BlackList []string + WhiteList []string + type DomainPlaySecurity struct + GapDuration int + Key1 string + Key2 string + Range int + Rule string + Rule2 string + SignPart string + TsBase int + TsPart string + Type string + type DomainURLRewriteRule struct + Pattern string + Replace string + type DomainUrlRewrite struct + Rules []DomainUrlRewriteItem + type DomainUrlRewriteItem struct + Pattern string + Replace string + type GetDomainInfoRequest struct + Domain string + Hub string + type GetDomainInfoResponse struct + CertEnable bool + CertName string + Cname string + ConnectCallback DomainCallbackConfig + Disable bool + DisconnectCallback DomainCallbackConfig + DisconnectDelay int64 + Domain string + IPLimit DomainIPLimit + PlaySecurity DomainPlaySecurity + Type string + UrlRewrite DomainUrlRewrite + type GetDomainsListItem struct + CertEnable bool + CertName string + Cname string + Domain string + Type string + type GetDomainsListRequest struct + Hub string + type GetDomainsListResponse struct + Domains []GetDomainsListItem + type GetHubInfoRequest struct + Hub string + type GetHubInfoResponse struct + AccessLog AccessLogOptions + Converts []string + CreatedAt int64 + DefaultDomains []DefaultDomain + Domains []HubDomain + HlsPlus bool + LiveDataExpireDays int64 + Name string + Nrop NropArgs + PassiveCodecProfiles []string + PublishSecurity string + SnapshotInterval int + StorageBucket string + UpdatedAt int64 + VodDomain string + type GetHubListItem struct + Name string + type GetHubListResponse struct + Items []GetHubListItem + type GetStatCasterRequest struct + Select []string + Where map[string][]string + type GetStatCodecRequest struct + Select []string + Where map[string][]string + type GetStatCommonRequest struct + Begin string + End string + G string + type GetStatDownflowRequest struct + Select []string + Where map[string][]string + type GetStatNropRequest struct + Select []string + Where map[string][]string + type GetStatPubRequest struct + Select []string + Where map[string][]string + type GetStatUpflowRequest struct + Select []string + Where map[string][]string + type GetStreamBaseInfoRequest struct + Hub string + Stream string + type GetStreamBaseInfoResponse struct + Converts []string + CreatedAt int64 + DisabledTill int + ExpireAt int64 + NropEnable bool + PublishKey string + PublishSecurity string + UpdatedAt int64 + Watermark bool + type GetStreamHistoryItem struct + ClientIP string + End int64 + ServerIP string + Start int64 + type GetStreamHistoryRequest struct + End int64 + Hub string + Start int64 + Stream string + type GetStreamHistoryResponse struct + Items []GetStreamHistoryItem + type GetStreamListRequest struct + Hub string + Limit int + LiveOnly bool + Marker string + Prefix string + type GetStreamLiveStatusRequest struct + Hub string + Stream string + type GetStreamLiveStatusResponse struct + AudioBitRate int + VideoBitRate int + type GetStreamsListResponse struct + Items []GetStreamsListResponseItem + Marker string + type GetStreamsListResponseItem struct + Key string + type GroupStatCasterRequest struct + Group string + Select []string + Where map[string][]string + type GroupStatCodecRequest struct + Group string + Select []string + Where map[string][]string + type GroupStatDownflowRequest struct + Group string + Select []string + Where map[string][]string + type GroupStatNropRequest struct + Group string + Select []string + Where map[string][]string + type GroupStatPubRequest struct + Group string + Select []string + Where map[string][]string + type GroupStatUpflowRequest struct + Group string + Select []string + Where map[string][]string + type HubDomain struct + Cname string + Domain string + Type string + type HubHlsplusRequest struct + HlsPlus bool + Hub string + type HubPersistenceRequest struct + Hub string + LiveDataExpireDays uint + StorageBucket string + type HubSecurityRequest struct + Hub string + PublishKey string + PublishSecurity string + type HubSnapshotRequest struct + Hub string + SnapshotInterval int + type Manager struct + func NewManager(conf ManagerConfig) *Manager + func (m *Manager) BatchGetStreamLiveStatus(ctx context.Context, req BatchGetStreamLiveStatusRequest) (*BatchGetStreamLiveStatusResponse, error) + func (m *Manager) BindDomain(ctx context.Context, req BindDomainRequest) error + func (m *Manager) BindVodDomain(ctx context.Context, req BindVodDomainRequest) error + func (m *Manager) GetDomainInfo(ctx context.Context, req GetDomainInfoRequest) (*GetDomainInfoResponse, error) + func (m *Manager) GetDomainsList(ctx context.Context, req GetDomainsListRequest) (*GetDomainsListResponse, error) + func (m *Manager) GetHubInfo(ctx context.Context, req GetHubInfoRequest) (*GetHubInfoResponse, error) + func (m *Manager) GetHubList(ctx context.Context) (*GetHubListResponse, error) + func (m *Manager) GetStatCaster(ctx context.Context, req GetStatCasterRequest) ([]StatResponse, error) + func (m *Manager) GetStatCodec(ctx context.Context, req GetStatCodecRequest) ([]StatResponse, error) + func (m *Manager) GetStatDownflow(ctx context.Context, req GetStatDownflowRequest) ([]StatResponse, error) + func (m *Manager) GetStatNrop(ctx context.Context, req GetStatNropRequest) ([]StatResponse, error) + func (m *Manager) GetStatPub(ctx context.Context, req GetStatPubRequest) ([]StatResponse, error) + func (m *Manager) GetStatUpflow(ctx context.Context, req GetStatUpflowRequest) ([]StatResponse, error) + func (m *Manager) GetStreamBaseInfo(ctx context.Context, req GetStreamBaseInfoRequest) (*GetStreamBaseInfoResponse, error) + func (m *Manager) GetStreamHistory(ctx context.Context, req GetStreamHistoryRequest) (*GetStreamHistoryResponse, error) + func (m *Manager) GetStreamLiveStatus(ctx context.Context, req GetStreamLiveStatusRequest) (*GetStreamLiveStatusResponse, error) + func (m *Manager) GetStreamsList(ctx context.Context, req GetStreamListRequest) (*GetStreamsListResponse, error) + func (m *Manager) GroupStatCaster(ctx context.Context, req GroupStatCasterRequest) ([]StatGroupResponse, error) + func (m *Manager) GroupStatCodec(ctx context.Context, req GroupStatCodecRequest) ([]StatGroupResponse, error) + func (m *Manager) GroupStatDownflow(ctx context.Context, req GroupStatDownflowRequest) ([]StatGroupResponse, error) + func (m *Manager) GroupStatNrop(ctx context.Context, req GroupStatNropRequest) ([]StatGroupResponse, error) + func (m *Manager) GroupStatPub(ctx context.Context, req GroupStatPubRequest) ([]StatGroupResponse, error) + func (m *Manager) GroupStatUpflow(ctx context.Context, req GroupStatUpflowRequest) ([]StatGroupResponse, error) + func (m *Manager) HubHlsplus(ctx context.Context, req HubHlsplusRequest) error + func (m *Manager) HubPersistence(ctx context.Context, req HubPersistenceRequest) error + func (m *Manager) HubSecurity(ctx context.Context, req HubSecurityRequest) error + func (m *Manager) HubSnapshot(ctx context.Context, req HubSnapshotRequest) error + func (m *Manager) SetDomainCert(ctx context.Context, req SetDomainCertRequest) error + func (m *Manager) SetDomainURLRewrite(ctx context.Context, req SetDomainURLRewriteRequest) error + func (m *Manager) StreamConverts(ctx context.Context, req StreamConvertsRequest) error + func (m *Manager) StreamDisable(ctx context.Context, req StreamDisabledRequest) error + func (m *Manager) StreamSaveas(ctx context.Context, req StreamSaveasRequest) (*StreamSaveasResponse, error) + func (m *Manager) StreamSnapshot(ctx context.Context, req StreamSnapshotRequest) (*StreamSnapshotResponse, error) + func (m *Manager) UnbindDomain(ctx context.Context, req UnbindDomainRequest) error + type ManagerConfig struct + APIHTTPScheme string + APIHost string + AccessKey string + AppName string + SecretKey string + Transport http.RoundTripper + type NropArgs struct + Enable bool + Interval int + NotifyRate float64 + NotifyURL string + type SetDomainCertRequest struct + CertName string + Domain string + Hub string + type SetDomainURLRewriteRequest struct + Domain string + Hub string + Rules []DomainURLRewriteRule + type SignPlayURLArgs struct + Key string + Rule string + SecurityType string + SignPart string + Timestamp int64 + TsBase int + TsPart string + type SignPublishURLArgs struct + AccessKey string + ExpireAt int64 + Nonce int + PublishKey string + SecretKey string + SecurityType string + type StatGroupResponse struct + Time time.Time + Values map[string]map[string]int + type StatResponse struct + Time time.Time + Values map[string]int + type StreamConvertsRequest struct + Converts []string + Hub string + Stream string + type StreamDisabledRequest struct + DisablePeriodSecond int + DisabledTill int + Hub string + Stream string + type StreamLiveStatus struct + BPS int + ClientIP string + FPS StreamLiveStatusFPS + Key string + ServerIP string + StartAt int64 + type StreamLiveStatusFPS struct + Audio int + Data int + Video int + type StreamSaveasRequest struct + End int64 + ExpireDays int + FirstTsType byte + Fname string + Format string + Hub string + Notify string + PersistentDeleteAfterDays int + Pipeline string + Start int64 + Stream string + type StreamSaveasResponse struct + End int64 + Fname string + PersistentID string + Start int64 + type StreamSnapshotRequest struct + DeleteAfterDays int + Fname string + Format string + Hub string + Notify string + Pipeline string + Stream string + Time int + type StreamSnapshotResponse struct + Fname string + PersistentID string + type UnbindDomainRequest struct + Domain string + Hub string + type Validator struct + func (v *Validator) Validate(obj interface{}) error