remote

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCloudTokenRequired = errors.New("Please provide an authentication token. You can find it here: https://pyroscope.io/cloud")
	ErrUpload             = errors.New("Failed to upload a profile")
)

Functions

This section is empty.

Types

type Remote

type Remote struct {
	Logger agent.Logger
	// contains filtered or unexported fields
}

func New

func New(cfg RemoteConfig, logger agent.Logger) (*Remote, error)

func (*Remote) Start added in v0.0.33

func (r *Remote) Start()

func (*Remote) Stop

func (r *Remote) Stop()

func (*Remote) Upload

func (r *Remote) Upload(job *upstream.UploadJob)

func (*Remote) UploadSync added in v0.0.33

func (r *Remote) UploadSync(job *upstream.UploadJob) error

UploadSync is only used in benchmarks right now

type RemoteConfig

type RemoteConfig struct {
	AuthToken              string
	UpstreamThreads        int
	UpstreamAddress        string
	UpstreamRequestTimeout time.Duration
}

Jump to

Keyboard shortcuts

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