handler

package
v0.0.0-...-a9f1d25 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProcgoServer

type ProcgoServer struct {
	proto.UnimplementedProcgoServer
	Services       []*pkg.Service
	NewServiceChan chan *pkg.Service
	// ErrChan is used as done channel as well if error is nil
	ErrChan  chan error
	KillChan chan os.Signal
}

func NewProcgoServer

func NewProcgoServer() ProcgoServer

func (*ProcgoServer) KillAll

func (s *ProcgoServer) KillAll(_ context.Context, _ *emptypb.Empty) (*emptypb.Empty, error)

func (*ProcgoServer) List

func (*ProcgoServer) Logs

func (s *ProcgoServer) Logs(definitions *proto.AllOrServices, stream proto.Procgo_LogsServer) error

func (*ProcgoServer) Ping

func (*ProcgoServer) Restart

func (s *ProcgoServer) Restart(_ context.Context, definitions *proto.Services) (*emptypb.Empty, error)

func (*ProcgoServer) Start

func (s *ProcgoServer) Start(_ context.Context, definitions *proto.Services) (*emptypb.Empty, error)

func (*ProcgoServer) Stop

func (s *ProcgoServer) Stop(_ context.Context, definitions *proto.Services) (*emptypb.Empty, error)

Jump to

Keyboard shortcuts

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