server

package
v0.0.0-...-7a622f3 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 53 Imported by: 0

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

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
	PreloadDepGraph  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