web

package
v0.0.0-...-ab72ec0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: Unlicense Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogRequestURL

func LogRequestURL(next http.Handler) http.Handler

func NewAdminHandler

func NewAdminHandler(server *Server) chi.Router

NewSignupHandler creates a new signup handler

func NewLogin

func NewLogin(authenticate Storage, callback func(context.Context, string) string, issuerInterceptor *op.IssuerInterceptor) *login

func NewSignupHandler

func NewSignupHandler(storage Storage, vtx *vertex.VertexChecker) chi.Router

NewSignupHandler creates a new signup handler

func SetupServer

func SetupServer(server *Server, extraOptions ...op.Option) chi.Router

Use one of the pre-made clients in storage/clients.go or register a new one.

Types

type Server

type Server struct {
	Storage           Storage
	Vertex            *vertex.VertexChecker
	OIDCProvider      op.OpenIDProvider
	OIDCIssuer        string
	OIDCAllowInsecure bool
}

type Storage

type Storage interface {
	op.Storage
	// contains filtered or unexported methods
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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