Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action interface {
Do() error
}
Action is an interface that should be implemented by all Watch types. It simply defines a Do() function that does whatever the Action is meant to do.
type ActionBase ¶
type ActionBase struct {
Name string `json:"name"`
}
ActionBase should be included by all Action types as an embedded struct (anonymous field). It provides all fields that should be present in all Action implementations.
Click to show internal directories.
Click to hide internal directories.