server

package
v0.0.0-...-5d28b2a Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Server

func Server(confArg config.ConfJSON) error

Server ...

Types

type QPUAPI

type QPUAPI interface {
	Query(pbQPU.QPU_QueryServer, *pbQPU.RequestStream) error
	GetConfig() (*pbQPU.ConfigResponse, error)
	Cleanup()
	GetDataTransfer() float32
}

QPUAPI specifies the API of a QPU

type QPUServer

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

QPUServer implements a generic QPU server api: config:

func (*QPUServer) GetConfig

GetConfig constructs and returns a structure describing the configuration of a QPU

func (*QPUServer) GetDataTransfer

func (s *QPUServer) GetDataTransfer(ctx context.Context, in *pbQPU.GetDataRequest) (*pbQPU.DataTransferResponse, error)

func (*QPUServer) Query

func (s *QPUServer) Query(stream pbQPU.QPU_QueryServer) error

Query implements the Query method of a generic QPU Calls specific implementations of the Query method

Jump to

Keyboard shortcuts

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