Documentation ¶
Index ¶
- func DisallowFutureRange(startTime, endTime time.Time) error
- func DisallowZeroRange(startTime, endTime time.Time) error
- func GetOutPointFromString(chanStr string) (*wire.OutPoint, error)
- func ValidateTimeRange(startTime, endTime time.Time, checks ...ValidateRangeOption) error
- type ValidateRangeOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisallowFutureRange ¶
DisallowFutureRange is an additional check for validating time ranges which disallows ranges which are in the future.
func DisallowZeroRange ¶
DisallowZeroRange is an additional check for validating time ranges which disallows the start time and end time to be equal.
func GetOutPointFromString ¶
GetOutPointFromString gets the channel outpoint from a string.
func ValidateTimeRange ¶
func ValidateTimeRange(startTime, endTime time.Time, checks ...ValidateRangeOption) error
ValidateTimeRange checks that a start time is before an end time. It takes an optional set of additional checks, and will fail if any of them error.
Types ¶
type ValidateRangeOption ¶
ValidateRangeOption is an additional check that can be applied when validating time ranges.
Click to show internal directories.
Click to hide internal directories.