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

scaleway

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package scaleway sends email through Scaleway Transactional Email.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// SecretKey is a Scaleway API secret key allowed to send email.
	SecretKey string
	// ProjectID is the Scaleway project with the verified sending domain.
	ProjectID string
	// Region is where the project's email service runs. Zero means "fr-par".
	Region string
	// From is the sender's address on the verified domain, and FromName its name.
	From     string
	FromName string
	// ReplyTo is where replies go. Zero means From.
	ReplyTo string
	// APIURL overrides Scaleway's API base URL.
	APIURL string
}

Config configures the adapter.

type Scaleway

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

Scaleway implements email.TrackingSender.

func New

func New(cfg Config) (*Scaleway, error)

New validates cfg and returns the adapter. It does not contact Scaleway.

func (*Scaleway) Delivery

func (s *Scaleway) Delivery(ctx context.Context, id string) (email.Delivery, time.Time, error)

Delivery reports a message's status. Scaleway's "sent" means the recipient's mail system took it; "failed" and "canceled" are final failures; anything else is still pending.

func (*Scaleway) Send

func (s *Scaleway) Send(ctx context.Context, m email.Message) (string, error)

Send hands m to Scaleway and returns its ID there. Errors carry the HTTP status at most, never the recipient or Scaleway's response body.

Jump to

Keyboard shortcuts

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