redis_dao

package
v0.0.0-...-73f8a9c Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWhiteListDao

func NewWhiteListDao() redis.WhiteListDao

Types

type TaskDaoImpl

type TaskDaoImpl struct {
}
var Task TaskDaoImpl

func (TaskDaoImpl) AddTask

func (TaskDaoImpl) AddTask(db *gorm.DB, task *redis.RedisTask) (int64, error)

func (TaskDaoImpl) GetTask

func (TaskDaoImpl) GetTask(db *gorm.DB, id int64) (*redis.RedisTask, error)

func (TaskDaoImpl) ListRedisTaskByTaskID

func (TaskDaoImpl) ListRedisTaskByTaskID(db *gorm.DB, id int64) ([]redis.RedisTask, error)

func (TaskDaoImpl) ListTask

func (TaskDaoImpl) ListTask(db *gorm.DB, info request.SortPageInfo, isDBA bool, status []string) ([]redis.RedisTask, int64, error)

func (TaskDaoImpl) UpdateTask

func (TaskDaoImpl) UpdateTask(db *gorm.DB, task *redis.RedisTask) error

type WhiteListDao

type WhiteListDao struct{}

func (*WhiteListDao) AddWhiteList

func (dao *WhiteListDao) AddWhiteList(ctx context.Context, db *gorm.DB, WhiteList *redis.WhiteList) (int64, error)

func (*WhiteListDao) DelWhiteList

func (dao *WhiteListDao) DelWhiteList(ctx context.Context, db *gorm.DB, id int64) error

func (*WhiteListDao) ListWhiteList

func (dao *WhiteListDao) ListWhiteList(ctx context.Context, db *gorm.DB, cmdType string) ([]redis.WhiteList, error)

Jump to

Keyboard shortcuts

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