api

package
v0.0.0-...-1b9946f Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: Apache-2.0, MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFrame

func GetFrame(
	ctx context.Context,
	opts base.ServiceOptions,
	videoID string,
	t time.Duration,
	w io.Writer,
) error

func RegisterSlideShow

func RegisterSlideShow(server *otohttp.Server, slideShow SlideShow)

Types

type GetRandomMarker

type GetRandomMarker struct {
	ProjectID string `json:"projectID"`
}

type GetRandomStack

type GetRandomStack struct {
	ProjectID string `json:"projectID"`
	Size      int    `json:"size"`
}

type Marker

type Marker struct {
	VideoID string `json:"videoID"`
	Time    int64  `json:"time"`
	Error   string `json:"error,omitempty"`
}

type SlideShow

type SlideShow interface {
	GetRandomMarker(context.Context, GetRandomMarker) (*Marker, error)
	GetRandomStack(context.Context, GetRandomStack) (*Stack, error)
}

func NewSlideShowClient

func NewSlideShowClient(
	endpoint string,
	options ...*SlideShowClientOptions,
) SlideShow

func NewSlideShowClientFromOptions

func NewSlideShowClientFromOptions(opts base.ServiceOptions) SlideShow

type SlideShowClientOptions

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

func NewSlideShowClientOptions

func NewSlideShowClientOptions() *SlideShowClientOptions

func (*SlideShowClientOptions) SetBasicAuth

func (o *SlideShowClientOptions) SetBasicAuth(username, password string) *SlideShowClientOptions

func (*SlideShowClientOptions) SetTimeout

func (*SlideShowClientOptions) SetTransport

func (o *SlideShowClientOptions) SetTransport(transport http.RoundTripper) *SlideShowClientOptions

type Stack

type Stack struct {
	Markers []*Marker `json:"markers"`
	Error   string    `json:"error,omitempty"`
}

type Void

type Void struct {
}

Jump to

Keyboard shortcuts

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