model

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clip

type Clip struct {
	ClipIndex              sql.NullInt64  `gorm:"column:ClipIndex"`
	DurationInMilliseconds sql.NullInt64  `gorm:"column:DurationInMilliseconds"`
	ID                     sql.NullInt64  `gorm:"column:Id"`
	ModuleID               sql.NullInt64  `gorm:"column:ModuleId"`
	Name                   sql.NullString `gorm:"column:Name"`
	SupportsStandard       sql.NullInt64  `gorm:"column:SupportsStandard"`
	SupportsWidescreen     sql.NullInt64  `gorm:"column:SupportsWidescreen"`
	Title                  sql.NullString `gorm:"column:Title"`
}

func (*Clip) TableName

func (c *Clip) TableName() string

TableName sets the insert table name for this struct type

type ClipTranscription

type ClipTranscription struct {
	ClipID       string       `json:"clipId"`
	LanguageCode string       `json:"languageCode"`
	Transcripts  []Transcript `json:"transcripts"`
}

type Cliptranscript

type Cliptranscript struct {
	ClipID    sql.NullInt64  `gorm:"column:ClipId"`
	EndTime   sql.NullInt64  `gorm:"column:EndTime"`
	ID        sql.NullInt64  `gorm:"column:Id;primary_key"`
	StartTime sql.NullInt64  `gorm:"column:StartTime"`
	Text      sql.NullString `gorm:"column:Text"`
}

func (*Cliptranscript) TableName

func (c *Cliptranscript) TableName() string

TableName sets the insert table name for this struct type

type Course

type Course struct {
	AuthorsFullnames       sql.NullString `gorm:"column:AuthorsFullnames"`
	CachedOn               sql.NullString `gorm:"column:CachedOn"`
	DefaultImageURL        sql.NullString `gorm:"column:DefaultImageUrl"`
	Description            sql.NullString `gorm:"column:Description"`
	DurationInMilliseconds sql.NullInt64  `gorm:"column:DurationInMilliseconds"`
	HasTranscript          sql.NullInt64  `gorm:"column:HasTranscript"`
	ImageURL               sql.NullString `gorm:"column:ImageUrl"`
	IsStale                sql.NullInt64  `gorm:"column:IsStale"`
	Level                  sql.NullString `gorm:"column:Level"`
	Name                   sql.NullString `gorm:"column:Name"`
	ReleaseDate            sql.NullString `gorm:"column:ReleaseDate"`
	ShortDescription       sql.NullString `gorm:"column:ShortDescription"`
	Title                  sql.NullString `gorm:"column:Title"`
	UpdatedDate            sql.NullString `gorm:"column:UpdatedDate"`
	URLSlug                sql.NullString `gorm:"column:UrlSlug"`
}

func (*Course) TableName

func (c *Course) TableName() string

TableName sets the insert table name for this struct type

type CourseTranscript

type CourseTranscript struct {
	CourseID string             `json:"courseId"`
	Modules  []ModuleTranscript `json:"modules"`
}

func UnmarshalCourse

func UnmarshalCourse(data []byte) (*CourseTranscript, error)

type Module

type Module struct {
	AuthorHandle           sql.NullString `gorm:"column:AuthorHandle"`
	CourseName             sql.NullString `gorm:"column:CourseName"`
	Description            sql.NullString `gorm:"column:Description"`
	DurationInMilliseconds sql.NullInt64  `gorm:"column:DurationInMilliseconds"`
	ID                     sql.NullInt64  `gorm:"column:Id"`
	ModuleIndex            sql.NullInt64  `gorm:"column:ModuleIndex"`
	Name                   sql.NullString `gorm:"column:Name"`
	Title                  sql.NullString `gorm:"column:Title"`
}

func (*Module) TableName

func (m *Module) TableName() string

TableName sets the insert table name for this struct type

type ModuleTranscript

type ModuleTranscript struct {
	ModuleID        string              `json:"moduleId"`
	ModuleTitle     string              `json:"moduleTitle"`
	ClipTranscripts []ClipTranscription `json:"clipTranscripts"`
}

type Transcript

type Transcript struct {
	RelativeStartTime int64  `json:"relativeStartTime"`
	RelativeEndTime   int64  `json:"relativeEndTime"`
	Text              string `json:"text"`
}

type User

type User struct {
	DeviceID      sql.NullString `gorm:"column:DeviceId"`
	Jwt           sql.NullString `gorm:"column:Jwt"`
	JwtExpiration sql.NullString `gorm:"column:JwtExpiration"`
	RefreshToken  sql.NullString `gorm:"column:RefreshToken"`
	UserHandle    sql.NullString `gorm:"column:UserHandle"`
}

func (*User) TableName

func (u *User) TableName() string

TableName sets the insert table name for this struct type

Jump to

Keyboard shortcuts

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