server

package
v0.0.0-...-a759ffd Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2025 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultShutdownTimeout = 5 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

func New(sec *security.Security, cfg *config.Config) (*Server, error)

func (*Server) CallBackFromGoogle

func (s *Server) CallBackFromGoogle(w http.ResponseWriter, r *http.Request)

func (*Server) FormHandler

func (s *Server) FormHandler(w http.ResponseWriter, r *http.Request)

func (*Server) GoogleLoginHandler

func (s *Server) GoogleLoginHandler(w http.ResponseWriter, r *http.Request)

func (*Server) LoginHandler

func (*Server) LoginHandler(w http.ResponseWriter, r *http.Request, oauthConf *oauth2.Config, oauthStateString string)

func (*Server) LogoutHandler

func (s *Server) LogoutHandler(w http.ResponseWriter, r *http.Request)

func (*Server) MailHandler

func (s *Server) MailHandler(w http.ResponseWriter, r *http.Request)

func (*Server) Serve

func (s *Server) Serve(port string, errors chan<- error)

func (*Server) Shutdown

func (s *Server) Shutdown() error

func (*Server) UploadHandler

func (s *Server) UploadHandler(w http.ResponseWriter, r *http.Request)

type ToSend

type ToSend struct {
	To      string `json:"to"`
	Subject string `json:"subject"`
	Content string `json:"content"`
	Otp     string `json:"otp"`
}

Jump to

Keyboard shortcuts

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