web

package
v1.10.13 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	TraefikHTTPEntrypoint  = "web"
	TraefikHTTPSEntrypoint = "websecure"
)
View Source
const (
	HeaderNameSSGenAppID = "X-Controller-App-Id"
)

Variables

This section is empty.

Functions

func GetUser

func GetUser(ctx context.Context) *domain.User

func NewH2CClient

func NewH2CClient() *http.Client

func SetUser

func SetUser(ctx *context.Context, user *domain.User)

func TryGetUser added in v1.10.11

func TryGetUser(ctx context.Context) (*domain.User, bool)

Types

type H2CConfig

type H2CConfig struct {
	Port       int
	SetupRoute func(mux *http.ServeMux)
}

type H2CServer

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

func NewH2CServer

func NewH2CServer(c H2CConfig) *H2CServer

func (*H2CServer) Shutdown

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

func (*H2CServer) Start

func (s *H2CServer) Start(_ context.Context) error

Jump to

Keyboard shortcuts

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