()
| 68 | } |
| 69 | |
| 70 | func (a *API) Now() time.Time { |
| 71 | if a.overrideTime != nil { |
| 72 | return a.overrideTime() |
| 73 | } |
| 74 | |
| 75 | return time.Now() |
| 76 | } |
| 77 | |
| 78 | // NewAPI instantiates a new REST API |
| 79 | func NewAPI(globalConfig *conf.GlobalConfiguration, db *storage.Connection, opt ...Option) *API { |
no outgoing calls