Categorygithub.com/astropay/gomercury/v2
modulepackage
2.0.1
Repository: https://github.com/astropay/gomercury.git
Documentation: pkg.go.dev

# README

Go Mercury

Mercury Client for Go based projects

# Functions

New creates a new instance of Mercury client.
NewError returns a new error instance.
NewMessage returns a new instance of EmailMessage.
NewServiceCommunication returns a new configured Service Communication instance.

# Constants

DefaultHTTPTimeout contains the default timeout for HTTP requests.
Generic error codes.
Generic error codes.
Generic error codes.
MaxRetries contains the max numer of retries if the request fails due to invalid access token.

# Variables

Generic error definitions.
Generic error definitions.

# Structs

Attachment represents an email attachment file.
Client defines the central structure to handle communication with Mercury.
EmailMessage represents email message sending requests.
Error represents a Mercury client error.
Message holds the message content.
Provider has the provider ID and credentials.
SendMessageResponse holds the response sent to the client for a message send sync operation.
SendResponse returns the result of an email send operation.
ServiceComm implements interface Service to handle communication with other APC Core services.
ToAddress represent an recipient to send an email message.

# Interfaces

Service interface holds the.