runtime: remove unnecessary intermediate type, Status
Signed-off-by: Burcu Dogan <jbd@google.com>
This commit is contained in:
parent
1ade1f6d81
commit
167219101f
5 changed files with 11 additions and 20 deletions
|
@ -15,17 +15,13 @@ type Process interface {
|
|||
Signal(os.Signal) error
|
||||
}
|
||||
|
||||
type Status string
|
||||
type State string
|
||||
|
||||
const (
|
||||
Paused Status = "paused"
|
||||
Running Status = "running"
|
||||
Paused = State("paused")
|
||||
Running = State("running")
|
||||
)
|
||||
|
||||
type State struct {
|
||||
Status Status
|
||||
}
|
||||
|
||||
type Console interface {
|
||||
io.ReadWriter
|
||||
io.Closer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue