web

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleIndex

func HandleIndex(session core.Session) http.HandlerFunc

func HandleLogin

func HandleLogin(
	users core.UserStore,
	userz core.UserService,
	session core.Session,
	syncer core.Syncer,
) http.HandlerFunc

HandleLogin creates an http.HandlerFunc that handles user authentication and session initialization.

func HandleLogout

func HandleLogout(session core.Session) http.HandlerFunc

HandleLogout creates an http.HandlerFunc that handles session termination.

Types

type Server

type Server struct {
	Login   login.Middleware
	Options secure.Options
	Session core.Session
	Syncer  core.Syncer
	Users   core.UserStore
	Userz   core.UserService
}

func New

func New(
	login login.Middleware,
	options secure.Options,
	session core.Session,
	syncer core.Syncer,
	users core.UserStore,
	userz core.UserService,
) Server

Server is a http.Handler which exposes CIHub UI over HTTP.

func (Server) Handler

func (s Server) Handler() http.Handler

Handler returns an http.Handler

Jump to

Keyboard shortcuts

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