gookie

package module
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gookie

type Gookie struct {
	Name   string
	Domain string //localhost:8080 ,web.com
	Https  bool

	model.CookieExpiration //ej: 1*time.Minute
	// contains filtered or unexported fields
}

func (Gookie) CookieAge added in v0.0.2

func (a Gookie) CookieAge() int

func (Gookie) Get

func (g Gookie) Get(r *http.Request) (c *http.Cookie, err string)

func (*Gookie) GetExpirationTime added in v0.0.2

func (c *Gookie) GetExpirationTime() time.Time

func (Gookie) Set

func (c Gookie) Set(value string, w http.ResponseWriter)

domain ej: "example.com"

Jump to

Keyboard shortcuts

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