Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeStartable ¶
func MakeStartable(startFunc func() error, stopFunc func()) *startableWrapper
Types ¶
type Startable ¶
type Startable struct {
// contains filtered or unexported fields
}
Exported to support embedding
func NewStartable ¶
func NewStartable(startables ...StartableIfc) *Startable
func (*Startable) AddStartables ¶
func (r *Startable) AddStartables(startables ...StartableIfc) *Startable
type StartableIfc ¶
type StartableIfc interface {
AddStartables(startables ...StartableIfc) *Startable
Start() error
IsStarted() bool
Stop()
}
Click to show internal directories.
Click to hide internal directories.