v1

package
v1.3.30 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CronType_name = map[int32]string{
		0:  "UNKNOWN",
		1:  "SECOND",
		2:  "MINUTE",
		3:  "HOUR",
		4:  "DAILY",
		5:  "WEEK",
		6:  "MONTH",
		7:  "YEAR",
		8:  "MONDAY",
		9:  "TUESDAY",
		10: "WEDNESDAY",
		11: "THURSDAY",
		12: "FRIDAY",
		13: "SATURDAY",
		14: "SUNDAY",
	}
	CronType_value = map[string]int32{
		"UNKNOWN":   0,
		"SECOND":    1,
		"MINUTE":    2,
		"HOUR":      3,
		"DAILY":     4,
		"WEEK":      5,
		"MONTH":     6,
		"YEAR":      7,
		"MONDAY":    8,
		"TUESDAY":   9,
		"WEDNESDAY": 10,
		"THURSDAY":  11,
		"FRIDAY":    12,
		"SATURDAY":  13,
		"SUNDAY":    14,
	}
)

Enum value maps for CronType.

View Source
var File_system_v1_cron_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CronType

type CronType int32

定义 CronType 计划任务 枚举

const (
	CronType_UNKNOWN   CronType = 0  // 未知类型
	CronType_SECOND    CronType = 1  // 每秒触发一次
	CronType_MINUTE    CronType = 2  // 每分钟触发一次
	CronType_HOUR      CronType = 3  // 每小时触发一次
	CronType_DAILY     CronType = 4  // 每天触发一次
	CronType_WEEK      CronType = 5  // 每周触发一次
	CronType_MONTH     CronType = 6  // 每月触发一次
	CronType_YEAR      CronType = 7  // 每年触发一次
	CronType_MONDAY    CronType = 8  // 每周一触发一次
	CronType_TUESDAY   CronType = 9  // 每周二触发一次
	CronType_WEDNESDAY CronType = 10 // 每周三触发一次
	CronType_THURSDAY  CronType = 11 // 每周四触发一次
	CronType_FRIDAY    CronType = 12 // 每周五触发一次
	CronType_SATURDAY  CronType = 13 // 每周六触发一次
	CronType_SUNDAY    CronType = 14 // 每周日触发一次
)

func (CronType) Descriptor

func (CronType) Descriptor() protoreflect.EnumDescriptor

func (CronType) Enum

func (x CronType) Enum() *CronType

func (CronType) EnumDescriptor deprecated

func (CronType) EnumDescriptor() ([]byte, []int)

Deprecated: Use CronType.Descriptor instead.

func (CronType) Number

func (x CronType) Number() protoreflect.EnumNumber

func (CronType) String

func (x CronType) String() string

func (CronType) Type

Jump to

Keyboard shortcuts

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