cli

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FetcherClient

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

FetcherClient ...

func NewFetcherClient

func NewFetcherClient(fetcher transcript.Fetcher) FetcherClient

NewFetcherClient ...

func (FetcherClient) Fetch

func (t FetcherClient) Fetch(id, language string) (string, error)

Fetch ...

func (FetcherClient) List

func (t FetcherClient) List(id string) ([]string, error)

List ...

func (FetcherClient) Save

func (t FetcherClient) Save(id, language, filename string) error

Save ...

type Switch

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

Switch ...

func NewSwitch

func NewSwitch(appname, version string, client TranscriptClient) Switch

NewSwitch ...

func (Switch) Help

func (s Switch) Help()

Help ...

func (Switch) Info

func (s Switch) Info()

Info ...

func (Switch) Switch

func (s Switch) Switch() error

Switch ...

type TranscriptClient

type TranscriptClient interface {
	Save(id, language, fileName string) error
	List(id string) ([]string, error)
	Fetch(id, language string) (string, error)
}

TranscriptClient ...

Jump to

Keyboard shortcuts

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