mailprovider

package
v0.0.0-...-6531ba9 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthErr

type AuthErr struct {
	Err error
}

AuthErr is an error that indicates a problem with the provider credentials / authentication.

func ErrAuth

func ErrAuth(err error) *AuthErr

ErrAuth returns an authentication error.

func (*AuthErr) Error

func (e *AuthErr) Error() string

Error returns the error.

func (*AuthErr) Unwrap

func (e *AuthErr) Unwrap() error

Unwrap returns the error.

type Base

type Base struct {
	ID          string
	Type        mailingadminv1.MailingProviderType
	Name        string
	FromAddress *mail.Address
	IsVerified  bool
}

Base is a base structure used to provide common provider fields.

type Error

type Error struct {
	Temporary bool
	Err       error
}

Error is an error.

func ErrPermanent

func ErrPermanent(err error) *Error

ErrPermanent returns a permanent error.

func ErrTemporary

func ErrTemporary(err error) *Error

ErrTemporary returns a temporary error.

func (*Error) Error

func (e *Error) Error() string

Error returns the error.

func (*Error) Unwrap

func (e *Error) Unwrap() error

Unwrap returns the error.

type MailingProviderDefinition

type MailingProviderDefinition struct {
	// UID is the unique identifier of the mailing provider.
	UID string
	// CreatedAt is the creation time of the mailing provider.
	CreatedAt time.Time
	// UpdatedAt is the update time of the mailing provider.
	UpdatedAt time.Time
	// FromAddress is the default from address of the mailing provider.
	FromAddress string
	// Name is the name of the mailing provider.
	Name string
	// Type is the type of the mailing provider.
	Type mailingadminv1.MailingProviderType
	// Config is the configuration of the mailing provider.
	Config *mailingadminv1.MailingProviderConfig
	// InUse is a flag that indicates whether the mailing provider is in use.
	InUse bool
	// VerifiedAt is the verification time of the mailing provider.
	VerifiedAt time.Time
}

MailingProviderDefinition is a mailing provider.

func (MailingProviderDefinition) ToProto

ToProto converts the mailing provider to a protobuf message.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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