Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Item ¶
type Item struct {
// contains filtered or unexported fields
}
Item is a policy item, a part of Item
type Policy ¶
type Policy struct {
// contains filtered or unexported fields
}
Policy is a real policy executor
func Parse ¶
Parse create a new FilterPolicy from a given specification eg. 1,2,3,25,100 will pass 1,2,3,25 and 100. others will not
func (*Policy) PassedBefore ¶
PassedBefore 判断在 current 时间之前,是否存在一个时间点满足策略
Click to show internal directories.
Click to hide internal directories.