web

package
v1.4.7 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: MIT Imports: 8 Imported by: 0

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)

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