remote

package
v0.37.2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 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")
)

Functions

This section is empty.

Types

type Remote

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

func New

func New(cfg RemoteConfig, logger log.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