msgraph

package
v0.0.0-...-7fac4ee Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package msgraph provides integration with Microsoft Graph API

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailClient

type EmailClient interface {
	SendWelcomeEmail(userEmail string) error
}

EmailClient handles sending emails via Microsoft Graph API

func CreateEmailGraphClient

func CreateEmailGraphClient() (EmailClient, error)

CreateEmailGraphClient creates a new MS Graph API client for sending emails using the official SDK

type MockEmailClient

type MockEmailClient struct {
	SendEmailError error
	SentEmails     []SentEmail
}

MockEmailClient implements the EmailClient interface for testing

func (*MockEmailClient) SendWelcomeEmail

func (m *MockEmailClient) SendWelcomeEmail(userEmail string) error

SendWelcomeEmail mocks sending a welcome email for testing

type SentEmail

type SentEmail struct {
	Email string
}

SentEmail represents an email that was sent for testing

Jump to

Keyboard shortcuts

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