builder

package
v0.0.0-...-c14b3c5 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseURL

func ParseURL(link string) (model.Info, error)

Types

type Builder

type Builder interface {
	Build(ctx context.Context, cfg *feed.Config) (*model.Feed, error)
}

func New

func New(ctx context.Context, provider model.Provider, key string) (Builder, error)

type SoundCloudBuilder

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

func NewSoundcloudBuilder

func NewSoundcloudBuilder() (*SoundCloudBuilder, error)

func (*SoundCloudBuilder) Build

func (s *SoundCloudBuilder) Build(_ctx context.Context, cfg *feed.Config) (*model.Feed, error)

type VimeoBuilder

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

func NewVimeoBuilder

func NewVimeoBuilder(ctx context.Context, token string) (*VimeoBuilder, error)

func (*VimeoBuilder) Build

func (v *VimeoBuilder) Build(ctx context.Context, cfg *feed.Config) (*model.Feed, error)

type YouTubeBuilder

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

func NewYouTubeBuilder

func NewYouTubeBuilder(key string) (*YouTubeBuilder, error)

func (*YouTubeBuilder) Build

func (yt *YouTubeBuilder) Build(ctx context.Context, cfg *feed.Config) (*model.Feed, error)

func (*YouTubeBuilder) GetVideoCount

func (yt *YouTubeBuilder) GetVideoCount(ctx context.Context, info *model.Info) (uint64, error)

Jump to

Keyboard shortcuts

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