model

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MediaRecord

type MediaRecord struct {
	ID        string     `json:"id" db:"id"`
	Storage   string     `json:"-" db:"storage"`
	Type      MediaType  `json:"type" db:"type"`
	Filename  string     `json:"filename" db:"filename"`
	Link      string     `json:"link" db:"link"`
	CreatedAt *time.Time `json:"created_at" db:"created_at"`
	UpdatedAt *time.Time `json:"updated_at" db:"updated_at"`
}

type MediaType

type MediaType string
const (
	Sound MediaType = "sound"
	Image MediaType = "image"
)

Jump to

Keyboard shortcuts

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