Documentation ¶
Index ¶
- func AddReader(r Reader)
- func AddWriter(w Writer)
- func WriteConfig(restart bool) bool
- type DurationType
- type Error
- type FileMode
- func (mode FileMode) MarshalJSON() ([]byte, error)
- func (mode FileMode) MarshalYAML() (interface{}, error)
- func (mode FileMode) String() string
- func (mode *FileMode) UnmarshalYAML(node *yaml.Node) (err error)
- func (mode FileMode) Value() os.FileMode
- func (mode FileMode) WithDefault(dv os.FileMode) os.FileMode
- func (mode FileMode) WithDirDefault() os.FileMode
- func (mode FileMode) WithFileDefault() os.FileMode
- type Reader
- type SizeType
- type Task
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteConfig ¶
WriteConfig collects configuration changes and writes configuration file
Types ¶
type DurationType ¶
func (DurationType) MarshalJSON ¶
func (d DurationType) MarshalJSON() ([]byte, error)
func (DurationType) MarshalYAML ¶
func (d DurationType) MarshalYAML() (interface{}, error)
func (DurationType) String ¶
func (d DurationType) String() string
func (*DurationType) UnmarshalYAML ¶
func (d *DurationType) UnmarshalYAML(node *yaml.Node) error
func (DurationType) Value ¶
func (d DurationType) Value() time.Duration
type FileMode ¶
func (FileMode) MarshalJSON ¶
func (FileMode) MarshalYAML ¶
func (*FileMode) UnmarshalYAML ¶
func (FileMode) WithDirDefault ¶
func (FileMode) WithFileDefault ¶
type SizeType ¶
type SizeType int64
func (SizeType) MarshalJSON ¶
func (SizeType) MarshalYAML ¶
func (*SizeType) UnmarshalYAML ¶
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
Task struct
func (*Task) Close ¶
func (t *Task) Close(ctx *tasks.ServiceTaskContext) error
Close - ServiceTask::Close method
func (*Task) Open ¶
func (t *Task) Open(ctx *tasks.ServiceTaskContext) error
Open - ServiceTask::Open method
func (*Task) Stop ¶
func (t *Task) Stop(ctx *tasks.ServiceTaskContext)
Stop - ServiceTask::Stop method
Click to show internal directories.
Click to hide internal directories.