Documentation
¶
Overview ¶
Package mlabsrv provides an entry point into the Docker-based matlab server.
Index ¶
- func Call[U, T any](cli *Client, fctname string, req T) (resp U, err error)
- type Client
- func (cli *Client) AddPath(dir string) error
- func (cli *Client) Close() error
- func (cli *Client) Import(fname string, data []byte) error
- func (cli *Client) Ls(dir string) ([]string, error)
- func (cli *Client) Ping() error
- func (cli *Client) Recv() (resp Reply, err error)
- func (cli *Client) Send(cmd Cmd) error
- type Cmd
- type Config
- type Exception
- type Reply
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client maintains a connection to a MATLAB server.
func (*Client) AddPath ¶
AddPath adds a directory (as mounted on the Docker container) to the list of directories for imported code on the MATLAB server.
func (*Client) Import ¶
Import installs the provided data as the provided named file on the remote MATLAB server.
Import effectively uploads the named file on the MATLAB server.
func (*Client) Ls ¶
Ls lists the content of the provided directory (as mounted on the remote MATLAB server).
type Cmd ¶
type Cmd struct {
Name string `json:"name"`
Args json.RawMessage `json:"args"`
}
Cmd holds arguments to a named command sent to MATLAB.
type Config ¶
type Config struct {
MatlabSrcDir string
MathWorksDir string
MatlabConnectorDir string
MatlabUserDir string
WithGUI bool
Port int
}
Matlab configuration options.
var DefaultConfig Config
type Exception ¶ added in v0.2.0
type Exception struct {
Identifier string `json:"identifier"`
Message string `json:"message"`
Cause json.RawMessage `json:"cause"`
Stack []matlabStack `json:"stack"`
Correction json.RawMessage `json:"Correction"`
}
Exception stores informations about MATLAB exceptions.
Click to show internal directories.
Click to hide internal directories.