service

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ISO8601Date = "2006-01-02"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func New

func New(c *conf.Config) (s *Service)

func (*Service) Close

func (s *Service) Close()

func (*Service) Ping

func (s *Service) Ping(c context.Context) (err error)

func (*Service) QueryUndoneTaskLogdate

func (s *Service) QueryUndoneTaskLogdate(c context.Context, mid int64, platform int, sourceType int) (logDate int64, err error)

QueryTaskState is query satisfied logDate from memcache if key exist,Otherwise query from db.

func (*Service) SendEmail

func (s *Service) SendEmail(c context.Context, taskID int64) (err error)

SendEmail is send the finished Task info to reciever

func (*Service) UpdateTaskState

func (s *Service) UpdateTaskState(c context.Context, mid int64, build string, platform int, taskState int, reason string) (err error)

UpdateTaskState is update task set state = 1 ,insert taskLog to table task_log and remove memcache.

Jump to

Keyboard shortcuts

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