core

package
v0.0.0-...-65d0321 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BagMan

type BagMan struct {
	Size   int    //包的大小
	OutDir string //输出目录
}

*

打包

type ImapClient

type ImapClient struct {
	Server string //服务端地址
	Port   int    //端口
	User   string //用户
	Pwd    string //密码或授权码
	// contains filtered or unexported fields
}

func (*ImapClient) Connect

func (this *ImapClient) Connect()

func (*ImapClient) Disconnect

func (this *ImapClient) Disconnect()

func (*ImapClient) GetBoxList

func (this *ImapClient) GetBoxList() []string

func (*ImapClient) GetMessage

func (this *ImapClient) GetMessage(box string)

type Job

type Job struct {
	Name    string
	Cron    string
	Handler JobHandler
}

定时任务管理

type JobExecuter

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

job实现

func (*JobExecuter) AddJob

func (this *JobExecuter) AddJob(job *Job)

func (*JobExecuter) Start

func (this *JobExecuter) Start(d time.Duration)

func (*JobExecuter) Stop

func (this *JobExecuter) Stop()

type JobHandler

type JobHandler func()

任务handler 方法

type JobManager

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

func (*JobManager) Add

func (this *JobManager) Add(job *Job)

func (*JobManager) Start

func (this *JobManager) Start(m int64)

func (*JobManager) Stop

func (this *JobManager) Stop()

type TxtBagMan

type TxtBagMan struct {
	BagMan
}

func (*TxtBagMan) MakeBag

func (this *TxtBagMan) MakeBag(filename []string) []string

Jump to

Keyboard shortcuts

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