peripheral

package
Version: v0.0.0-...-8d3e1a0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2021 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) 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
}

Jump to

Keyboard shortcuts

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