cronx

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StandardParser

func StandardParser() cron.Parser

StandardParser 애플리케이션의 표준 Cron 표현식 파서 구현체를 반환합니다.

이 파서는 초 단위를 포함하는 6필드 확장 형식을 사용하며, 표준 5필드 형식은 지원하지 않습니다.

지원 스펙:

  • 필드 순서: [초] [분] [시] [일] [월] [요일]
  • 특수 표현식: @daily, @hourly, @every <duration> 등 (Descriptor)

예시:

  • "0 */5 * * * *" : 매 5분 0초마다 실행 (0초 시점)
  • "@daily" : 매일 자정에 실행

func Validate

func Validate(spec string) error

Validate Cron 표현식의 유효성을 검사합니다.

이 함수는 표준 Linux Cron(5필드)이 아닌, 초(Seconds) 단위를 포함하는 Extended/Quartz 포맷(6필드)을 기준으로 검증합니다. 예: "0 30 * * * *" (매시간 30분 0초)

Types

This section is empty.

Jump to

Keyboard shortcuts

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