client

package
v1.7.0-dev-20191011 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2019 License: Apache-2.0 Imports: 21 Imported by: 8 modules, 7 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 client provides helper methods and types for communicating with the GAPIS service.

Index

Constants

View Source
const (
	BinaryName = "gapis"
)

Variables

This section is empty.

Functions

func New

New creates a new client using c for communication.

Types

type Client

type Client interface {
	service.Service

	// Close closes the client connection.
	Close() error
}

Client is the interface used for service calls.

func Bind

func Bind(conn *grpc.ClientConn) Client

Bind creates a new rpc client using conn for communication.

func Connect

func Connect(ctx context.Context, cfg Config) (Client, error)

Connect attempts to connect to a GAPIS process. If port is zero, a new GAPIS server will be started, otherwise a connection will be made to the specified port.

type Config

type Config struct {
	Path  *file.Path
	Port  int
	Args  []string
	Token auth.Token
}

Jump to

Keyboard shortcuts

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