Help us shape the future of Go! Take the 2026 Go Developer Survey

debuginfo

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: Apache-2.0 Imports: 24 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDebugInfoNotFound = errors.New("debug info not found")

Functions

This section is empty.

Types

type CacheConfig

type CacheConfig struct {
	Type   CacheProvider `yaml:"type"`
	Config interface{}   `yaml:"config"`
}

type CacheProvider

type CacheProvider string
const (
	FILESYSTEM CacheProvider = "FILESYSTEM"
)

type Config

type Config struct {
	Bucket *client.BucketConfig `yaml:"bucket"`
	Cache  *CacheConfig         `yaml:"cache"`
}

type DebugInfoClient

type DebugInfoClient struct {
	// contains filtered or unexported fields
}

func NewDebugInfoClient

func NewDebugInfoClient(conn *grpc.ClientConn) *DebugInfoClient

func (*DebugInfoClient) Exists

func (c *DebugInfoClient) Exists(ctx context.Context, buildId string) (bool, error)

func (*DebugInfoClient) Upload

func (c *DebugInfoClient) Upload(ctx context.Context, buildId string, r io.Reader) (uint64, error)

type FilesystemCacheConfig

type FilesystemCacheConfig struct {
	Directory string `yaml:"directory"`
}

type Store

type Store struct {
	// contains filtered or unexported fields
}

func NewStore

func NewStore(logger log.Logger, config *Config) (*Store, error)

func (*Store) Exists

func (*Store) Symbolize

func (s *Store) Symbolize(ctx context.Context, m *profile.Mapping, locations ...*profile.Location) (map[*profile.Location][]profile.Line, error)

func (*Store) Upload

type UploadReader

type UploadReader struct {
	// contains filtered or unexported fields
}

func (*UploadReader) Read

func (r *UploadReader) Read(p []byte) (int, error)

Jump to

Keyboard shortcuts

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