mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-27 05:15:47 +00:00
19 lines
266 B
Go
19 lines
266 B
Go
package common
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type Module interface {
|
|
Id() string
|
|
Type() string
|
|
Start(context.Context) error
|
|
Stop()
|
|
Output(context.Context, any) error
|
|
}
|
|
|
|
type KeyValueModule interface {
|
|
Get(key string) (any, error)
|
|
Set(key string, value any) error
|
|
}
|