smtpmock

package module
v0.0.0-...-2580aac Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: BSD-3-Clause Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Signin(token string) (SigninResponse, error)
	GetMessages() ([]Message, error)
	GetRecipientMessages(email string) ([]Message, error)
	GetRecipientLatestMessage(email string) (Message, error)
}

func NewClient

func NewClient(url string) Client

type Message

type Message struct {
	FromAgent      string `json:"from-agent"`
	RemoteAddress  string `json:"remote-address"`
	User           string `json:"user"`
	From           string `json:"from"`
	To             string `json:"to"`
	Content        string `json:"content"`
	ContentDecoded string `json:"content-decoded"`
}

type SigninRequest

type SigninRequest struct {
	SigninToken string `json:"signin-token"`
}

type SigninResponse

type SigninResponse struct {
	SessionToken string `json:"session-token"`
}

Directories

Path Synopsis
cmd
smtpmockcli Module
smtpmocksrv Module

Jump to

Keyboard shortcuts

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