Documentation ¶
Index ¶
- func AddDialogs(languageID string, dialogs []*model.Dialog) error
- func AddToken(token *model.Token) error
- func AddTranslations(title *model.Title, translations []*model.Translation) error
- func AddUser(user *model.User) error
- func AddUserConnection(connection *model.UserConnection) error
- func DeleteToken(token string) error
- func FindDialogs(text, titleID, languageID, translationLanguageID string, page, pageSize int) (int, []*model.Dialog, error)
- func FindTitles(text, kind, languageID string, userLanguageID string, page, pageSize int) (int, []*model.Title, error)
- func GetDialogs(titleID string) ([]*model.Dialog, error)
- func GetLanguages() ([]*model.Language, error)
- func GetTitle(titleID string) (*model.Title, error)
- func GetTranslations(titleID, languageID string) ([]*model.Translation, error)
- func GetUserByConnection(providerID, providerUserID string) (*model.User, error)
- func GetUserByToken(token string) (*model.User, error)
- func IncDialogPlayCount(dialogID string) (bool, error)
- func IndexDialogs(languageID string, dialogs []*model.Dialog) error
- func IndexTranslations(title *model.Title, translations []*model.Translation) error
- func Load()
- func RandomDialogs(languageID, translationLanguageID string, page, pageSize int) (int, []*model.Dialog, error)
- func UpdateUser(user *model.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddTranslations ¶
func AddTranslations(title *model.Title, translations []*model.Translation) error
func AddUserConnection ¶
func AddUserConnection(connection *model.UserConnection) error
func DeleteToken ¶
func FindDialogs ¶
func FindTitles ¶
func GetLanguages ¶
func GetTranslations ¶
func GetTranslations(titleID, languageID string) ([]*model.Translation, error)
func GetUserByConnection ¶
func IncDialogPlayCount ¶
func IndexTranslations ¶
func IndexTranslations(title *model.Title, translations []*model.Translation) error
func RandomDialogs ¶
func UpdateUser ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.