peripheral

package
v0.0.0-...-735b8cc Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

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) CollectPeripheralMetrics

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

func (*Manager) OperatePeripheral

func (m *Manager) OperatePeripheral(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
}

Jump to

Keyboard shortcuts

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