http

package
v0.0.0-...-3495602 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(
	app *runtime.ServeMux,
	beatProvider BeatProvider,
	mediaUploader MediaUploader,
	log *slog.Logger,
)

Types

type BeatProvider

type BeatProvider interface {
	GetBeatStream(ctx context.Context, beatID uuid.UUID, start, end *int) (file io.ReadCloser, size *int, contentType *string, err error)
}

type MediaUploader

type MediaUploader interface {
	UploadMedia(ctx context.Context, file io.Reader, m model.MediaMeta) error
}

type Router

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

Jump to

Keyboard shortcuts

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