proteusclient

package
v0.0.0-...-726f7ef Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client represents a connection to Proteus.

func NewClient

func NewClient(host Host, poolSize, poolOverflow int, tracing bool) (*Client, error)

NewClient creates a new Proteus client connected to the given QPU server.

func (*Client) Close

func (c *Client) Close() error

Close closes the connection to Proteus.

func (*Client) GetMetrics

func (c *Client) GetMetrics() (*qpuextapi.MetricsResponse, error)

GetMetrics ...

func (*Client) Query

func (c *Client) Query(queryStmt string) (*qpuextapi.QueryResp, error)

Query ...

type Host

type Host struct {
	Name string
	Port int
}

Host represents a QPU server.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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