Movatterモバイル変換


[0]ホーム

URL:


smtpmock

package
v2.28.4Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2025 License:AGPL-3.0Imports:18Imported by:0

Details

Repository

github.com/coder/coder

Links

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typeConfig

type Config struct {HostAddressstringSMTPPortintAPIPortintLoggerslog.Logger}

typeEmailSummary

type EmailSummary struct {Subjectstring    `json:"subject"`Datetime.Time `json:"date"`NotificationTemplateIDuuid.UUID `json:"notification_template_id,omitempty"`}

typeServer

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

Server wraps the SMTP mock server and provides an HTTP API to retrieve emails.

func (*Server)APIAddress

func (s *Server) APIAddress()string

func (*Server)MessageCount

func (s *Server) MessageCount()int

func (*Server)Purge

func (s *Server) Purge()

func (*Server)SMTPAddress

func (s *Server) SMTPAddress()string

func (*Server)Start

func (s *Server) Start(ctxcontext.Context, cfgConfig)error

func (*Server)Stop

func (s *Server) Stop()error

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp