schema

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MediaFileKindAudio relates to the audio type
	MediaFileTypeAudio = "audio"

	// MediaFileTypeVideo relates to the video type
	MediaFileTypeVideo = "video"
)
View Source
const MediaStatusAwaitingUpload = "AwaitingUpload"

MediaStatusAwaitingUpload relates to the pending state of a media

View Source
const MediaStatusErrored = "Errored"

MediaStatusErrored relates to the errored state of a media

View Source
const MediaStatusProcessing = "Processing"

MediaStatusProcessing relates to the initial state of a media

View Source
const MediaStatusReady = "Ready"

MediaStatusReady relates to the final state of a media

Variables

This section is empty.

Functions

This section is empty.

Types

type Media

type Media struct {
	ent.Schema
}

Media holds the schema definition for the Media entity.

func (Media) Annotations

func (Media) Annotations() []schema.Annotation

func (Media) Edges

func (Media) Edges() []ent.Edge

Edges of the Media.

func (Media) Fields

func (Media) Fields() []ent.Field

Fields of the Media.

func (Media) Index

func (Media) Index() []ent.Index

type MediaFile

type MediaFile struct {
	ent.Schema
}

MediaFile holds the schema definition for the MediaFile entity.

func (MediaFile) Annotations

func (MediaFile) Annotations() []schema.Annotation

func (MediaFile) Edges

func (MediaFile) Edges() []ent.Edge

Edges of the MediaFile.

func (MediaFile) Fields

func (MediaFile) Fields() []ent.Field

Fields of the MediaFile.

func (MediaFile) Index

func (MediaFile) Index() []ent.Index

Jump to

Keyboard shortcuts

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