Versions in this module Expand all Collapse all v1 v1.6.1 Mar 26, 2021 v1.6.0 Apr 25, 2020 Changes in this version type Request + ForAdmin bool + type SMTPParams struct + Host string + Password string + Port int + TLS bool + TimeOut time.Duration + Username string v1.5.0 Jan 21, 2020 Changes in this version + type Email struct + func NewEmail(emailParams EmailParams, smtpParams SmtpParams) (*Email, error) + func (e *Email) Send(ctx context.Context, req Request) (err error) + func (e *Email) String() string + type EmailParams struct + From string + MsgTemplate string + SubscribeURL string + TokenGenFn func(userID, email, site string) (string, error) + UnsubscribeURL string + VerificationSubject string + VerificationTemplate string + type MockDest struct + func (m *MockDest) Get() []Request + func (m *MockDest) Send(ctx context.Context, r Request) error + func (m *MockDest) String() string + type Request struct + Comment store.Comment + Email string + Verification VerificationMetadata + type SmtpParams struct + Host string + Password string + Port int + TLS bool + TimeOut time.Duration + Username string type Store + GetUserEmail func(siteID string, userID string) (string, error) + type VerificationMetadata struct + SiteID string + Token string + User string v1.4.0 Jul 26, 2019 v1.3.0 Apr 28, 2019 Changes in this version + var NopService = &Service + type Destination interface + Send func(ctx context.Context, req request) error + type Service struct + func NewService(dataService Store, size int, destinations ...Destination) *Service + func (s *Service) Close() + func (s *Service) Submit(comment store.Comment) + type Store interface + Get func(locator store.Locator, id string) (store.Comment, error) + type Telegram struct + func NewTelegram(token string, channelID string, timeout time.Duration, api string) (*Telegram, error) + func (t *Telegram) Send(ctx context.Context, req request) error + func (t *Telegram) String() string Other modules containing this package github.com/umputun/remark