session

package
v0.0.0-...-0e3259e Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2020 License: MIT Imports: 4 Imported by: 32

Documentation

Overview

Package session contains session struckt and it's methods.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	Ctx context.Context
	R   *http.Request
	W   http.ResponseWriter
	U   *user.User
}

Session struct has Context, Request, ResponseWriter and logged User fields.

func (*Session) Init

func (s *Session) Init(w http.ResponseWriter, r *http.Request)

Init initialises the Session struct.

Jump to

Keyboard shortcuts

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