Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	*manager.BaseManager
	// contains filtered or unexported fields
}

func NewManager

func NewManager(
	parentCtx context.Context,
	name string,
	connectivityManager connectivity.Manager,
	options *Options,
) *Manager

func (*Manager) Close

func (m *Manager) Close()

    Close the metrics manager

    func (*Manager) CollectMetrics

    func (m *Manager) CollectMetrics(peripheralName string) error

    func (*Manager) Operate

    func (m *Manager) Operate(peripheralName, operationName string, data []byte, out io.Writer) error

    func (*Manager) Start

    func (m *Manager) Start() error

      nolint:gocyclo

      type Options

      type Options struct {
      	MetricsReporters map[string]*aranyagopb.PeripheralEnsureCmd
      	Peripherals      map[string]*aranyagopb.PeripheralEnsureCmd
      }