web

package
v0.0.0-...-411c998 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: EUPL-1.2 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CookieAccessKey      = "AccessId"
	JwtClaimEvents       = "event-management"
	JwtClaimPrivateCodes = "private-code-gen"
)
View Source
const DateFormat = "2006-01-02T15:04"
View Source
const HTML_PREFIX = "<!-- "
View Source
const HTML_SUFFIX = " -->"

Variables

This section is empty.

Functions

func CountingRedirect

func CountingRedirect(target string) http.Handler

func HandleRootGet

func HandleRootGet(w http.ResponseWriter, r *http.Request)

func HandleRootPost

func HandleRootPost(w http.ResponseWriter, r *http.Request)

Types

type Button88x31

type Button88x31 struct {
	SrcUrl   string
	ClickUrl *string
	Alt      string
}

type CtxKey

type CtxKey string

type EventData

type EventData struct {
	UpcomingEvents []db.UpcomingEvent
	CurrentEvents  []db.UpcomingEvent
}

type ManageEvent

type ManageEvent struct {
	Id        int64
	Name      string
	StartDate time.Time
	EndDate   time.Time
}

type Server

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

func NewServer

func NewServer(logger zerolog.Logger, authClient *auth.Client, dbClient *db.Queries) *Server

func (*Server) Start

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

func (*Server) Stop

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

Jump to

Keyboard shortcuts

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