rest

package
v3.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyRouter

func ApplyRouter(args *ContainerArgs) func(chi.Router)

Types

type ContainerArgs

type ContainerArgs struct {
	DB  *sql.DB
	MDB *internal.MemoryDB
	MQ  *internal.MessageQueue
}

type Handler

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

func Container

func Container(args *ContainerArgs) *Handler

func ProvideHandler

func ProvideHandler(svc *Service) *Handler

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 (s *Service) DeleteTemplate(ctx context.Context, id string) error

func (*Service) Exec

func (s *Service) Exec(req internal.DownloadRequest) (string, error)

func (*Service) ExecLivestream

func (s *Service) ExecLivestream(req internal.DownloadRequest)

func (*Service) ExecPlaylist

func (s *Service) ExecPlaylist(req internal.DownloadRequest) error

func (*Service) GetCookies

func (s *Service) GetCookies(ctx context.Context) ([]byte, error)

func (*Service) GetTemplates

func (s *Service) GetTemplates(ctx context.Context) (*[]internal.CustomTemplate, error)

func (*Service) GetVersion

func (s *Service) GetVersion(ctx context.Context) (string, string, error)

func (*Service) Running

func (s *Service) Running(ctx context.Context) (*[]internal.ProcessResponse, error)

func (*Service) SaveTemplate

func (s *Service) SaveTemplate(ctx context.Context, template *internal.CustomTemplate) error

func (*Service) SetCookies

func (s *Service) SetCookies(ctx context.Context, cookies string) error

func (*Service) UpdateTemplate added in v3.2.3

func (s *Service) UpdateTemplate(ctx context.Context, t *internal.CustomTemplate) (*internal.CustomTemplate, error)

Jump to

Keyboard shortcuts

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