client

package
v0.0.0-...-6c7272e Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

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