debugclient

package
v0.0.0-...-0490640 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVersion

func GetVersion(ctx context.Context, connectionInfo ConnectionInfo) (*debug_api.VersionResponse, error)

func Profile

func Profile(ctx context.Context, req ProfileRequest, out io.Writer) error

func SetLogLevel

func SetLogLevel(ctx context.Context, connectionInfo ConnectionInfo, level string) error

func Trace

func Trace(ctx context.Context, req TraceRequest, out io.Writer) error

Types

type ChunkReceiver

type ChunkReceiver interface {
	Recv() (*debug_api.Chunk, error)
}

type ConnectionInfo

type ConnectionInfo struct {
	ServiceName       string
	Endpoint          string
	ConnectionTimeout time.Duration
}

type ProfileRequest

type ProfileRequest struct {
	ConnectionInfo
	ProfileName string
	SampleRate  int
	Duration    time.Duration
}

type TraceRequest

type TraceRequest struct {
	ConnectionInfo
	Duration time.Duration
}

Jump to

Keyboard shortcuts

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