sentryclient

package
v0.14.3 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetProjectIdToSlugMap

func GetProjectIdToSlugMap(ctx context.Context, client *sentry.Client) (map[string]string, error)

func NewBearerTokenRoundTripper added in v0.14.2

func NewBearerTokenRoundTripper(delegate http.RoundTripper, token string) http.RoundTripper

func NewRateLimiterRoundTripper added in v0.14.2

func NewRateLimiterRoundTripper(delegate http.RoundTripper) http.RoundTripper

func NewSemaphoreRoundTripper added in v0.14.2

func NewSemaphoreRoundTripper(delegate http.RoundTripper) http.RoundTripper

func NewUserAgentRoundTripper added in v0.14.2

func NewUserAgentRoundTripper(delegate http.RoundTripper, userAgent string) http.RoundTripper

func ParseNextPaginationCursor added in v0.14.2

func ParseNextPaginationCursor(resp *http.Response) *string

Types

type BearerTokenRoundTripper added in v0.14.2

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

func (*BearerTokenRoundTripper) RoundTrip added in v0.14.2

func (t *BearerTokenRoundTripper) RoundTrip(req *http.Request) (*http.Response, error)

type Config

type Config struct {
	UserAgent string
	Token     string
}

Config is the configuration structure used to instantiate the Sentry provider.

func (*Config) HttpClient added in v0.14.2

func (c *Config) HttpClient(ctx context.Context) *http.Client

Client to connect to Sentry.

type SemaphoreTransport added in v0.14.2

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

func (*SemaphoreTransport) RoundTrip added in v0.14.2

func (t *SemaphoreTransport) RoundTrip(req *http.Request) (*http.Response, error)

type UserAgentRoundTripper added in v0.14.2

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

func (*UserAgentRoundTripper) RoundTrip added in v0.14.2

func (t *UserAgentRoundTripper) RoundTrip(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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