validators

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

The purpose of the package filter is to reduce the download to the specified files by filtering through the configuration's files, downloading only the ones that match the supplied pattern given via --filter flag.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateTime

func ValidateTime(fromData time.Time)

This function is used to validate the provided time. It checks if the provided time is within the range of the first available date (2018-01-01) and the current date minus 3 days. If the provided time is outside of this range, it will log a fatal error message. This function is useful for ensuring that the provided time is within a certain range of dates, potentially to prevent users from requesting data that may not exist or is not available.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL