model

package
v0.0.0-...-156939b Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PutCourseListToDatabaseTask

type PutCourseListToDatabaseTask struct {
	// contains filtered or unexported fields
}

func NewPutCourseListToDatabaseTask

func NewPutCourseListToDatabaseTask(ctx context.Context, db *db.Database, id string, sf *utils.Snowflake,
	term string, courses []*jwch.Course,
) *PutCourseListToDatabaseTask

func (*PutCourseListToDatabaseTask) Execute

func (t *PutCourseListToDatabaseTask) Execute() error

type SetCoursesCacheTask

type SetCoursesCacheTask struct {
	// contains filtered or unexported fields
}

func NewSetCoursesCacheTask

func NewSetCoursesCacheTask(ctx context.Context, cache *cache.Cache, userID, term string, courses []*jwch.Course) *SetCoursesCacheTask

func (*SetCoursesCacheTask) Execute

func (t *SetCoursesCacheTask) Execute() error

type SetScoresCacheTask

type SetScoresCacheTask struct {
	// contains filtered or unexported fields
}

SetScoresCacheTask 定义

func NewSetScoresCacheTask

func NewSetScoresCacheTask(key string, scores []*jwch.Mark, cache *cache.Cache, context context.Context) *SetScoresCacheTask

func (*SetScoresCacheTask) Execute

func (t *SetScoresCacheTask) Execute() error

type SetTermsCacheTask

type SetTermsCacheTask struct {
	// contains filtered or unexported fields
}

func NewSetTermsCacheTask

func NewSetTermsCacheTask(ctx context.Context, cache *cache.Cache, userID string, terms []string) *SetTermsCacheTask

func (*SetTermsCacheTask) Execute

func (t *SetTermsCacheTask) Execute() error

Jump to

Keyboard shortcuts

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