Documentation ¶
Index ¶
- func NewBilibiliVideo(tx *gorm.DB) idl.BilibiliVideoRepository
- func NewSessionMysqlImpl(tx *gorm.DB) idl.TokenStorage
- func NewTokenStorage(tx *gorm.DB) idl.TokenStorage
- func NewUser(tx *gorm.DB) idl.UserRepository
- func NewUserMysqlImpl(tx *gorm.DB) idl.UserRepository
- type BilibiliVideoMysqlImpl
- func (impl *BilibiliVideoMysqlImpl) FindAllByBvidList(bvidList []string) (list []*idl.BilibiliVideo, err error)
- func (impl *BilibiliVideoMysqlImpl) FindAllByPubDate(from, to time.Time, page, size int64) (list []*idl.BilibiliVideo, total int64, err error)
- func (impl *BilibiliVideoMysqlImpl) Save(e *idl.BilibiliVideo) error
- func (impl *BilibiliVideoMysqlImpl) Search(queryItems []query_parser.QueryItem, order idl.BilibiliVideoOrder, ...) (list []*idl.BilibiliVideo, total int64, err error)
- func (impl *BilibiliVideoMysqlImpl) Shield(bvid string) error
- type SessionMysqlImpl
- type UserMysqlImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBilibiliVideo ¶
func NewBilibiliVideo(tx *gorm.DB) idl.BilibiliVideoRepository
func NewSessionMysqlImpl ¶
func NewSessionMysqlImpl(tx *gorm.DB) idl.TokenStorage
func NewTokenStorage ¶
func NewTokenStorage(tx *gorm.DB) idl.TokenStorage
func NewUserMysqlImpl ¶
func NewUserMysqlImpl(tx *gorm.DB) idl.UserRepository
Types ¶
type BilibiliVideoMysqlImpl ¶
type BilibiliVideoMysqlImpl struct {
// contains filtered or unexported fields
}
func (*BilibiliVideoMysqlImpl) FindAllByBvidList ¶
func (impl *BilibiliVideoMysqlImpl) FindAllByBvidList(bvidList []string) (list []*idl.BilibiliVideo, err error)
func (*BilibiliVideoMysqlImpl) FindAllByPubDate ¶
func (impl *BilibiliVideoMysqlImpl) FindAllByPubDate(from, to time.Time, page, size int64) (list []*idl.BilibiliVideo, total int64, err error)
func (*BilibiliVideoMysqlImpl) Save ¶
func (impl *BilibiliVideoMysqlImpl) Save(e *idl.BilibiliVideo) error
func (*BilibiliVideoMysqlImpl) Search ¶
func (impl *BilibiliVideoMysqlImpl) Search(queryItems []query_parser.QueryItem, order idl.BilibiliVideoOrder, page, size int64) (list []*idl.BilibiliVideo, total int64, err error)
func (*BilibiliVideoMysqlImpl) Shield ¶
func (impl *BilibiliVideoMysqlImpl) Shield(bvid string) error
type SessionMysqlImpl ¶
type SessionMysqlImpl struct {
// contains filtered or unexported fields
}
func (*SessionMysqlImpl) ClearTokens ¶
func (impl *SessionMysqlImpl) ClearTokens(token *idl.Token) error
func (*SessionMysqlImpl) Del ¶
func (impl *SessionMysqlImpl) Del(key string) error
type UserMysqlImpl ¶
type UserMysqlImpl struct {
// contains filtered or unexported fields
}
func (*UserMysqlImpl) Create ¶
func (impl *UserMysqlImpl) Create(u *idl.User) (isNew bool, err error)
func (*UserMysqlImpl) FindUserByEmail ¶
func (impl *UserMysqlImpl) FindUserByEmail(email string) (*idl.User, error)
func (*UserMysqlImpl) FindUserByID ¶
func (impl *UserMysqlImpl) FindUserByID(uid uint64) (*idl.User, error)
Click to show internal directories.
Click to hide internal directories.