handler

package
v0.0.0-...-be7b58b Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Index

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) Close

func (s *HTTPHandler) Close(ctx context.Context) error

Close ...

func (*HTTPHandler) Delete

func (s *HTTPHandler) Delete(c echo.Context) error

Delete ...

func (*HTTPHandler) DeleteAll

func (s *HTTPHandler) DeleteAll(c echo.Context) error

DeleteAll ...

func (*HTTPHandler) Download

func (s *HTTPHandler) Download(c echo.Context) error

Download ...

func (*HTTPHandler) List

func (s *HTTPHandler) List(c echo.Context) error

List ...

func (*HTTPHandler) Login

func (s *HTTPHandler) Login(c echo.Context) error

Login ...

func (*HTTPHandler) LoginProcess

func (s *HTTPHandler) LoginProcess(c echo.Context) error

LoginProcess ...

func (*HTTPHandler) Logout

func (s *HTTPHandler) Logout(c echo.Context) error

Logout ...

func (*HTTPHandler) Serve

func (s *HTTPHandler) Serve()

Serve for serve

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

func (*SMTPHandler) Close

func (s *SMTPHandler) Close() error

Close for close operation

func (*SMTPHandler) Serve

func (s *SMTPHandler) Serve()

Serve for serve

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL