media

package
v0.0.0-...-ea178e4 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Events

type Events interface {
	Produce(ctx context.Context, topic events.Topic, payload interface{})
}

Events represents a type for producing events on user CRUD operations.

type Media

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

func (Media) GetMedia

func (m Media) GetMedia(ctx context.Context, id string) (*model.MediaRecord, error)

func (Media) UploadFile

func (m Media) UploadFile(ctx context.Context, file multipart.File, filename string, mediaType model.MediaType) (*model.MediaRecord, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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