server

package
v0.0.0-...-c079afc Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidKey = errors.New("Key is not valid")
	ErrNoKeyId    = errors.New("The key doesn't contain a valid user id")
	ErrExpiredKey = errors.New("The key is expired")
)

Functions

This section is empty.

Types

type ErrorData

type ErrorData struct {
	Title       string
	Description string
	BackURL     string
}

type NotificationData

type NotificationData struct {
	Name        string
	Fingerprint string
	Days        int
}

type Server

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

func New

func New(l *ldap.Ldap, m *mail.Mail, ldb *db.DB, g *gitea.Gitea, mtx *matrix.Matrix, domain string) *Server

func (*Server) Cleanup

func (s *Server) Cleanup(noLockUsers bool)

Cleanup runs periodic clean up tasks

func (*Server) Serve

func (s *Server) Serve(addr string) error

Serve lowry web site

Jump to

Keyboard shortcuts

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