device

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package device 是 sdk/go/driverkit 的内部薄兼容层:Core(edge/server)继续使用 device.Command / device.Adapter / device.Register 等既有名字,单一实现与注册表都在 公共 driverkit 中,外部 Driver 插件只 import sdk/go/driverkit,不 import 本包。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Names

func Names() []string

Names 返回全部已注册适配器名(排序,确定性输出)。

func Register

func Register(a Adapter)

Register 注册适配器(与 driverkit 共享同一注册表)。

Types

type Adapter

type Adapter = driverkit.Adapter

类型别名(与 driverkit 完全一致,禁止在本包复制结构)。

func Get

func Get(name string) (Adapter, bool)

Get 按名取适配器。

type CapabilityProvider

type CapabilityProvider = driverkit.CapabilityProvider

类型别名(与 driverkit 完全一致,禁止在本包复制结构)。

type Command

type Command = driverkit.Command

类型别名(与 driverkit 完全一致,禁止在本包复制结构)。

type Config

type Config = driverkit.Config

类型别名(与 driverkit 完全一致,禁止在本包复制结构)。

type DescriptorProvider

type DescriptorProvider = driverkit.DescriptorProvider

类型别名(与 driverkit 完全一致,禁止在本包复制结构)。

type DescriptorSource

type DescriptorSource = driverkit.DescriptorSource

类型别名(与 driverkit 完全一致,禁止在本包复制结构)。

type Device

type Device = driverkit.Device

类型别名(与 driverkit 完全一致,禁止在本包复制结构)。

type Event

type Event = driverkit.Event

类型别名(与 driverkit 完全一致,禁止在本包复制结构)。

type State

type State = driverkit.State

类型别名(与 driverkit 完全一致,禁止在本包复制结构)。

Jump to

Keyboard shortcuts

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