server

package
v0.0.0-...-205059d Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2017 License: Apache-2.0 Imports: 30 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package server implements the rpc gpu debugger service, queriable by the clients, along with some helpers exposed via an http listener.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Listen

func Listen(ctx context.Context, addr string, cfg Config) error

Listen starts a new GRPC server listening on addr. This is a blocking call.

func NewGapidServer

func NewGapidServer(ctx context.Context, cfg Config) service.GapidServer

NewGapidServer returns a GapidServer interface to a new server instace.

func NewWithListener

func NewWithListener(ctx context.Context, l net.Listener, cfg Config, srvChan chan<- *grpc.Server) error

Types

type Config

type Config struct {
	Info           *service.ServerInfo
	StringTables   []*stringtable.StringTable
	AuthToken      auth.Token
	DeviceScanDone task.Signal
	LogBroadcaster *log.Broadcaster
}

Config holds the server configuration settings.

type Server

type Server interface {
	service.Service
}

Server is the server interface to GAPIS.

func New

func New(ctx context.Context, cfg Config) Server

New constructs and returns a new Server.

Jump to

Keyboard shortcuts

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