etri-smartfarm-poc-controll.../interface.go

22 lines
320 B
Go
Raw Permalink Normal View History

2021-12-10 01:14:34 +00:00
package manager
type Event interface {
2021-12-10 06:45:28 +00:00
Params() map[string]interface{}
Key() interface{}
2021-12-10 01:14:34 +00:00
}
type EventHandler interface {
Handle(e Event)
}
2021-12-10 06:45:28 +00:00
type Receiver interface {
onRecv(key interface{}, params map[string]interface{})
}
type Syncronizer interface {
onSync(key interface{}, params map[string]interface{})
}
2021-12-10 08:07:20 +00:00