Documentation
¶
Index ¶
- func ApplyRouter(args *ContainerArgs) func(chi.Router)
- type ContainerArgs
- type Handler
- func (h *Handler) AddTemplate() http.HandlerFunc
- func (h *Handler) DeleteCookies() http.HandlerFunc
- func (h *Handler) DeleteTemplate() http.HandlerFunc
- func (h *Handler) Exec() http.HandlerFunc
- func (h *Handler) ExecLivestream() http.HandlerFunc
- func (h *Handler) ExecPlaylist() http.HandlerFunc
- func (h *Handler) GetCookies() http.HandlerFunc
- func (h *Handler) GetTemplates() http.HandlerFunc
- func (h *Handler) GetVersion() http.HandlerFunc
- func (h *Handler) Running() http.HandlerFunc
- func (h *Handler) SetCookies() http.HandlerFunc
- func (h *Handler) UpdateTemplate() http.HandlerFunc
- type Service
- func (s *Service) DeleteTemplate(ctx context.Context, id string) error
- func (s *Service) Exec(req internal.DownloadRequest) (string, error)
- func (s *Service) ExecLivestream(req internal.DownloadRequest)
- func (s *Service) ExecPlaylist(req internal.DownloadRequest) error
- func (s *Service) GetCookies(ctx context.Context) ([]byte, error)
- func (s *Service) GetTemplates(ctx context.Context) (*[]internal.CustomTemplate, error)
- func (s *Service) GetVersion(ctx context.Context) (string, string, error)
- func (s *Service) Running(ctx context.Context) (*[]internal.ProcessResponse, error)
- func (s *Service) SaveTemplate(ctx context.Context, template *internal.CustomTemplate) error
- func (s *Service) SetCookies(ctx context.Context, cookies string) error
- func (s *Service) UpdateTemplate(ctx context.Context, t *internal.CustomTemplate) (*internal.CustomTemplate, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyRouter ¶
func ApplyRouter(args *ContainerArgs) func(chi.Router)
Types ¶
type ContainerArgs ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func Container ¶
func Container(args *ContainerArgs) *Handler
func ProvideHandler ¶
func (*Handler) AddTemplate ¶
func (h *Handler) AddTemplate() http.HandlerFunc
func (*Handler) DeleteCookies ¶
func (h *Handler) DeleteCookies() http.HandlerFunc
func (*Handler) DeleteTemplate ¶
func (h *Handler) DeleteTemplate() http.HandlerFunc
func (*Handler) Exec ¶
func (h *Handler) Exec() http.HandlerFunc
func (*Handler) ExecLivestream ¶
func (h *Handler) ExecLivestream() http.HandlerFunc
func (*Handler) ExecPlaylist ¶
func (h *Handler) ExecPlaylist() http.HandlerFunc
func (*Handler) GetCookies ¶
func (h *Handler) GetCookies() http.HandlerFunc
func (*Handler) GetTemplates ¶
func (h *Handler) GetTemplates() http.HandlerFunc
func (*Handler) GetVersion ¶
func (h *Handler) GetVersion() http.HandlerFunc
func (*Handler) Running ¶
func (h *Handler) Running() http.HandlerFunc
func (*Handler) SetCookies ¶
func (h *Handler) SetCookies() http.HandlerFunc
func (*Handler) UpdateTemplate ¶ added in v3.2.3
func (h *Handler) UpdateTemplate() http.HandlerFunc
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func ProvideService ¶
func ProvideService(args *ContainerArgs) *Service
func (*Service) DeleteTemplate ¶
func (*Service) ExecLivestream ¶
func (s *Service) ExecLivestream(req internal.DownloadRequest)
func (*Service) ExecPlaylist ¶
func (s *Service) ExecPlaylist(req internal.DownloadRequest) error
func (*Service) GetTemplates ¶
func (*Service) GetVersion ¶
func (*Service) SaveTemplate ¶
func (*Service) SetCookies ¶
func (*Service) UpdateTemplate ¶ added in v3.2.3
func (s *Service) UpdateTemplate(ctx context.Context, t *internal.CustomTemplate) (*internal.CustomTemplate, error)
Click to show internal directories.
Click to hide internal directories.