package
0.0.0-20230830165756-63fd5f871c0a
Repository: https://github.com/goboolean/fetch-server.v1.git
Documentation: pkg.go.dev
# Functions
WithinDurationChecker checks validity of option when it is generated If TimeProvider is nil, then it will be initialized as CurrentTime, which uses time.Now() If you want to specify time for testing purpose, then you can use FixedTime with initializing time field value as you want.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
Option is an argument struct of Constructor of WithinDurationChecker a condition that is not included in both Inclusion and Exclusion is regarded as Exclusion.
It is a checker that checks whether the current time is within the specified duration.
# Interfaces
Here are accepted type list time.Weekday : to specify weekday repeated on weekday time.Time : to specify Date int : to specify day repteted on month or else it throws panic.
It is an interface used on WithinDurationChecker to provide time specification logic injection on testing.
# Type aliases
Example of usage is as follows: ConditionList{ time.Monday: &Condition{}, time.Parse("2006-01-02", "0000-00-00"): &Condition{}, 1 : &Condition{}, }.