structs

package
Version: v0.0.0-...-e6a098a Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Categorie

type Categorie struct {
	ID              uint64
	Name            string
	ParentCategorie *Categorie // nullable
}

type CategorieSimple

type CategorieSimple struct {
	ID              uint64
	Name            string
	ParentCategorie uint64 // nullable => 0
}

type Comment

type Comment struct {
	ID            uint64
	User          *User
	Video         *Video
	ParentComment *Comment // nullable
	Comment       string
	// contains filtered or unexported fields
}

type CommentSimple

type CommentSimple struct {
	ID            uint64
	User          uint64
	Video         uint64
	ParentComment uint64 // nullable => 0
	Comment       string
	// contains filtered or unexported fields
}

type DownloadQ

type DownloadQ struct {
	ID     uint64
	Video  *Video
	Inwork bool
	Failed bool
}

type DownloadQSimple

type DownloadQSimple struct {
	ID     uint64
	Video  uint64
	Inwork bool
	Failed bool
}

type Group

type Group struct {
	ID              uint64
	Name            string
	PermissionLevel uint64
	Created         time.Time
	Creator         *User // nullable
}

type GroupSimple

type GroupSimple struct {
	ID              uint64
	Name            string
	PermissionLevel uint64
	Created         time.Time
	Creator         uint64 // nullable => 0
}

type LinkCategorieGroupPermission

type LinkCategorieGroupPermission struct {
	ID        uint64
	Group     *Group
	Categorie *Categorie
	CanRead   bool
	CanWrite  bool
}

type LinkCategorieGroupPermissionSimple

type LinkCategorieGroupPermissionSimple struct {
	ID        uint64
	Group     uint64
	Categorie uint64
	CanRead   bool
	CanWrite  bool
}

type LinkCategorieMovie

type LinkCategorieMovie struct {
	ID        uint64
	Movie     *Movie
	Categorie *Categorie
}

type LinkCategorieMovieSimple

type LinkCategorieMovieSimple struct {
	ID        uint64
	Movie     uint64
	Categorie uint64
}

type LinkCategoriePersonality

type LinkCategoriePersonality struct {
	ID          uint64
	Personality *Personality
	Categorie   *Categorie
}

type LinkCategoriePersonalitySimple

type LinkCategoriePersonalitySimple struct {
	ID          uint64
	Personality uint64
	Categorie   uint64
}

type LinkCategoriePlaylist

type LinkCategoriePlaylist struct {
	ID        uint64
	Playlist  *Playlist
	Categorie *Categorie
}

type LinkCategoriePlaylistSimple

type LinkCategoriePlaylistSimple struct {
	ID        uint64
	Playlist  uint64
	Categorie uint64
}

type LinkCategorieUserPermission

type LinkCategorieUserPermission struct {
	ID        uint64
	User      *User
	Categorie *Categorie
	CanRead   bool
	CanWrite  bool
}

type LinkCategorieUserPermissionSimple

type LinkCategorieUserPermissionSimple struct {
	ID        uint64
	User      uint64
	Categorie uint64
	CanRead   bool
	CanWrite  bool
}

type LinkCategorieVideo

type LinkCategorieVideo struct {
	ID        uint64
	Video     *Video
	Categorie *Categorie
}

type LinkCategorieVideoSimple

type LinkCategorieVideoSimple struct {
	ID        uint64
	Video     uint64
	Categorie uint64
}

type LinkIdenticalVideos

type LinkIdenticalVideos struct {
	ID     uint64
	VideoA *Video
	VideoB *Video
}

type LinkIdenticalVideosSimple

type LinkIdenticalVideosSimple struct {
	ID     uint64
	VideoA uint64
	VideoB uint64
}

type LinkPersonalityMovie

type LinkPersonalityMovie struct {
	ID          uint64
	Personality *Personality
	Movie       *Movie
}

type LinkPersonalityMovieSimple

type LinkPersonalityMovieSimple struct {
	ID          uint64
	Personality uint64
	Movie       uint64
}

type LinkPersonalityVideo

type LinkPersonalityVideo struct {
	ID          uint64
	Personality *Personality
	Video       *Video
}

type LinkPersonalityVideoSimple

type LinkPersonalityVideoSimple struct {
	ID          uint64
	Personality uint64
	Video       uint64
}

type LinkUserGroup

type LinkUserGroup struct {
	ID    uint64
	User  *User
	Group *Group
}

type LinkUserGroupSimple

type LinkUserGroupSimple struct {
	ID    uint64
	User  uint64
	Group uint64
}

type LinkVideoPlaylist

type LinkVideoPlaylist struct {
	ID       uint64
	Video    *Video
	Playlist *Playlist
}

type LinkVideoPlaylistSimple

type LinkVideoPlaylistSimple struct {
	ID       uint64
	Video    uint64
	Playlist uint64
}

type Movie

type Movie struct {
	ID              uint64
	Title           string // TODO: format
	AltTitles       string
	ImdbRef         string
	ImdbRating      float64
	Trailer         *Video // nullable
	CoverFile       string // nullable
	LocalFile       string // nullable
	BlockDownload   bool
	BlockDownloadBy *User // nullable
	Added           time.Time
	AddedBy         *User // nullable
	Length          uint64
	FileHash        string // nullable
	FileSize        uint64 // nullable => 0
}

type MovieSimple

type MovieSimple struct {
	ID              uint64
	Title           string // TODO: format
	AltTitles       string
	ImdbRef         string
	ImdbRating      float64
	Trailer         uint64 // nullable => 0
	CoverFile       string // nullable
	LocalFile       string // nullable
	BlockDownload   bool
	BlockDownloadBy uint64 // nullable => 0
	Added           time.Time
	AddedBy         uint64 // nullable => 0
	Length          uint64
	FileHash        string // nullable
	FileSize        uint64 // nullable => 0
}

type Personality

type Personality struct {
	ID      uint64
	Name    string
	ImdbRef string // nullable
	Created time.Time
	Creator *User // nullable
}

type PersonalitySimple

type PersonalitySimple struct {
	ID      uint64
	Name    string
	ImdbRef string // nullable
	Created time.Time
	Creator uint64 // nullable => 0
}

type Playlist

type Playlist struct {
	ID      uint64
	Name    string
	Public  bool
	Created time.Time
	Creator *User // nullable
}

type PlaylistSimple

type PlaylistSimple struct {
	ID      uint64
	Name    string
	Public  bool
	Created time.Time
	Creator uint64 // nullable => 0
}

type Rating

type Rating struct {
	ID     uint64
	User   *User
	Video  *Video
	Rating uint8
	Added  time.Time
}

type RatingSimple

type RatingSimple struct {
	ID     uint64
	User   uint64
	Video  uint64
	Rating uint8
	Added  time.Time
}

type Resolution

type Resolution struct {
	Width, Height uint64
}

func NewResolution

func NewResolution(s string) (Resolution, error)

func (Resolution) ToString

func (r Resolution) ToString() string

type User

type User struct {
	ID              uint64
	Name            string
	PwHash          string
	PermissionLevel uint64
	Created         time.Time
	Creator         *User // nullable
}

type UserSimple

type UserSimple struct {
	ID              uint64
	Name            string
	PwHash          string
	PermissionLevel uint64
	Created         time.Time
	Creator         uint64 // nullable => 0
}

type Video

type Video struct {
	ID          uint64
	Title       string
	DownloadRef string
	Views       uint64
	LocalFile   string // nullable
	// contains filtered or unexported fields
}

type VideoSimple

type VideoSimple struct {
	ID          uint64
	Title       string
	DownloadRef string
	Views       uint64
	LocalFile   string // nullable
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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