usb

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DeviceClassWhitelist []string `json:"deviceClassWhitelist,omitempty"`
	DeviceLabelFields    []string `json:"deviceLabelFields,omitempty"`
}

type Source

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

Implement FeatureSource interface

func (Source) Discover

func (s Source) Discover() (source.Features, error)

Discover features

func (*Source) GetConfig

func (s *Source) GetConfig() source.Config

GetConfig method of the FeatureSource interface

func (Source) Name

func (s Source) Name() string

Return name of the feature source

func (*Source) NewConfig

func (s *Source) NewConfig() source.Config

NewConfig method of the FeatureSource interface

func (*Source) SetConfig

func (s *Source) SetConfig(conf source.Config)

SetConfig method of the FeatureSource interface

Jump to

Keyboard shortcuts

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