superviser

package
v1.6.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 New

func New(logger *zap.Logger, binary string, arguments []string) *Superviser

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{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL