Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dialog ¶
type Dialog struct { ID string `db:"id"` TitleID string `db:"title_id"` Start int `db:"start"` End int `db:"end"` Text string `db:"text"` CreatedAt int `db:"created_at"` UpdatedAt int `db:"updated_at"` Title *Title Translations []*Translation }
func (*Dialog) GenerateID ¶
func (c *Dialog) GenerateID()
type DialogIndex ¶
type DialogIndex struct { ID string `json:"-"` TitleID string `json:"title_id,omitempty"` Start int `json:"start,omitempty"` Text string `json:"text,omitempty"` TextDe string `json:"text_de,omitempty"` TextEs string `json:"text_es,omitempty"` TextFr string `json:"text_fr,omitempty"` TextIt string `json:"text_it,omitempty"` TextPtbr string `json:"text_ptbr,omitempty"` }
func (*DialogIndex) GetTextValue ¶
func (c *DialogIndex) GetTextValue(languageID string) string
func (*DialogIndex) SetTextValue ¶
func (c *DialogIndex) SetTextValue(languageID string, text string)
type Language ¶
type Language struct { ID string `db:"id"` Name string `db:"name"` CountryCode string `db:"country_code"` Enabled bool `db:"enabled"` }
func FindLanguage ¶
type Title ¶
type Title struct { ID string `db:"id"` Name string `db:"name"` Kind string `db:"kind"` Year int `db:"year"` LanguageID string `db:"language_id"` Translations string `db:"translations"` }
func (*Title) GenerateID ¶
func (c *Title) GenerateID()
type Token ¶
func (*Token) GenerateID ¶
func (c *Token) GenerateID()
type Translation ¶
type Translation struct { ID string `db:"id"` DialogID string `db:"dialog_id"` LanguageID string `db:"language_id"` Text string `db:"text"` CreatedAt int `db:"created_at"` UpdatedAt int `db:"updated_at"` Dialog *Dialog }
func (*Translation) GenerateID ¶
func (c *Translation) GenerateID()
Click to show internal directories.
Click to hide internal directories.