session

package
v0.0.0-...-a1630c6 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(r *http.Request) *http.Request

func Database

func Database(r *http.Request) *sqlx.DB

Database gets the database handle from the request context.

func Golfer

func Golfer(r *http.Request) *golfer.Golfer

Golfer gets the golfer from the request context.

func GolferInfo

func GolferInfo(r *http.Request) *golfer.GolferInfo

GolferInfo gets the GolferInfo object from the request context.

Types

type Session

type Session struct {
	Database   *sqlx.DB
	Golfer     *golfer.Golfer
	GolferInfo *golfer.GolferInfo
}

func Get

func Get(r *http.Request) *Session

Jump to

Keyboard shortcuts

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