repository

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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 NewUser

func NewUser(tx *gorm.DB) idl.UserRepository

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 (*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

func (*SessionMysqlImpl) Get

func (impl *SessionMysqlImpl) Get(key string) (token *idl.Token, err error)

func (*SessionMysqlImpl) Set

func (impl *SessionMysqlImpl) Set(key string, token *idl.Token) 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)

func (*UserMysqlImpl) Update

func (impl *UserMysqlImpl) Update(u *idl.User, fields ...string) error

Jump to

Keyboard shortcuts

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