Documentation ¶
Overview ¶
功能:时间开关-配置项 说明:
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerStart ¶
type HandlerStart func() //开启函数
type HandlerStop ¶
type HandlerStop func() //停止函数
type Option ¶
type Option func(*TimeSwitch)
type TimeSwitch ¶
TimeSwitch 时间开关
func NewTimeSwitch ¶
func NewTimeSwitch(stop_time string, start_time string, options ...Option) *TimeSwitch
NewTimeSwitch 创建
Click to show internal directories.
Click to hide internal directories.