web

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2025 License: AGPL-3.0, AGPL-3.0-or-later Imports: 16 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: AGPL-3.0-or-later

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func NewServer

func NewServer(ctx context.Context, cfg *config.Config) (*Server, error)

func (*Server) GetAddr

func (s *Server) GetAddr() string

func (*Server) GetAdminEmails

func (s *Server) GetAdminEmails() []string

func (*Server) GetAuthService

func (s *Server) GetAuthService() *auth.OauthService

func (*Server) GetDB

func (s *Server) GetDB() *sql.DB

func (*Server) GetEmailSender added in v1.1.3

func (s *Server) GetEmailSender() email.Sender

func (*Server) GetTemplates

func (s *Server) GetTemplates() *template.Template

func (*Server) RegisterRoutes

func (s *Server) RegisterRoutes(fn func(r *chi.Mux))

func (*Server) Router

func (s *Server) Router() *chi.Mux

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

func (*Server) Start

func (s *Server) Start() error

Jump to

Keyboard shortcuts

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