virtual_assistant

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ID           string               `json:"id" yaml:"id"`
	Description  string               `json:"description" yaml:"description"`
	Enabled      bool                 `json:"enabled" yaml:"enabled"`
	Labels       cmap.CustomStringMap `json:"labels" yaml:"labels"`
	DeviceFilter cmap.CustomStringMap `json:"deviceFilter" yaml:"deviceFilter"`
	ProviderType string               `json:"providerType" yaml:"providerType"`
	Config       cmap.CustomMap       `json:"config" yaml:"config"`
	State        *types.State         `json:"state" yaml:"state"`
	ModifiedOn   time.Time            `json:"modifiedOn" yaml:"modifiedOn"`
}

Config of virtual assistant

type Plugin

type Plugin interface {
	Start() error
	Stop() error
	Config() *Config
	ServeHTTP(http.ResponseWriter, *http.Request)
	Name() string
}

Virtual Assistant plugin interface

Jump to

Keyboard shortcuts

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