bp

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2025 License: MIT Imports: 8 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 {
	WsPort int // websocket port to start from
}

Config conifgures Manager

type Manager

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

Manager keeps track of Buttplug resources

func NewManager

func NewManager(config Config, logger *slog.Logger) (*Manager, error)

NewManager returns a new buttplug.Manager given a Config. Returns nil and an error if any.

func (*Manager) GetConfig

func (m *Manager) GetConfig() Config

func (*Manager) GetConnection

func (m *Manager) GetConnection() *buttplug.Websocket

func (*Manager) GetDeviceManager

func (m *Manager) GetDeviceManager() *device.Manager

Jump to

Keyboard shortcuts

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