server

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2019 License: Apache-2.0 Imports: 51 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.

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

Index

Constants

View Source
const (
	FILE_SIZE_LIMIT_IN_BYTES = 2147483647
)

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.

func ReadFile added in v1.2.0

func ReadFile(f *os.File) ([]byte, error)

ReadFile exists because ioutil.ReadFile is broken on Windows. https://github.com/golang/go/issues/26923

Types

type Config

type Config struct {
	Info             *service.ServerInfo
	StringTables     []*stringtable.StringTable
	EnableLocalFiles bool
	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