Documentation ¶
Index ¶
- type AddFFmpegSourceResponse
- type AddStreamProxyResponse
- type AddStreamPusherProxyResponse
- type CloseStreamResponse
- type CloseStreamsResponse
- type CommonResponse
- type DelFFmpegSourceResponse
- type DelStreamProxyResponse
- type DelStreamPusherProxyResponse
- type GetMediaPlayerListResponse
- type IsMediaOnlineResponse
- type ZLMClient
- func (c *ZLMClient) AddFFmpegSource(ctx context.Context, params *zlm.AddFFmpegSourceParams) (*AddFFmpegSourceResponse, error)
- func (c *ZLMClient) AddStreamProxy(ctx context.Context, params *zlm.AddStreamProxyParams) (*AddStreamProxyResponse, error)
- func (c *ZLMClient) AddStreamPusherProxy(ctx context.Context, params *zlm.AddStreamPusherProxyParams) (*AddStreamPusherProxyResponse, error)
- func (c *ZLMClient) CloseStream(ctx context.Context, params *zlm.CloseStreamParams) (*CloseStreamResponse, error)
- func (c *ZLMClient) CloseStreams(ctx context.Context, params *zlm.CloseStreamsParams) (*CloseStreamsResponse, error)
- func (c *ZLMClient) DelFFmpegSource(ctx context.Context, params *zlm.DelFFmpegSourceParams) (*DelFFmpegSourceResponse, error)
- func (c *ZLMClient) DelStreamProxy(ctx context.Context, params *zlm.DelStreamProxyParams) (*DelStreamProxyResponse, error)
- func (c *ZLMClient) DelStreamPusherProxy(ctx context.Context, params *zlm.DelStreamPusherProxyParams) (*DelStreamPusherProxyResponse, error)
- func (c *ZLMClient) GetMediaPlayerList(ctx context.Context, params *zlm.GetMediaPlayerListParams) (*GetMediaPlayerListResponse, error)
- func (c *ZLMClient) IsMediaOnline(ctx context.Context, params *zlm.IsMediaOnlineParams) (*IsMediaOnlineResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddFFmpegSourceResponse ¶
type AddFFmpegSourceResponse struct { CommonResponse Data struct { Key string `json:"key"` } `json:"data"` }
type AddStreamProxyResponse ¶
type AddStreamProxyResponse struct {
CommonResponse
}
type AddStreamPusherProxyResponse ¶
type AddStreamPusherProxyResponse struct { CommonResponse Data struct { Key string `json:"key"` } `json:"data"` }
type CloseStreamResponse ¶
type CloseStreamResponse struct { CommonResponse Result int `json:"result"` }
type CloseStreamsResponse ¶
type CloseStreamsResponse struct { CommonResponse CountHit int `json:"count_hit"` CountClosed int `json:"count_closed"` }
type CommonResponse ¶
type DelFFmpegSourceResponse ¶
type DelFFmpegSourceResponse struct { CommonResponse Data struct { Flag bool `json:"flag"` } `json:"data"` }
type DelStreamProxyResponse ¶
type DelStreamProxyResponse struct { CommonResponse Data struct { Flag bool `json:"flag"` } `json:"data"` }
type DelStreamPusherProxyResponse ¶
type DelStreamPusherProxyResponse struct { CommonResponse Data struct { Flag bool `json:"flag"` } `json:"data"` }
type IsMediaOnlineResponse ¶
type IsMediaOnlineResponse struct { CommonResponse Online bool `json:"online"` }
type ZLMClient ¶
type ZLMClient struct {
Native *zlm.ClientWithResponses
}
func NewZLMClient ¶
func NewZLMClient(server string, opts ...zlm.ClientOption) (*ZLMClient, error)
func (*ZLMClient) AddFFmpegSource ¶
func (c *ZLMClient) AddFFmpegSource(ctx context.Context, params *zlm.AddFFmpegSourceParams) (*AddFFmpegSourceResponse, error)
func (*ZLMClient) AddStreamProxy ¶
func (c *ZLMClient) AddStreamProxy(ctx context.Context, params *zlm.AddStreamProxyParams) (*AddStreamProxyResponse, error)
func (*ZLMClient) AddStreamPusherProxy ¶
func (c *ZLMClient) AddStreamPusherProxy(ctx context.Context, params *zlm.AddStreamPusherProxyParams) (*AddStreamPusherProxyResponse, error)
func (*ZLMClient) CloseStream ¶
func (c *ZLMClient) CloseStream(ctx context.Context, params *zlm.CloseStreamParams) (*CloseStreamResponse, error)
func (*ZLMClient) CloseStreams ¶
func (c *ZLMClient) CloseStreams(ctx context.Context, params *zlm.CloseStreamsParams) (*CloseStreamsResponse, error)
func (*ZLMClient) DelFFmpegSource ¶
func (c *ZLMClient) DelFFmpegSource(ctx context.Context, params *zlm.DelFFmpegSourceParams) (*DelFFmpegSourceResponse, error)
func (*ZLMClient) DelStreamProxy ¶
func (c *ZLMClient) DelStreamProxy(ctx context.Context, params *zlm.DelStreamProxyParams) (*DelStreamProxyResponse, error)
func (*ZLMClient) DelStreamPusherProxy ¶
func (c *ZLMClient) DelStreamPusherProxy(ctx context.Context, params *zlm.DelStreamPusherProxyParams) (*DelStreamPusherProxyResponse, error)
func (*ZLMClient) GetMediaPlayerList ¶
func (c *ZLMClient) GetMediaPlayerList(ctx context.Context, params *zlm.GetMediaPlayerListParams) (*GetMediaPlayerListResponse, error)
func (*ZLMClient) IsMediaOnline ¶
func (c *ZLMClient) IsMediaOnline(ctx context.Context, params *zlm.IsMediaOnlineParams) (*IsMediaOnlineResponse, error)
Click to show internal directories.
Click to hide internal directories.