Add String to Runtime interface
This commit is contained in:
parent
1b9cabd654
commit
a1d5d6831f
@ -17,6 +17,8 @@ var (
|
|||||||
|
|
||||||
// Runtime is a service runtime manager
|
// Runtime is a service runtime manager
|
||||||
type Runtime interface {
|
type Runtime interface {
|
||||||
|
// String describes runtime
|
||||||
|
String() string
|
||||||
// Init initializes runtime
|
// Init initializes runtime
|
||||||
Init(...Option) error
|
Init(...Option) error
|
||||||
// Create registers a service
|
// Create registers a service
|
||||||
|
@ -170,6 +170,8 @@ func (s *service) Wait() {
|
|||||||
s.Metadata["status"] = "error"
|
s.Metadata["status"] = "error"
|
||||||
s.Metadata["error"] = err.Error()
|
s.Metadata["error"] = err.Error()
|
||||||
s.err = err
|
s.err = err
|
||||||
|
} else {
|
||||||
|
s.Metadata["status"] = "done"
|
||||||
}
|
}
|
||||||
|
|
||||||
// no longer running
|
// no longer running
|
||||||
|
Loading…
Reference in New Issue
Block a user