service

package
v0.0.0-...-2edba2a Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Receivers  []component.ID `mapstructure:"receivers"`
	Processors []component.ID `mapstructure:"processors"`
	Exporters  []component.ID `mapstructure:"exporters"`
}

type Graph

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

func BuildGraph

func BuildGraph(ctx context.Context, set Settings) (*Graph, error)

func (*Graph) ShutdownAll

func (g *Graph) ShutdownAll(ctx context.Context) error

func (*Graph) StartAll

func (g *Graph) StartAll(ctx context.Context) error

type Service

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

func NewService

func NewService(ctx context.Context, set Settings) (*Service, error)

func (*Service) Shutdown

func (s *Service) Shutdown(ctx context.Context) error

func (*Service) Start

func (s *Service) Start(ctx context.Context) error

func (*Service) State

func (s *Service) State() State

type Settings

type Settings struct {
	ReceiverBuilder  *receiver.Builder
	ProcessorBuilder *processor.Builder
	ExporterBuilder  *exporter.Builder
	PipelineConfig   *Config
}

type State

type State int
const (
	StateStarting State = iota
	StateRunning
	StateClosing
	StateClosed
)

func (State) String

func (s State) String() string

Jump to

Keyboard shortcuts

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