mirror of
https://github.com/stakater/Reloader.git
synced 2026-05-05 00:06:44 +00:00
* Optimize logging in reloader * Fix test case failing issue * Implement PR-19 review comments * Place the log out of loop * Fix change detection log
19 lines
372 B
Go
19 lines
372 B
Go
package handler
|
|
|
|
import (
|
|
"github.com/sirupsen/logrus"
|
|
)
|
|
|
|
// ResourceCreatedHandler contains new objects
|
|
type ResourceCreatedHandler struct {
|
|
Resource interface{}
|
|
}
|
|
|
|
// Handle processes the newly created resource
|
|
func (r ResourceCreatedHandler) Handle() error {
|
|
if r.Resource == nil {
|
|
logrus.Errorf("Resource creation handler received nil resource")
|
|
}
|
|
return nil
|
|
}
|