manager_pipe

package
v2.0.7-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInstance

func NewInstance(pipeName string, nodeName string, manager *Manager, log *logrus.Entry) *instance

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager is pipeline instance manager. If there is a pipeline bound to the current node, run an instance will also stop inbound instance on the current node

func New

func New(log *logrus.Entry, n *node.Node) (m *Manager)

New returns a new Manager

func (*Manager) Add

func (m *Manager) Add(ctx context.Context, pipeName string)

func (*Manager) Close

func (m *Manager) Close()

func (*Manager) Closed

func (m *Manager) Closed() chan struct{}

func (*Manager) CompleteClose

func (m *Manager) CompleteClose()

func (*Manager) Get

func (m *Manager) Get(pipeName string) *instance

func (*Manager) Remove

func (m *Manager) Remove(pipeName string)

func (*Manager) Run

func (m *Manager) Run(ctx context.Context)

Run start woking

Jump to

Keyboard shortcuts

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