Documentation ¶
Index ¶
- type AuthMiddleware
- type HTTPHandler
- func (s *HTTPHandler) Close(ctx context.Context) error
- func (s *HTTPHandler) Delete(c echo.Context) error
- func (s *HTTPHandler) DeleteAll(c echo.Context) error
- func (s *HTTPHandler) Download(c echo.Context) error
- func (s *HTTPHandler) List(c echo.Context) error
- func (s *HTTPHandler) Login(c echo.Context) error
- func (s *HTTPHandler) LoginProcess(c echo.Context) error
- func (s *HTTPHandler) Logout(c echo.Context) error
- func (s *HTTPHandler) Serve()
- type SMTPHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthMiddleware ¶
type AuthMiddleware struct {
// contains filtered or unexported fields
}
AuthMiddleware ...
func NewAuthMiddleware ¶
func NewAuthMiddleware(auth *mail.Auth) *AuthMiddleware
NewAuthMiddleware ...
func (*AuthMiddleware) Check ¶
func (m *AuthMiddleware) Check(next echo.HandlerFunc) echo.HandlerFunc
Check ...
type HTTPHandler ¶
type HTTPHandler struct {
// contains filtered or unexported fields
}
HTTPHandler ...
func NewHTTPHandler ¶
func NewHTTPHandler(port, secret string, logger *zap.Logger, auth *mail.Auth, repo repository.MessageRepository) *HTTPHandler
NewHTTPHandler ...
func (*HTTPHandler) LoginProcess ¶
func (s *HTTPHandler) LoginProcess(c echo.Context) error
LoginProcess ...
type SMTPHandler ¶
type SMTPHandler struct {
// contains filtered or unexported fields
}
SMTPHandler ...
func NewSMTPHandler ¶
func NewSMTPHandler(port, hostname string, logger *zap.Logger, auth *mail.Auth, tls *mail.TLS, repo repository.MessageRepository) *SMTPHandler
NewSMTPHandler for creating new smtp
Click to show internal directories.
Click to hide internal directories.