broadcast/runnable.go

21 lines
435 B
Go

package broadcast
import (
"context"
"errors"
)
var (
ErrAlreadyRunning = errors.New("The process is already running")
ErrNotRunning = errors.New("The process is not running")
ErrCannotStop = errors.New("The process cannot be stopped")
)
type Runnable interface {
Init(context.Context) error
Start(context.Context) error
Stop(context.Context) error
Logs(context.Context) []string
Liveness(context.Context) error
}