Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerCron ¶
type ServerCron struct {
// contains filtered or unexported fields
}
func NewServerCron ¶
func NewServerCron() *ServerCron
func (*ServerCron) AddCommonTask ¶
func (s *ServerCron) AddCommonTask(name string, schedule string, f func()) (err error)
func (*ServerCron) AddTask ¶
func (s *ServerCron) AddTask(name string, intervalSecond int64, f func())
func (*ServerCron) Init ¶
func (s *ServerCron) Init()
func (*ServerCron) RemoveTask ¶
func (s *ServerCron) RemoveTask(name string)
Click to show internal directories.
Click to hide internal directories.