instant

package
v0.0.0-...-21bfa7e Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidLink = errors.New("invalid link")

Functions

func IsLinkValid

func IsLinkValid(link string) bool

Types

type Instant

type Instant struct {
	Exists  bool   `json:"exists,omitempty"`
	Content string `json:"content,omitempty"`
}

func GetPlayable

func GetPlayable(link string) (*Instant, error)

type Player

type Player struct {
	sync.Mutex

	StopChan chan bool
	// contains filtered or unexported fields
}

func NewPlayer

func NewPlayer() *Player

func (*Player) Close

func (p *Player) Close()

func (*Player) End

func (p *Player) End()

func (*Player) GetNextPlay

func (p *Player) GetNextPlay() string

func (*Player) Play

func (p *Player) Play(link string) (string, error)

func (*Player) Stop

func (p *Player) Stop()

Jump to

Keyboard shortcuts

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