package
1.0.0-beta.2
Repository: https://github.com/vanti-dev/sc-bos.git
Documentation: pkg.go.dev

# README

Mock Device Driver

This driver allows you to configure in-memory mock devices that implement specific traits, useful for testing.

The driver config looks like this:

{
  "drivers": [
    {
      "type": "mock",
      "devices": [
        {"name": "MyDevice", "traits": [{"name": "smartcore.traits.Light"}]}
      ]
    }
  ]
}

The devices array in the config is modelled after the Metadata trait resource type, any metadata you want can be specified:

{"name": "MyDevice", "membership": {"subsystem": "Lighting"}, ...}

Caveats

Not all traits are implemented, see driver.go/newMockClient for the trait clients that are available.

# Packages

No description provided by the author

# Functions

No description provided by the author

# Constants

No description provided by the author

# Variables

No description provided by the author

# Structs

No description provided by the author