internal

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsCredentialsProvider

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

func (*AwsCredentialsProvider) Load

func (provider *AwsCredentialsProvider) Load(ctx context.Context) (aws.Credentials, error)

type CanonicalPayload

type CanonicalPayload struct {
	Channel string   `json:"channel,omitempty"`
	Payload []string `json:"events,omitempty"`
}

type CanonicalRequest

type CanonicalRequest struct{}

func (CanonicalRequest) Create

func (CanonicalRequest) Create(endpoint *url.URL, payload []byte) (*http.Request, error)

type CredentialProvider

type CredentialProvider interface {
	Load(context.Context) (aws.Credentials, error)
}

type RequestFactory

type RequestFactory interface {
	Create(*url.URL, []byte) (*http.Request, error)
}

type Signer

type Signer interface {
	Sign(context.Context, *http.Request) (app.Signature, error)
}

type Sigv4Signer

type Sigv4Signer struct {
	Provider CredentialProvider
	Region   string
	Clock    app.Clock
}

func (*Sigv4Signer) Sign

func (signer *Sigv4Signer) Sign(ctx context.Context, req *http.Request) (app.Signature, error)

Jump to

Keyboard shortcuts

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