server

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2017 License: Apache-2.0 Imports: 27 Imported by: 7

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 NewWithListener

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

NewWithListener starts a new GRPC server listening on l. This is a blocking call.

Types

type Config

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

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