Documentation
¶
Index ¶
- type Superviser
- func (s *Superviser) GetLogPlugins() []logplugin.LogPlugin
- func (s *Superviser) IsRunning() bool
- func (s *Superviser) LastExitCode() int
- func (s *Superviser) LastLogLines() []string
- func (s *Superviser) LastSeenBlockNum() uint64
- func (s *Superviser) RegisterLogPlugin(plugin logplugin.LogPlugin)
- func (s *Superviser) Start(options ...nodeManager.StartOption) error
- func (s *Superviser) Stop() error
- func (s *Superviser) Stopped() <-chan struct{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Superviser ¶
type Superviser struct {
*shutter.Shutter
Binary string
Arguments []string
// Env represents the environment variables the command will run with, the `nil`
// is handled differently than the `[]string{}` empty case. In the `nil` case,
// the process inherits from the parent process. In the empty case, it starts
// without any variables set.
Env []string
Logger *zap.Logger
// contains filtered or unexported fields
}
func (*Superviser) GetLogPlugins ¶
func (s *Superviser) GetLogPlugins() []logplugin.LogPlugin
func (*Superviser) IsRunning ¶
func (s *Superviser) IsRunning() bool
func (*Superviser) LastExitCode ¶
func (s *Superviser) LastExitCode() int
func (*Superviser) LastLogLines ¶
func (s *Superviser) LastLogLines() []string
func (*Superviser) LastSeenBlockNum ¶
func (s *Superviser) LastSeenBlockNum() uint64
func (*Superviser) RegisterLogPlugin ¶
func (s *Superviser) RegisterLogPlugin(plugin logplugin.LogPlugin)
func (*Superviser) Start ¶
func (s *Superviser) Start(options ...nodeManager.StartOption) error
func (*Superviser) Stop ¶
func (s *Superviser) Stop() error
func (*Superviser) Stopped ¶
func (s *Superviser) Stopped() <-chan struct{}
Click to show internal directories.
Click to hide internal directories.