store

package
v0.0.0-...-35ce3d9 Latest Latest
Warning

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

Go to latest
Published: May 20, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDialogs

func AddDialogs(languageID string, dialogs []*model.Dialog) error

func AddToken

func AddToken(token *model.Token) error

func AddTranslations

func AddTranslations(title *model.Title, translations []*model.Translation) error

func AddUser

func AddUser(user *model.User) error

func AddUserConnection

func AddUserConnection(connection *model.UserConnection) error

func DeleteToken

func DeleteToken(token string) error

func FindDialogs

func FindDialogs(text, titleID, languageID, translationLanguageID string, page, pageSize int) (int, []*model.Dialog, error)

func FindTitles

func FindTitles(text, kind, languageID string, userLanguageID string, page, pageSize int) (int, []*model.Title, error)

func GetDialogs

func GetDialogs(titleID string) ([]*model.Dialog, error)

func GetLanguages

func GetLanguages() ([]*model.Language, error)

func GetTitle

func GetTitle(titleID string) (*model.Title, error)

func GetTranslations

func GetTranslations(titleID, languageID string) ([]*model.Translation, error)

func GetUserByConnection

func GetUserByConnection(providerID, providerUserID string) (*model.User, error)

func GetUserByToken

func GetUserByToken(token string) (*model.User, error)

func IncDialogPlayCount

func IncDialogPlayCount(dialogID string) (bool, error)

func IndexDialogs

func IndexDialogs(languageID string, dialogs []*model.Dialog) error

func IndexTranslations

func IndexTranslations(title *model.Title, translations []*model.Translation) error

func Load

func Load()

func RandomDialogs

func RandomDialogs(languageID, translationLanguageID string, page, pageSize int) (int, []*model.Dialog, error)

func UpdateUser

func UpdateUser(user *model.User) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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