cookie

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: 8 Imported by: 1

Documentation

Overview

Every package should have a package comment, a block comment preceding the package clause. For multi-file packages, the package comment only needs to be present in one file, and any one will do. The package comment should introduce the package and provide information relevant to the package as a whole. It will appear first on the godoc page and should set up the detailed documentation that follows.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCorruptedCookie = errors.New("Cookie data corrupted")
)

Cookie error variables

Functions

func Delete

func Delete(s *session.Session, n string) error

func Set

func Set(s *session.Session, name, value string) error

Adding uuid and hash to the cookie and check hash code

Types

type SessionData

type SessionData struct {
	Photo string
}

CHANGE THIS DUMMY COOKIE STRUCT !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

func GetData

func GetData(s session.Session, n string) (*SessionData, error)

MAKE GENERIC RETURN TYPE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Jump to

Keyboard shortcuts

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