getscene

package
v0.0.0-...-94fac4a Latest Latest
Warning

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

Go to latest
Published: May 1, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotFound .
	ErrNotFound = errors.New("scene not found")
	// ErrQueryDoesntMatch .
	ErrQueryDoesntMatch = errors.New("query is invalid")
)

Functions

func FromDialogQuery

func FromDialogQuery(rawQuery string, movies []srt.MovieData) (config.ScenePtr, error)

FromDialogQuery .

func Named

func Named(name string, cfg config.Config) (config.ScenePtr, error)

Named .

Types

type Phrase

type Phrase struct {
	Str    string
	Offset int
	I      int
}

Phrase .

type Query

type Query struct {
	MovieID   string
	BegPhrase Phrase
	EndPhrase Phrase
}

Query .

Jump to

Keyboard shortcuts

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