youtube

package
v0.0.0-...-742d52a Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SearchQueryVspoJp = "ぶいすぽ"
	SearchQueryVspoEn = "VspoEN"
)
View Source
const (
	EventTypeLive      = "live"
	EventTypeUpcoming  = "upcoming"
	EventTypeNone      = "none"
	EventTypeCompleted = "completed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelsParam

type ChannelsParam struct {
	ChannelIDs []string
}

type EventType

type EventType string

func (EventType) String

func (t EventType) String() string

type SearchQuery

type SearchQuery string

func (SearchQuery) String

func (q SearchQuery) String() string

type SearchVideosParam

type SearchVideosParam struct {
	SearchQuery SearchQuery
	EventType   EventType
}

type VideosParam

type VideosParam struct {
	VideoIDs []string
}

type YoutubeClient

type YoutubeClient interface {
	GetVideos(ctx context.Context, param VideosParam) (model.Videos, error)
	SearchVideos(ctx context.Context, param SearchVideosParam) (model.Videos, error)
	Channels(ctx context.Context, param ChannelsParam) (model.Channels, error)
}

Directories

Path Synopsis
Package mock_youtube is a generated GoMock package.
Package mock_youtube is a generated GoMock package.

Jump to

Keyboard shortcuts

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