Download notification/eventhandler/noop/handler.go from Leon4gr45/openmeter: direct link, hf CLI and curl.
- Browser
- Download file 484 Bytes
-
https://huggingface.co/spaces/Leon4gr45/openmeter/resolve/main/notification/eventhandler/noop/handler.go
- Command line
-
hf download hf://spaces/Leon4gr45/openmeter/notification/eventhandler/noop/handler.go
-
curl -L -o handler.go https://huggingface.co/spaces/Leon4gr45/openmeter/resolve/main/notification/eventhandler/noop/handler.go
484 Bytes
| package noop | |
| import ( | |
| "context" | |
| "github.com/openmeterio/openmeter/openmeter/notification" | |
| ) | |
| var _ notification.EventHandler = (*Handler)(nil) | |
| type Handler struct{} | |
| func (h Handler) Dispatch(_ context.Context, _ *notification.Event) error { | |
| return nil | |
| } | |
| func (h Handler) Reconcile(_ context.Context) error { | |
| return nil | |
| } | |
| func (h Handler) Start() error { | |
| return nil | |
| } | |
| func (h Handler) Close() error { | |
| return nil | |
| } | |
| func New() (*Handler, error) { | |
| return &Handler{}, nil | |
| } | |