labcon

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: MIT Imports: 8 Imported by: 1

README

labcon

Laboratory equipment controller

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Addr string
}

func NewClient

func NewClient(addr string) *Client

func (*Client) Disconnect added in v0.0.2

func (client *Client) Disconnect(name, token string) error

func (*Client) Dispatch

func (client *Client) Dispatch(name string, op driver.Op) error

func (*Client) GetState

func (client *Client) GetState(name string, state interface{}) error

func (*Client) GetStatus

func (client *Client) GetStatus(name string) (driver.Status, error)

func (*Client) List

func (client *Client) List() ([]string, error)

func (*Client) Operation

func (client *Client) Operation(name, token string) (*driver.Op, error)

func (*Client) Register

func (client *Client) Register(name string, state interface{}) (string, error)

func (*Client) SetState

func (client *Client) SetState(name, token string, state interface{}) error

func (*Client) SetStatus

func (client *Client) SetStatus(name, token string, status driver.Status) error

type Driver

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

func NewDriver

func NewDriver(client *Client, name string, state interface{}) (Driver, error)

func (Driver) Disconnect added in v0.0.2

func (driver Driver) Disconnect() error

func (Driver) Dispatch

func (driver Driver) Dispatch(op driver.Op) error

func (Driver) GetState

func (driver Driver) GetState(state interface{}) error

func (Driver) GetStatus

func (driver Driver) GetStatus() (driver.Status, error)

func (Driver) Operation

func (driver Driver) Operation() (*driver.Op, error)

func (Driver) SetState

func (driver Driver) SetState(state interface{}) error

func (Driver) SetStatus

func (driver Driver) SetStatus(status driver.Status) error

Directories

Path Synopsis
cmd
labcon/app/repositories_mock
Package repositories_mock is a generated GoMock package.
Package repositories_mock is a generated GoMock package.
labcon/app/usecases_mock
Package usecases_mock is a generated GoMock package.
Package usecases_mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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