session

package
v0.2.1-beta.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SessionName = "caddy-scion-forward-proxy"
)

Variables

This section is empty.

Functions

func SetSessionData

func SetSessionData(logger *zap.Logger, w http.ResponseWriter, r *http.Request, data SessionData) error

Types

type SessionData

type SessionData struct {
	ID     string
	Policy []byte // raw policy
}

TODO (minor) should seperate ID from data

func GetSessionData

func GetSessionData(logger *zap.Logger, r *http.Request) (SessionData, error)

TODO maybe this should be an interface method as well?

Jump to

Keyboard shortcuts

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