bin

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMetricsCollector

func NewMetricsCollector(config common.MetricsFeatureConfig) (goutils.MetricsCollector, error)

NewMetricsCollector define metrics collector

@param config common.MetricsFeatureConfig - metrics framework config
@returns new metrics collector

Types

type ControlNode

type ControlNode struct {
	MgmtAPIServer *http.Server
	VODAPIServer  *http.Server
	MetricsServer *http.Server
	// contains filtered or unexported fields
}

ControlNode system control node

func DefineControlNode

func DefineControlNode(
	parentCtxt context.Context,
	nodeName string,
	config common.ControlNodeConfig,
	psqlPassword string,
) (*ControlNode, error)

DefineControlNode setup new system control node

@param parentCtxt context.Context - parent execution context
@param nodeName string - system control node name
@param config common.ControlNodeConfig - system control node configuration
@param psqlPassword string - Postgres SQL user password
@returns new system control node

func (*ControlNode) Cleanup

func (n *ControlNode) Cleanup(ctxt context.Context) error

Cleanup stop and clean up the system control node

@param ctxt context.Context - execution context

type EdgeNode

type EdgeNode struct {
	PlaylistReceiveServer *http.Server
	VODServer             *http.Server
	MetricsServer         *http.Server
	// contains filtered or unexported fields
}

EdgeNode edge node monitoring one video source

func DefineEdgeNode

func DefineEdgeNode(
	parentCtxt context.Context, nodeName string, config common.EdgeNodeConfig,
) (EdgeNode, error)

DefineEdgeNode setup new edge node

@param parentCtxt context.Context - parent execution context
@param nodeName string - edge node name
@param config common.EdgeNodeConfig - edge node configuration
@returns new edge node

func (EdgeNode) Cleanup

func (n EdgeNode) Cleanup(ctxt context.Context) error

Cleanup stop and clean up the edge node

@param ctxt context.Context - execution context

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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