apiprocessor

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: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIProcessor

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

APIProcessor implements the libqpu.APIProcessor interface. It provides access to the methods implemented by libqpu.QPUClass.

func NewProcessor

func NewProcessor(qpu *libqpu.QPU, catchUpDoneCh chan int) (*APIProcessor, error)

NewProcessor creates an instance of APIProcessor. It initiates the libqpu.QPUClass corresponding to the QPU's class.

func (*APIProcessor) GetConfig

GetConfig is responsible for the top-level processing of invocation of the GetConfig API.

func (*APIProcessor) Query

func (s *APIProcessor) Query(queryReq libqpu.QueryRequest, stream libqpu.RequestStream) error

Query is responsible for the top-level processing of invocation of the Query API.

func (*APIProcessor) QuerySubscribe

func (s *APIProcessor) QuerySubscribe(queryReq *qpuextapi.QueryReq, stream qpuapi.QPUAPI_QuerySubscribeServer) error

QuerySubscribe ...

func (*APIProcessor) QueryUnary

func (s *APIProcessor) QueryUnary(req libqpu.QueryRequest, parentSpan opentracing.Span) (*qpuextapi.QueryResp, error)

QueryUnary ...

Jump to

Keyboard shortcuts

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