Documentation
¶
Overview ¶
Package schedule decides when a node offers its models to the network: the owner's serving hours, such as overnight or at weekends. It knows only about the clock; the agent applies the answer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Schedule ¶
type Schedule struct {
// contains filtered or unexported fields
}
Schedule is a set of serving windows in one time zone. A nil Schedule is always open, which is the agent's default.
func Parse ¶
Parse reads windows of the form "22:00-07:00" (every day) or "mon-fri@20:00-07:00" and "sat,sun@00:00-24:00". An empty tz means the machine's local time; otherwise it is an IANA name such as "Asia/Dubai".
func (*Schedule) Next ¶
Next returns the first minute after t at which Open changes, and false when it never does, as with every day 00:00-24:00.