Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
func NewGraphBackend ¶
func NewGraphBackend(clientId, tenantId, secret string, opts ...BackendOption) (*Backend, error)
NewGraphBackend sets up a new server
func (*Backend) NewSession ¶
NewSession is called after client greeting (EHLO, HELO).
type BackendOption ¶
type BackendOption func(*Backend)
func WithAllowedSenders ¶
func WithAllowedSenders(senders []string) BackendOption
func WithAllowedSources ¶
func WithAllowedSources(sources []string) BackendOption
func WithLogger ¶
func WithLogger(logger Logger) BackendOption
func WithPrometheusRegistry ¶
func WithPrometheusRegistry(reg *prometheus.Registry) BackendOption
func WithSaveToSentItems ¶
func WithSaveToSentItems(save bool) BackendOption
type Logger ¶
type Logger interface { Error(msg string, args ...any) Info(msg string, args ...any) Warn(msg string, args ...any) }
Logger is a basic levelled logger
Click to show internal directories.
Click to hide internal directories.