appcontext

package
v0.1322.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithSessionData

func ContextWithSessionData(ctx context.Context, data *SessionData) context.Context

Types

type SessionData

type SessionData struct {
	SessionID string
	LpaID     string

	// if a supporter
	Email          string
	OrganisationID string
}

func SessionDataFromContext

func SessionDataFromContext(ctx context.Context) (*SessionData, error)

type SessionMissingError

type SessionMissingError struct{}

func (SessionMissingError) Error

func (s SessionMissingError) Error() string

Jump to

Keyboard shortcuts

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