time.Minute is already a duration.
Document some constants and eliminate the global vars.
Drop the metadata() method.