Documentation
¶
Index ¶
- Variables
- func SendInvitation(server SMTP, to, orgName, link string) error
- type SMTP
- type Service
- func (s *Service) Get(ctx context.Context, session auth.Session, org string) (Settings, error)
- func (s *Service) Invite(ctx context.Context, session auth.Session, org, to, orgName, token string) error
- func (s *Service) Notify(ctx context.Context, org string) error
- func (s *Service) Put(ctx context.Context, session auth.Session, org string, in Settings, ...) (Settings, error)
- func (s *Service) Test(ctx context.Context, session auth.Session, org string, settings Settings) error
- type Settings
- type Vault
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotConfigured = errors.New("server email is not configured")
Functions ¶
func SendInvitation ¶ added in v0.2.11
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
type Settings ¶
type Settings struct {
Enabled bool `json:"enabled"`
Recipients []string `json:"recipients"`
Defaults []string `json:"default_recipients"`
Configured bool `json:"server_configured"`
Address string `json:"smtp_address"`
Username string `json:"smtp_username"`
From string `json:"smtp_from"`
Security string `json:"smtp_security"`
Verify bool `json:"smtp_verify"`
PasswordSet bool `json:"smtp_password_set"`
Password *string `json:"smtp_password,omitempty"`
Version int64 `json:"version"`
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.