peripheral

package
v0.0.0-...-f12882f Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SampleConfig

type SampleConfig struct {
	Foo string
	Bar int32
	TLS *tls.Config
}

type SamplePeripheral

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

func (*SamplePeripheral) Close

func (d *SamplePeripheral) Close(ctx context.Context)

func (*SamplePeripheral) CollectMetrics

func (d *SamplePeripheral) CollectMetrics(
	ctx context.Context,
	param map[string]string,
) ([]*arhatgopb.PeripheralMetricsMsg_Value, error)

func (*SamplePeripheral) Operate

func (d *SamplePeripheral) Operate(
	ctx context.Context,
	params map[string]string,
	data []byte,
) ([][]byte, error)

type SamplePeripheralConnector

type SamplePeripheralConnector struct{}

func (*SamplePeripheralConnector) Connect

func (c *SamplePeripheralConnector) Connect(
	ctx context.Context,
	target string,
	params map[string]string,
	tlsConfig *arhatgopb.TLSConfig,
) (extperipheral.Peripheral, error)

Jump to

Keyboard shortcuts

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