rpcserver

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	qpuapi.UnimplementedQPUAPIServer
	// contains filtered or unexported fields
}

Server represents the QPU's API server.

func NewServer

func NewServer(port string, tracing bool, api libqpu.APIProcessor, state libqpu.QPUState, conf *libqpu.QPUConfig) (*Server, error)

NewServer initializes a grpc server.

func (*Server) GetConfig

func (s *Server) GetConfig(ctx context.Context, req *qpuapi.ConfigRequest) (*qpuapi.ConfigResponse, error)

GetConfig implements the QPU's low level GetConfig API.

func (*Server) Query

func (s *Server) Query(stream qpuapi.QPUAPI_QueryServer) error

Query implements the QPU's low level Query API.

func (*Server) QuerySubscribe

func (s *Server) QuerySubscribe(req *qpuextapi.QueryReq, stream qpuapi.QPUAPI_QuerySubscribeServer) error

QuerySubscribe ...

func (*Server) QueryUnary

func (s *Server) QueryUnary(ctx context.Context, req *qpuextapi.QueryReq) (*qpuextapi.QueryResp, error)

QueryUnary ...

func (*Server) Serve

func (s *Server) Serve() error

Serve starts the server and listents for connections. It returns only when an error occurs.

Jump to

Keyboard shortcuts

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