remote

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: Apache-2.0 Imports: 13 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 agent.Logger
	// contains filtered or unexported fields
}

func New

func New(cfg RemoteConfig) (*Remote, error)

func (*Remote) Stop

func (u *Remote) Stop()

func (*Remote) Upload

func (u *Remote) Upload(j *upstream.UploadJob)

TODO: this metadata class should be unified

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