parser

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetLinkInfoResponse

type GetLinkInfoResponse struct {
	RequestLink string
	MediaSource models.MediaSource
	Url         *url.URL
}

type Service

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

func New

func New(l logger.Logger, cfg *config.Config, filesService files.IFiles) *Service

func (*Service) GetLinkInfo

func (s *Service) GetLinkInfo(link string) (GetLinkInfoResponse, error)

func (*Service) GetMedia

func (s *Service) GetMedia(ctx context.Context, linkInfo GetLinkInfoResponse) (*models.Media, error)

func (Service) Name

func (s Service) Name() string

func (*Service) Start

func (s *Service) Start(ctx context.Context) error

func (Service) Stop

func (s Service) Stop(ctx context.Context) error

Jump to

Keyboard shortcuts

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