Documentation ¶
Index ¶
Constants ¶
View Source
const ( IntervalJsonCodecFlag string = "_internal_json_codec" // IntervalXmlCodecFlag string = "_internal_xml_codec" IntervalYamlCodecFlag string = "_internal_yaml_codec" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InternalJsonCodec ¶
type InternalJsonCodec struct{}
func (*InternalJsonCodec) Marshal ¶
func (c *InternalJsonCodec) Marshal(in interface{}) (out []byte, err error)
func (*InternalJsonCodec) Unmarshal ¶
func (c *InternalJsonCodec) Unmarshal(data []byte, v interface{}) error
type InternalYamlCodec ¶
type InternalYamlCodec struct{}
NOTE: Not support XML InternalXmlCodec struct{}
func (*InternalYamlCodec) Marshal ¶
func (c *InternalYamlCodec) Marshal(in interface{}) (out []byte, err error)
func (*InternalYamlCodec) Unmarshal ¶
func (c *InternalYamlCodec) Unmarshal(data []byte, v interface{}) error
type Job ¶
type Job struct { Name string `json:"name" yaml:"name" validate:"required"` Cron string `json:"cron" yaml:"cron" validate:"omitempty,cron"` RetryTimes int `json:"retryTimes,omitempty" yaml:"retryTimes,omitempty" validate:"min=0"` Tasks []Task `json:"tasks" yaml:"tasks" validate:"required,dive,required"` }
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager() *Manager
func (*Manager) RemoveHandler ¶
Click to show internal directories.
Click to hide internal directories.