cookie

package
v0.0.0-...-925651e Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CookieContract

type CookieContract interface {
	CreateSessionCookie() interface{}
	Set(name string, value interface{}) (bool, *errors.AppError)
	Get(name string) (interface{}, *errors.AppError)
	Expire(string)
}

type NetHttpCookie

type NetHttpCookie struct {
	ResponseWriter http.ResponseWriter
	HttpRequest    *http.Request
}

func NetHttp

func (*NetHttpCookie) CreateSessionCookie

func (s *NetHttpCookie) CreateSessionCookie() interface{}

func (*NetHttpCookie) Expire

func (s *NetHttpCookie) Expire(name string)

func (*NetHttpCookie) Get

func (s *NetHttpCookie) Get(name string) (interface{}, *errors.AppError)

func (*NetHttpCookie) Set

func (s *NetHttpCookie) Set(name string, value interface{}) (bool, *errors.AppError)

Jump to

Keyboard shortcuts

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